Crash when failed to join room due to closed game

Options

It only happens when the user fails to join the room.

Any idea that I can try?


OperationException: Game closed (ErrorCode: 32764)

 at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <695d1cc93cca45069c528c15c9fdd749>:0 

 at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <695d1cc93cca45069c528c15c9fdd749>:0 

 at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <695d1cc93cca45069c528c15c9fdd749>:0 

 at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <695d1cc93cca45069c528c15c9fdd749>:0 

 at System.Runtime.CompilerServices.TaskAwaiter`1[TResult].GetResult () [0x00000] in <695d1cc93cca45069c528c15c9fdd749>:0 

 at Fusion.NetworkRunner+<StartGameModeCloud>d__280.MoveNext () [0x002c6] in <e9040e209b6c47ba993b5271e3a71a53>:0 

UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)

UnityEngine.DebugLogHandler:LogException(Exception, Object)

UnityEngine.Logger:LogException(Exception, Object)

UnityEngine.Debug:LogException(Exception)

Fusion.FusionUnityLogger:LogException(String, DefaultContext&, Exception) (at Assets\Photon\Fusion\Scripts\FusionUnityLogger.cs:139)

Fusion.Log:Exception(NetworkRunner, Exception)

Fusion.<ShutdownWithException>d__281:MoveNext()

System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1:Start(<ShutdownWithException>d__281&)

Fusion.NetworkRunner:ShutdownWithException(Exception)

Fusion.<StartGameModeCloud>d__280:MoveNext()

System.Runtime.CompilerServices.MoveNextRunner:InvokeMoveNext(Object)

System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean)

System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean)

System.Runtime.CompilerServices.MoveNextRunner:Run()

System.Threading.Tasks.AwaitTaskContinuation:InvokeAction(Object)

System.Threading.Tasks.AwaitTaskContinuation:RunCallback(ContextCallback, Object, Task&)

System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation:Run(Task, Boolean)

System.Threading.Tasks.Task:FinishContinuations()

System.Threading.Tasks.Task:FinishStageThree()

System.Threading.Tasks.Task:FinishStageTwo()

System.Threading.Tasks.Task:Finish(Boolean)

System.Threading.Tasks.Task`1:TrySetException(Object)

