I’m working on a build of a game and when I open two clients I get a error and disconnection on the mirror networking. I have joined the mirror discord and reached out in the help chat but no bites just yet. I also looked into some other discords as well. I’m trying to decipher the player.log file.What I am trying to understand is the identification process of where to look to find the problem child prefab or obj or even script?
Disconnecting connId=0 to prevent exploits from an Exception in MessageHandler: NullReferenceException Object reference not set to an instance of an object
at Mirror.NetworkIdentity.OnStartClient () [0x0004e] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkClient.OnObjectSpawnFinished (Mirror.ObjectSpawnFinishedMessage _) [0x00047] in <bb1eaf525cd6440ba797670518a87c2a>:0
at (wrapper delegate-invoke) System.Action`1[Mirror.ObjectSpawnFinishedMessage].invoke_void_T(Mirror.ObjectSpawnFinishedMessage)
at Mirror.NetworkClient+<>c__DisplayClass46_0`1[T].<RegisterHandler>g__HandlerWrapped|0 (Mirror.NetworkConnection _, T value) [0x00000] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.MessagePacking+<>c__DisplayClass7_0`2[T,C].<WrapHandler>g__Wrapped|0 (C conn, T msg, System.Int32 _) [0x00000] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.MessagePacking+<>c__DisplayClass6_0`2[T,C].<WrapHandler>b__0 (Mirror.NetworkConnection conn, Mirror.NetworkReader reader, System.Int32 channelId) [0x0007a] in <bb1eaf525cd6440ba797670518a87c2a>:0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
No ready connection found for setting player controller during InternalAddPlayer
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
OnClientDisconnect
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Uploading Crash Report
NullReferenceException: Object reference not set to an instance of an object
at Mirror.NetworkIdentity.OnStopClient () [0x00023] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkClient.DestroyAllClientObjects () [0x00031] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkClient.Shutdown () [0x00005] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkManager.StopClient () [0x000b4] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkManager.OnClientDisconnect () [0x00009] in <bb1eaf525cd6440ba797670518a87c2a>:0
at NetworkManagerSurvival.OnClientDisconnect () [0x0003e] in <5ff4eae2096e4602a54118f9da925eb7>:0
at Mirror.NetworkManager.OnClientDisconnect (Mirror.NetworkConnection conn) [0x00000] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkManager.OnClientDisconnectInternal () [0x00006] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkClient.OnTransportDisconnected () [0x00019] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.TelepathyTransport.<CreateClient>b__18_2 () [0x00000] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Telepathy.Client.Tick (System.Int32 processLimit, System.Func`1[TResult] checkEnabled) [0x0007c] in <0289e1b0df954c649130738d7d505d55>:0
at Mirror.TelepathyTransport.ClientEarlyUpdate () [0x00013] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkClient.NetworkEarlyUpdate () [0x0000d] in <bb1eaf525cd6440ba797670518a87c2a>:0
at Mirror.NetworkLoop.NetworkEarlyUpdate () [0x00005] in <bb1eaf525cd6440ba797670518a87c2a>:0