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

[Netcode] Received a packet with an invalid Hash Value.

Open lawyerprogrammer opened this issue 1 year ago • 0 comments

Description

[Netcode] Received a packet with an invalid Hash Value.

When attempting to establish a connection between a Windows PC and a Mac in my multiplayer game, I receive the error:

"[Netcode] Received a packet with an invalid Hash Value."

This issue arises regardless of whether the macOS machine is hosting or joining as a client. However, the error does not occur when connecting two Windows PCs. I'm using Unity Relay for my connections, and the problem only affects macOS.

Actual Outcome

[Netcode] Received a packet with an invalid Hash Value. Please report this to the Netcode for GameObjects team at https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues and include the following data: Received Hash: 7590308811017655257, Calculated Hash: 3892330447731992672, Offset: 4, Size: 192, Full receive array: c0 00 00 00 60 11 01 00 c0 00 00 00 d9 93 39 00 a6 31 56 69 09 52 05 02 02 7d 9a e2 a5 11 b2 36 17 b3 01 c2 40 2e a3 01 4e 67 03 d2 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 e9 4e 31 0d 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 0c 39 d4 33 d4 7e fe 6a 00 00 00

UnityEngine.Debug:LogError (object) Unity.Netcode.NetworkLog:LogError (string) (at ./Library/PackageCache/[email protected]/Runtime/Logging/NetworkLog.cs:34) Unity.Netcode.NetworkMessageManager:HandleIncomingData (ulong,System.ArraySegment1<byte>,single) (at ./Library/PackageCache/[email protected]/Runtime/Messaging/NetworkMessageManager.cs:268) Unity.Netcode.NetworkConnectionManager:DataEventHandler (ulong,System.ArraySegment1&,single) (at ./Library/PackageCache/[email protected]/Runtime/Connection/NetworkConnectionManager.cs:333) Unity.Netcode.NetworkConnectionManager:HandleNetworkEvent (Unity.Netcode.NetworkEvent,ulong,System.ArraySegment1<byte>,single) (at ./Library/PackageCache/[email protected]/Runtime/Connection/NetworkConnectionManager.cs:261) 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.Collections.DataStreamReader) (at ./Library/PackageCache/[email protected]/Runtime/Transports/UTP/UnityTransport.cs:842) Unity.Netcode.Transports.UTP.UnityTransport:ProcessEvent () (at ./Library/PackageCache/[email protected]/Runtime/Transports/UTP/UnityTransport.cs:892) Unity.Netcode.Transports.UTP.UnityTransport:Update () (at ./Library/PackageCache/[email protected]/Runtime/Transports/UTP/UnityTransport.cs:925)

Environment

  • OS: Mac
  • Unity Version: [e.g. 2022.3.9]
  • Netcode Version: [1.5.2]

Additional Context

I searched the issue before and I updated the Unity transport. However the issue still appears.

lawyerprogrammer avatar Oct 08 '24 21:10 lawyerprogrammer