Photon Log Error

Hello. I always got these errors. Can u guys give me some advice about this.

10000: 09:00:59.305 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
2472: 09:03:05.740 - CTCPSocketServer::OnWriteCompletionError() - Flow control - Connection aborted due to - An existing connection was forcibly closed by the remote host.
9272: 09:03:26.564 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
9272: 09:03:43.663 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 18
10000: 09:04:13.465 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
9272: 09:04:51.496 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
9272: 09:05:15.466 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
9272: 09:08:53.502 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 8
10000: 09:09:14.042 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x6
10000: 09:12:45.282 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x82
10000: 09:17:01.628 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 20
9272: 09:19:48.234 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 8
9272: 09:19:52.977 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 38
10000: 09:23:17.262 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x2
10000: 09:24:57.652 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
2472: 09:26:40.241 - CTCPSocketServer::OnWriteCompletionError() - Flow control - Connection aborted due to - An existing connection was forcibly closed by the remote host.
9272: 09:26:40.661 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
9272: 09:34:01.759 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 8
10000: 09:34:19.665 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
9272: 09:36:35.994 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
10000: 09:38:08.892 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x82
9272: 09:40:23.728 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
10000: 09:42:23.876 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x82
9272: 09:44:06.009 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x2
10000: 09:44:31.228 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x2
10000: 09:45:57.402 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x2
10000: 09:50:37.937 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x82
9272: 09:52:16.326 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 26
9272: 09:53:48.393 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x82
10000: 09:55:01.437 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x82
9272: 09:55:43.084 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
9272: 09:56:43.860 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 18
9272: 09:56:46.888 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
10000: 09:59:47.786 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x2
9464: 10:04:31.965 - CTCPSocketServer::ReadCompleted - Exception - CTCPStreamProcessor::ProcessDataStream() - Invalid message format: 0xfe - 2 - FE 01 - ..
10000: 10:04:48.133 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x82
9272: 10:05:13.111 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x82
9464: 10:07:29.878 - CFilterDataBase::OnSocketReleased() - References still held: 2
10000: 10:07:44.068 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message type, expected: 0x00 got: 0x2
9272: 10:08:36.789 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14
2472: 10:08:40.458 - CFilterDataBase::OnSocketReleased() - References still held: 2
10000: 10:09:39.571 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 18
9272: 10:09:41.618 - CThreadPool::Process - Exception - PeerAppSelection() - Init: Unexpected message length, need at least 40 bytes, got: 14

Comments

  • HI, @ExitVip
    what client lib are you using?

    In general, you cannot and should not do anything with the server. for some reason, it does not get correct InitRequest. The issue could in client lib or somewhere on the way to the server

    best,
    ilya
  • @chvetsov mod Thank you for response. I am using photon-androidndk-sdk_v4-1-10-2.zip. this is the initial code
    _peer = new PhotonPeer(*this, ConnectionProtocol::TCP);
  • @ExitVip does this happen in production? how popular your game/application is?

    best,
    ilya
  • Hi @ExitVip.

    Which application are you running on the server side?

    Note that the default application is the LoadBalancing application and when you run the LoadBalancing application (or a (custom) application that inherits from it or is otherwise based on it), then you should use the LoadBalancing-cpp API on the client side and not a raw PhotonPeer.

    Can you successfully connect with the demos that are part of the client SDK?
  • @chvetsov Thank you for replay. Yes this happen in production. My App is not too popular. may be 200 ccu.
  • Hello @Kaiserludi admin. Thank you for replay. I am using the self hosted server, I created a new application. And the clients can connect the server and work well. But I just don't know why these error logs happen.
  • Hi @ExitVip.

    Which client and server version do you use?
  • Hello @Kaiserludi client version: photon-androidndk-sdk_v4-1-10-2, server version: Photon-OnPremise-Server-SDK_v4-0-29-11263
  • Hi @ExitVip.

    Please run a wireshark traffic capture on your server and filter it for incoming traffic on the port(s) on which your Photon server is listen.
    Then look at the filtered packets and compare them to what you receive from your local test clients
    Maybe something else aside from Photon clients communicates with your server on that port, but sends data in a form that Photon does not understand.
    Wireshark might even be able to identify the protocol of that data so that you could google which app uses that protocol, if it is well-known.
  • Hi @Kaiserludi.
    Thank you for your advice. I ll try it.