#Unknown null reference error

1 messages · Page 1 of 1 (latest)

low tulip
#

Any idea what causes this? Came up once i updated the package to latest version

Unity.Netcode.NetworkConnectionManager.PollAndHandleNetworkEvents () (at ./Library/PackageCache/com.unity.netcode.gameobjects@c694fb5041d4/Runtime/Connection/NetworkConnectionManager.cs:414)
Unity.Netcode.NetworkManager.NetworkUpdate (Unity.Netcode.NetworkUpdateStage updateStage) (at ./Library/PackageCache/com.unity.netcode.gameobjects@c694fb5041d4/Runtime/Core/NetworkManager.cs:335)
Unity.Netcode.NetworkUpdateLoop.RunNetworkUpdateStage (Unity.Netcode.NetworkUpdateStage updateStage) (at ./Library/PackageCache/com.unity.netcode.gameobjects@c694fb5041d4/Runtime/Core/NetworkUpdateLoop.cs:191)
Unity.Netcode.NetworkUpdateLoop+NetworkEarlyUpdate+<>c.<CreateLoopSystem>b__0_0 () (at ./Library/PackageCache/com.unity.netcode.gameobjects@c694fb5041d4/Runtime/Core/NetworkUpdateLoop.cs:214)```

NullReferenceException: Object reference not set to an instance of an object
Unity.Netcode.NetworkManager.NetworkUpdate (Unity.Netcode.NetworkUpdateStage updateStage) (at ./Library/PackageCache/com.unity.netcode.gameobjects@c694fb5041d4/Runtime/Core/NetworkManager.cs:391)
Unity.Netcode.NetworkUpdateLoop.RunNetworkUpdateStage (Unity.Netcode.NetworkUpdateStage updateStage) (at ./Library/PackageCache/com.unity.netcode.gameobjects@c694fb5041d4/Runtime/Core/NetworkUpdateLoop.cs:191)
Unity.Netcode.NetworkUpdateLoop+NetworkPreUpdate+<>c.<CreateLoopSystem>b__0_0 () (at ./Library/PackageCache/com.unity.netcode.gameobjects@c694fb5041d4/Runtime/Core/NetworkUpdateLoop.cs:238)

abstract schooner
low tulip
abstract schooner
low tulip
#

i only start the host which runs once

torpid pendant
#

Nothing Netcode related should be updating at start

#

If this started after updating the package then you might need to delete the Library folder and reimport

abstract schooner
#

Best to try with a fresh scene/setup and see if you can replicate it by slowly adding back in pieces of what you have currently. Will be easier to track down that way

low tulip
torpid pendant
low tulip
low tulip
#

specifically calling StartHost() causes it

torpid pendant
low tulip
#

u r right its redundant lemme remove it and check again

#

nope problem remains @torpid pendant

torpid pendant
#

if its happening in an empty scene then open a bug report

low tulip
torpid pendant
#

obviously something in your scene is