Game Crashing - RaiseEvent failed

Options

My multiplayer game is crashing during the game, I noticed that the error that occurs the most is this: RaiseEvent(x) failed. Your event is not being sent! Check if your are in a Room and the eventCode must be less than 200 (0..199).

Exception: PlayerName disconnected ClientTimeout


In this case the DisconnectCause is ClientTimeout after same raiseevent erros


I would like to know how I can be solving this. I'm using PlayFab with Photon.

Comments

  • Tobias
    Options

    Timeouts may just happen but there are a few things you must avoid doing because they make timeouts more likely. Here is a doc about Analyzing Disconnects.

    The log tells you that you can't send (after the timeout).

    When the client disconnects it will tell your game logic via callback. When this is called, you have to stop your game logic from sending updates to everyone (because the client no longer has a connection anyways).