System.Threading.Tasks.TaskCompletionSource`1:TrySetException(Exception)

Fusion.Photon.Realtime.Async.OperationHandler:SetException(Exception)

Fusion.Photon.Realtime.Async.OperationHandler:OnJoinRoomFailed(Int16, String)

Fusion.Photon.Realtime.MatchMakingCallbacksContainer:OnJoinRoomFailed(Int16, String)

Fusion.Photon.Realtime.LoadBalancingClient:CallbackRoomEnterFailed(OperationResponse)

Fusion.Photon.Realtime.LoadBalancingClient:OnOperationResponse(OperationResponse)

ExitGames.Client.Photon.PeerBase:DeserializeMessageAndCallback(StreamBuffer)

ExitGames.Client.Photon.EnetPeer:DispatchIncomingCommands()

ExitGames.Client.Photon.PhotonPeer:DispatchIncomingCommands()

ExitGames.Client.Photon.PhotonPeer:Service()

Fusion.Photon.Realtime.LoadBalancingClient:Service()

Fusion.Photon.Realtime.FusionRelayClient:Update()

Fusion.CloudCommunicator:Service()

Fusion.CloudServices:Update()

Fusion.NetworkRunner:Update()



The below log shows crash.


Stacktrace:


 at <unknown> <0xffffffff>

 at (wrapper managed-to-native) Unity.Collections.LowLevel.Unsafe.UnsafeUtility.Free (void*,Unity.Collections.Allocator) [0x00008] in <07c89f7520694139991332d3cf930d48>:0

 at Fusion.Native.Free (void*) [0x00002] in <d1c8e52324bc40aaa70a5e43a52ca78c>:0

 at Fusion.Allocator.Dispose (Fusion.Allocator*) [0x00006] in <e9040e209b6c47ba993b5271e3a71a53>:0

 at Fusion.NetworkRunner.Shutdown (bool,Fusion.ShutdownReason,bool) [0x0017c] in <e9040e209b6c47ba993b5271e3a71a53>:0

 at Fusion.NetworkRunner/<ShutdownWithException>d__281.MoveNext () [0x0005c] in <e9040e209b6c47ba993b5271e3a71a53>:0

 at System.Runtime.CompilerServices.AsyncTaskMethodBuilder`1<Fusion.StartGameException>.Start<Fusion.NetworkRunner/<ShutdownWithException>d__281> (Fusion.NetworkRunner/<ShutdownWithException>d__281&) [0x00033] in <695d1cc93cca45069c528c15c9fdd749>:0

 at Fusion.NetworkRunner.ShutdownWithException (System.Exception) [0x0002d] in <e9040e209b6c47ba993b5271e3a71a53>:0

 at Fusion.NetworkRunner/<StartGameModeCloud>d__280.MoveNext () [0x00615] in <e9040e209b6c47ba993b5271e3a71a53>:0

 at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.InvokeMoveNext (object) [0x00006] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00073] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool) [0x00004] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Runtime.CompilerServices.AsyncMethodBuilderCore/MoveNextRunner.Run () [0x00032] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.AwaitTaskContinuation.InvokeAction (object) [0x00006] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.AwaitTaskContinuation.RunCallback (System.Threading.ContextCallback,object,System.Threading.Tasks.Task&) [0x00013] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.SynchronizationContextAwaitTaskContinuation.Run (System.Threading.Tasks.Task,bool) [0x00021] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.Task.FinishContinuations () [0x0018d] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.Task.FinishStageThree () [0x0003d] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.Task.FinishStageTwo () [0x000d5] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.Task.Finish (bool) [0x00004] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.Task`1<int16>.TrySetException (object) [0x00025] in <695d1cc93cca45069c528c15c9fdd749>:0

 at System.Threading.Tasks.TaskCompletionSource`1<int16>.TrySetException (System.Exception) [0x00015] in <695d1cc93cca45069c528c15c9fdd749>:0

 at Fusion.Photon.Realtime.Async.OperationHandler.SetException (System.Exception) [0x00008] in <d4f227818b6545ebb2e4ae0ac317da80>:0

 at Fusion.Photon.Realtime.Async.OperationHandler.OnJoinRoomFailed (int16,string) [0x0003e] in <d4f227818b6545ebb2e4ae0ac317da80>:0

 at Fusion.Photon.Realtime.MatchMakingCallbacksContainer.OnJoinRoomFailed (int16,string) [0x00023] in <d4f227818b6545ebb2e4ae0ac317da80>:0

 at Fusion.Photon.Realtime.LoadBalancingClient.CallbackRoomEnterFailed (ExitGames.Client.Photon.OperationResponse) [0x00036] in <d4f227818b6545ebb2e4ae0ac317da80>:0

 at Fusion.Photon.Realtime.LoadBalancingClient.OnOperationResponse (ExitGames.Client.Photon.OperationResponse) [0x0072e] in <d4f227818b6545ebb2e4ae0ac317da80>:0

 at ExitGames.Client.Photon.PeerBase.DeserializeMessageAndCallback (ExitGames.Client.Photon.StreamBuffer) [0x0023f] in <4c05f01c27d1415bafcda4c1ab7160e0>:0

 at ExitGames.Client.Photon.EnetPeer.DispatchIncomingCommands () [0x003d1] in <4c05f01c27d1415bafcda4c1ab7160e0>:0

 at ExitGames.Client.Photon.PhotonPeer.DispatchIncomingCommands () [0x0003e] in <4c05f01c27d1415bafcda4c1ab7160e0>:0

 at ExitGames.Client.Photon.PhotonPeer.Service () [0x00006] in <4c05f01c27d1415bafcda4c1ab7160e0>:0

 at Fusion.Photon.Realtime.LoadBalancingClient.Service () [0x00015] in <d4f227818b6545ebb2e4ae0ac317da80>:0

 at Fusion.Photon.Realtime.FusionRelayClient.Update () [0x0000a] in <d4f227818b6545ebb2e4ae0ac317da80>:0

 at Fusion.CloudCommunicator.Service () [0x0000e] in <e9040e209b6c47ba993b5271e3a71a53>:0

 at Fusion.CloudServices.Update () [0x0000c] in <e9040e209b6c47ba993b5271e3a71a53>:0

 at Fusion.NetworkRunner.Update () [0x0000c] in <e9040e209b6c47ba993b5271e3a71a53>:0

 at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) [0x00020] in <695d1cc93cca45069c528c15c9fdd749>:0