good morning I have a problem with photon, when I call LeaveRoom(), the client remains in the “leaving” state forever and I can’t join other rooms
Is this for PUN? Latest version?
Enable the SupportLogger and check the console for hints of what’s wrong. Maybe something shows up.
yes is PUN and yes i have the latest version , the support logger print :
[3:24.24] SupportLogger Rtt(variance): 43(11). Since receive: 124934ms. Longest send: 0ms. Stats elapsed: 191sec.
Longest delta between Send: 285ms Dispatch: 22ms. Longest callback OnEv: 255=2ms OnResp: 226=2ms. Calls of Send: 1193 Dispatch: 20. Ping min/max: 36/43
UnityEngine.Debug:Log (object)
Photon.Realtime.SupportLogger:LogStats () (at Assets/Photon/PhotonRealtime/Code/SupportLogger.cs:213) , thanks in advance
This part “Since receive: 124934ms” looks a lot like a timeout coming up. The client apparently isn’t getting anything from the server anymore for some reason. In some Unity Editor versions, we had issues with connections (it’s rare but happens). Maybe you update to a later version of the same LTS version you use?
Is there a timeout happening? Then the client is already out of the room.
The full log might help understand this more.
i will try to upgrade to the next version , the client is stuck in the state “Leaving” ,
How do I know if a timeout is happening? where can i find the full log? i copied and pasted the full log in the unity console log
A timeout happens when there is a “disconnect” callback. You can learn about most basics like these in the PUN Basics Tutorial.
Unity docs will tell you where the log files are (this depends on a few things, so I can’t just point to one place).