Unity-Technologies / multiplayer-community-contributions

Community contributions to Unity Multiplayer Networking products and services.
MIT License
421 stars 161 forks source link

3 Errors in Version 2.0.0 #183

Open wzack850 opened 1 year ago

wzack850 commented 1 year ago

When I host my server, I get 3 errors. I have no code so far, and have no idea how to fix these.

NullReferenceException: Object reference not set to an instance of an object Netcode.Transports.Facepunch.FacepunchTransport.Awake () (at Library/PackageCache/com.community.netcode.transport.facepunch@e9f53f86a0/Runtime/FacepunchTransport.cs:51)

And

NullReferenceException: Object reference not set to an instance of an object Steamworks.SteamNetworkingSockets.CreateRelaySocket[T] (System.Int32 virtualport) (at <19bd4cc6a4004258bf538b05ac1133d6>:0) Netcode.Transports.Facepunch.FacepunchTransport.StartServer () (at Library/PackageCache/com.community.netcode.transport.facepunch@e9f53f86a0/Runtime/FacepunchTransport.cs:176) Unity.Netcode.NetworkManager.StartHost () (at Library/PackageCache/com.unity.netcode.gameobjects@1.0.2/Runtime/Core/NetworkManager.cs:1102) Unity.Netcode.Editor.NetworkManagerEditor.OnInspectorGUI () (at Library/PackageCache/com.unity.netcode.gameobjects@1.0.2/Editor/NetworkManagerEditor.cs:321) UnityEditor.UIElements.InspectorElement+<>c__DisplayClass59_0.<CreateIMGUIInspectorFromEditor>b__0 () (at <46976ad9004e4c8ca11353e8bb94e264>:0) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

And if you try to host it too many times in a row, it says:

A Native Collection has not been disposed, resulting in a memory leak. Enable Full StackTraces to get more details.

I am running Unity Editor Version 2021.3.11f1 Personal.