Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NewDeveloper911 opened this issue Apr 22, 2024 · 1 comment
Labels
stat:awaiting response Status - Awaiting response from author. stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report

Comments

@NewDeveloper911
Copy link

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/com.unity.netcode.gameobjects@1.4.0/Runtime/Logging/NetworkLog.cs:34)
Unity.Netcode.MessagingSystem:HandleIncomingData (ulong,System.ArraySegment1<byte>,single) (at Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/Runtime/Messaging/MessagingSystem.cs:251) Unity.Netcode.NetworkManager:HandleIncomingData (ulong,System.ArraySegment1,single) (at Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/Runtime/Core/NetworkManager.cs:1882)
Unity.Netcode.NetworkManager:HandleRawTransportPoll (Unity.Netcode.NetworkEvent,ulong,System.ArraySegment1<byte>,single) (at Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/Runtime/Core/NetworkManager.cs:1703) Unity.Netcode.NetworkTransport:InvokeOnTransportEvent (Unity.Netcode.NetworkEvent,ulong,System.ArraySegment1,single) (at Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/Runtime/Transports/NetworkTransport.cs:49)
Unity.Netcode.Transports.UTP.UnityTransport:ReceiveMessages (ulong,Unity.Networking.Transport.NetworkPipeline,Unity.Networking.Transport.DataStreamReader) (at Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/Runtime/Transports/UTP/UnityTransport.cs:828)
Unity.Netcode.Transports.UTP.UnityTransport:ProcessEvent () (at Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/Runtime/Transports/UTP/UnityTransport.cs:878)
Unity.Netcode.Transports.UTP.UnityTransport:Update () (at Library/PackageCache/com.unity.netcode.gameobjects@1.4.0/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 NewDeveloper911 added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report labels Apr 22, 2024
@fluong6
Copy link
Contributor

fluong6 commented Apr 29, 2024

@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 fluong6 added the stat:awaiting response Status - Awaiting response from author. label Apr 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting response Status - Awaiting response from author. stat:awaiting triage Status - Awaiting triage from the Netcode team. type:bug Bug Report
Projects
None yet
Development

No branches or pull requests

2 participants