BoltEngine / Bolt-Tracker

New issue tracker for Photon Bolt
10 stars 2 forks source link

BoltMatchmaking.JoinSession failed with error "Operation RaiseEvent (253) not called because client is not connected or not ready yet" #152

Closed cetester001 closed 4 years ago

cetester001 commented 4 years ago

How to reproduce issue

  1. After a server session is created, use BoltMatchmaking.JoinSession(string sessionID, IProtocolToken token) to join the specified session.
  2. Most of the time, client can connected to the host successfully.
  3. But sometimes, it will pop up this error "Operation RaiseEvent (253) not called because client is not connected or not ready yet, client state: Joining".
  4. If the error occurred, then the client will not be able to connect to the server until "Room Join failed due to exceeded max time to join".
  5. If attempt to JoinSession again after timeout, it will start pinging and can connect to the server.
  6. Also, if the error occurred, then the client call BotNetwork.Shutdown, then re-StartClient again, then JoinSession, it will start pinging and can connect to the server.

Expected Behavior

Actual behavior

Logs

Configuration

ramonmelo commented 4 years ago

Hello @cetester001 ,

Are you able to reproduce your behavior using Photon Bolt 1.2.11?

The "Join Session" process was mostly reworked from the version 1.2.10 to 1.2.11 with extra checks to prevent such cases. We've performed several tests, running local and remote Game servers, without any issues using the latest version.

Thanks for your feedback.

cetester001 commented 4 years ago

Thanks @ramonmelo ,

It seems like this issue does not occurred after upgrading to v1.2.11, will let you know if there are any problems.

Thank you very much!