Weird error when joining lobby

edited August 2011 in Photon Server
Hi everyone,

i sometimes encounter the following error while trying to join the lobby:
5740: 16:31:05.421 - CTCPSocketServer::ReadCompleted - Exception - CTCPStreamProcessor::ProcessDataStream() - Invalid message format, expected first byte to be 0xF0 OR 0xFC. Got: 0x47 - 47 45 54 20 2F 2F 77 65 62 73 6F 63 6B 65 74 20 48 54 54 50 2F 31 2E 31 0D 0A 55 70 67 72 61 64 65 3A 20 57 65 62 53 6F 63 6B 65 74 0D 0A 43 6F 6E 6E 65 63 74 69 6F 6E 3A 20 55 70 67 72 61 64 65 0D 0A 48 6F 73 74 3A 20 6C 6F 63 61 6C 68 6F 73 74 3A 35 30 35 35 0D 0A 4F 72 69 67 69 6E 3A 20 6E 75 6C 6C 0D 0A 53 65 63 2D 57 65 62 53 6F 63 6B 65 74 2D 4B 65 79 31 3A 20 33 31 35 33 20 29 37 38 62 37 20 7E 37 7E 38 20 32 0D 0A 53 65 63 2D 57 65 62 53 6F 63 6B 65 74 2D 4B 65 79 32 3A 20 31 33 35 39 36 37 38 30 70 39 20 73 0D 0A 0D 0A 00 C1 17 B5 75 2E A5 E1  - GET //websocket HTTP/1.1..Upgrade: WebSocket..Connection: Upgrade..Host: localhost:5055..Origin: null..Sec-WebSocket-Key1: 3153 )78b7 ~7~8 2..Sec-WebSocket-Key2: 13596780p9 s........u...

I am using the Unity Client SDK and the LiteLobby Example of the Photon Server SDK, i would just need a hint where i have to look because the logging gives me no other clue.

Best regards

Michael

Comments

  • Hm. I know one potential cause for this issue but this was happening in a multi-threaded environment. In Unity, the work inside Update() calls is done in the main thread, so I'm not sure if it applies here. That should be fixed in SDK v6.4.2.

    Please verify you are not using at least our Unity Photon SDK v6.4.2 or up.
    Would you send me your Unity project? Then I could go into detail.
  • I actually have a multithreaded environment but the other thread does not call any unity related objects as unity is not threadsafe (at least this is what i heard) and it has nothing to do with photon handling.
    I will however first try it with the newest version of the Unity Photon SDK as you suggested, coming back as soon as i have new results.
    Thank you for the effort.
Sign In or Register to comment.