com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

Issue when using Unity 2021.3.37f1 and the latest version of Netcode - receiving invalid has codes sends my players flying

Open NewDeveloper911 opened this issue 10 months ago • 1 comments

Description

Console crash is as such upon driving for a few seconds.

Received Hash: 18385148096726945557, Calculated Hash: 10592009187078786461, Offset: 4, Size: 192, Full receive array: c0 00 00 00 60 11 01 00 c0 00 00 00 15 cf 5b 08 c9 2a 25 ff 09 52 05 02 02 7d 9a e2 a5 11 b2 36 17 b3 01 46 c4 ca 04 01 2a b2 f1 50 01 e9 3a b6 d2 01 39 3b e8 2c 01 ab c9 50 60 01 53 a3 38 44 01 d3 f6 1c b8 01 a6 22 89 97 01 b5 fe 01 74 01 be 97 be 73 01 bd 23 d8 d0 01 58 aa fb 1c 01 9d 9a 5c 01 01 e9 51 97 17 01 8a f7 e7 83 01 42 7f 88 c6 01 97 a3 f5 46 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 00 00 00 00 01 28 5e 00 21 56 20 16 70 00 00 00 UnityEngine.Debug:LogError (object) Unity.Netcode.NetworkLog:LogError (string) (at Library/PackageCache/[email protected]/Runtime/Logging/NetworkLog.cs:34) Unity.Netcode.MessagingSystem:HandleIncomingData (ulong,System.ArraySegment1<byte>,single) (at Library/PackageCache/[email protected]/Runtime/Messaging/MessagingSystem.cs:251) Unity.Netcode.NetworkManager:HandleIncomingData (ulong,System.ArraySegment1,single) (at Library/PackageCache/[email protected]/Runtime/Core/NetworkManager.cs:1882) Unity.Netcode.NetworkManager:HandleRawTransportPoll (Unity.Netcode.NetworkEvent,ulong,System.ArraySegment1<byte>,single) (at Library/PackageCache/[email protected]/Runtime/Core/NetworkManager.cs:1703) Unity.Netcode.NetworkTransport:InvokeOnTransportEvent (Unity.Netcode.NetworkEvent,ulong,System.ArraySegment1,single) (at Library/PackageCache/[email protected]/Runtime/Transports/NetworkTransport.cs:49) Unity.Netcode.Transports.UTP.UnityTransport:ReceiveMessages (ulong,Unity.Networking.Transport.NetworkPipeline,Unity.Networking.Transport.DataStreamReader) (at Library/PackageCache/[email protected]/Runtime/Transports/UTP/UnityTransport.cs:828) Unity.Netcode.Transports.UTP.UnityTransport:ProcessEvent () (at Library/PackageCache/[email protected]/Runtime/Transports/UTP/UnityTransport.cs:878) Unity.Netcode.Transports.UTP.UnityTransport:Update () (at Library/PackageCache/[email protected]/Runtime/Transports/UTP/UnityTransport.cs:911)

Actual Outcome

Upon driving on either my host or client computer (error occurs on both randomly), my car goes flying far off into the distance and I receive an error in the console as such. I updated from Unity 2021.3.8f1 to 2021.3.37f1, expecting the bug to be resolved, however this was not the case.

Expected Outcome

I expected there to be no hash issues at all - I had none of such issues to this degree the last time that I had opened the project. Even when loading cars into new scenes, I would never have this error

Screenshots

image

Environment

  • OS: [Windows 10]
  • Unity Version: [2021.3.37f1]
  • Netcode Version: [1.8.1]
  • Netcode Commit: [e.g. https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/commit/ba418fa5b600ad9eb61fab0575f12fbecc2c6520]

NewDeveloper911 avatar Apr 22 '24 19:04 NewDeveloper911

@NewDeveloper911 The stacktrace indicates that the project is using NGO version 1.4.0. Can you please update the NGO to 1.9.1 and verify if the issue still occurs?

fluong6 avatar Apr 29 '24 17:04 fluong6