Im using unity’s netcode with a steamP2P transport, and i have just a basic project with the minimum setup needed to have a client connect to a host. But for some reason, after about 10 seconds of the client being connected to the host, i get a “NullReferenceException: Object reference not set to an instance of an object” in NetwrokManager.cs, at line 1144: MessagingSystem.ProcessIncomingMessageQueue();.
.
I dont know how this problem could have raised, as i have not edited or altered NetworkManager.cs in anyway, and i dont even know where to start as to why this could be occurring.
Any help would be appreciated.
[EDIT] After doing some more testing, when attempting to run a ServerRpc from the client (as in not the host):
[ServerRpc(RequireOwnership = false)]
void SyncServerRpc()
{
Debug.Log("ServerRpc test");
}
I get the “NullReferenceException: Object reference not set to an instance of an object” error again, but this time its at NetworkManager.cs line 1380:
return MessagingSystem.SendMessage(message, delivery, clientId);
Keep in mind, both ClientRpc and ServerRpc work if done from the host.
which i couldnt find elsewhere via googling. I hope this helps.