Bug while joining random game

natasky
edited February 2014 in Native
Hi,

We're using Photon-AndroidNDK_v3-2-2-0_Cloud_SDK. We're using the NetworkLogic class from the demoLoadBalancing demo.

During QA we noticed the following bug:
1) A client creates a room.
2) Disconnects by killing the process/losing connectivity.
3) After a few seconds, the client reconnects and joins a random room.
4) The client is stuck on JOINING state.

Here's the log from step 3:
[code2=text]01-22 15:40:40.709: D/BugRepro(4476): State changed: 3
01-22 15:40:40.709: I/demo-loadBalancing(4476): joining random game
01-22 15:40:40.849: I/demo-loadBalancing(4476): 2014-01-22 15:40:40,853874 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 225, returnCode: 0 {230="85.17.196.135:5056", 255="-1171381683", 219=0}
01-22 15:40:41.569: I/demo-loadBalancing(4476): 2014-01-22 15:40:41,578294 INFO EnetPeer.cpp sendOutgoingCommands() line: 187 - going to resend pCommand: time: 627 = 609 sentCount: 1, original sentTime: 33
01-22 15:40:42.129: I/demo-loadBalancing(4476): 2014-01-22 15:40:42,140313 INFO LoadBalancingClient.cpp onStatusChanged() line: 505 - connected to gameserver
01-22 15:40:42.279: I/demo-loadBalancing(4476): 2014-01-22 15:40:42,286206 INFO LoadBalancingPeer.cpp opAuthenticate() line: 100 - OperationRequest - operationCode: 230 {224="286b7ed2-0bd6-4edf-a2cd-70cdf741692a", 220="1.0", 225="Android"}
01-22 15:40:43.249: I/demo-loadBalancing(4476): 2014-01-22 15:40:43,260508 INFO EnetPeer.cpp dispatchIncomingCommands() line: 327 - skipped dispatching of old command
01-22 15:40:43.379: I/demo-loadBalancing(4476): 2014-01-22 15:40:43,392881 INFO EnetPeer.cpp sendOutgoingCommands() line: 187 - going to resend pCommand: time: 2442 = 2419 sentCount: 1, original sentTime: 1351
01-22 15:40:44.579: I/demo-loadBalancing(4476): 2014-01-22 15:40:44,584046 INFO LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 230, returnCode: 0 {}
01-22 15:40:44.739: I/demo-loadBalancing(4476): 2014-01-22 15:40:44,746388 ERROR LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 226, returnCode: 32758 (Game does not exists) {}
01-22 15:40:44.739: I/demo-loadBalancing(4476): 2014-01-22 15:40:44,747749 ERROR LoadBalancingClient.cpp onOperationResponse() line: 358 - opJoinRoom failed with errorcode 32758: Game does not exists. Client is therefore returning to masterserver!
01-22 15:40:45.859: I/demo-loadBalancing(4476): 2014-01-22 15:40:45,867459 INFO EnetPeer.cpp sendOutgoingCommands() line: 187 - going to resend pCommand: time: 1023 = 1005 sentCount: 1, original sentTime: 165
01-22 15:40:46.129: I/demo-loadBalancing(4476): 2014-01-22 15:40:46,131514 INFO LoadBalancingClient.cpp onStatusChanged() line: 510 - connected to masterserver
01-22 15:40:46.269: I/demo-loadBalancing(4476): 2014-01-22 15:40:46,279501 INFO LoadBalancingPeer.cpp opAuthenticate() line: 100 - OperationRequest - operationCode: 230 {224="286b7ed2-0bd6-4edf-a2cd-70cdf741692a", 220="1.0", 225="Android"}
01-22 15:40:46.389: I/demo-loadBalancing(4476): 2014-01-22 15:40:46,395938 INFO LoadBalancingClient.cpp onEvent() line: 579 - EventData - code: 226[/code2]

I managed to reproduce this with the original demoLoadBalancing app.

Thanks!

Comments

  • Hi,
    Look at my post: viewtopic.php?f=8&t=4142
    Looks like you encountered problem#1) Connecting closed room
  • Hi natasky.

    Thanks for the info.
    I will have a look into this.
  • I could successfully reproduce and fix this issue.
    The fix will be available in version 3.2.5.3.
  • Great, thanks!
  • Hi again,

    Getting this error now:

    [code2=text]02-10 01:24:14.450: I/demo-loadBalancing(1320): 2014-02-10 01:24:14,459324 ERROR LoadBalancing-cpp\LoadBalancingClient.cpp onOperationResponse() line: 306 - OperationResponse - operationCode: 226, returnCode: 32764 (Game closed) {}
    02-10 01:24:14.450: I/demo-loadBalancing(1320): 2014-02-10 01:24:14,459542 ERROR LoadBalancing-cpp\LoadBalancingClient.cpp onOperationResponse() line: 358 - opJoinRoom failed with errorcode 32764: Game closed. Client is therefore returning to masterserver!
    02-10 01:24:14.780: I/demo-loadBalancing(1320): 2014-02-10 01:24:14,789130 INFO LoadBalancing-cpp\LoadBalancingClient.cpp onStatusChanged() line: 510 - connected to masterserver[/code2]

    Notice it's "Game closed" now, but the effect is the same (stuck on JOINING state).
    Is this the same issue?

    Thanks!
  • Hi again.

    I am not sure, but I guess this could be the same issue.