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

Received a packet with an invalid Hash Value

Open GrimLothar opened this issue 1 year ago • 1 comments

Got an error that just said to open a bug report here and paste this info

[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: 10833747644380368641, Calculated Hash: 15311645422019719833, Offset: 4, Size: 71408, Full receive array: f0 16 01 00 60 11 01 00 f0 16 01 00 01 4f 84 39 15 34 59 96 39 ab b6 08 18 41 d7 f8 00 00 00 00 34 08 c3 16 01 00 c3 16 01 00 00 01 00 00 00 ff ff ff ff 01 00 00 00 00 00 00 00 0c 02 00 00 00 40 54 63 67 45 6e 67 69 6e 65 2c 20 56 65 72 73 69 6f 6e 3d 30 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 6e 75 6c 6c 0c 03 00 00 00 4e 53 79 73 74 65 6d 2e 43 6f 72 65 2c 20 56 65 72 73 69 6f 6e 3d 34 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 62 37 37 61 35 63 35 36 31 39 33 34 65 30 38 39 05 01 00 00 00 0e 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 1b 00 00 00 08 67 61 6d 65 5f 75 69 64 08 73 65 74 74 69 6e 67 73 0c 66 69 72 73 74 5f 70 6c 61 79 65 72 0e 63 75 72 72 65 6e 74 5f 70 6c 61 79 65 72 0b 72 6f 75 6e 64 5f 63 6f 75 6e 74 0a 74 75 72 6e 5f 63 6f 75 6e 74 0a 74 75 72 6e 5f 74 69 6d 65 72 0e 6d 75 6c 6c 69 67 61 6e 5f 74 69 6d 65 72 05 73 74 61 74 65 05 70 68 61 73 65 07 70 6c 61 79 65 72 73 09 61 6c 6c 5f 73 6c 6f 74 73 0c 63 61 72 64 73 5f 70 6c 61 79 65 64 08 73 65 6c 65 63 74 6f 72 12 73 65 6c 65 63 74 6f 72 5f 70 6c 61 79 65 72 5f 69 64 13 73 65 6c 65 63 74 6f 72 5f 61 62 69 6c 69 74 79 5f 69 64 13 73 65 6c 65 63 74 6f 72 5f 63 61 73 74 65 72 5f 75 69 64 0d 6c 61 73 74 5f 73 65 6c 65 63 74 65 64 0b 6c 61 73 74 5f 70 6c 61 79 65 64 0b 6c 61 73 74 5f 74 61 72 67 65 74 10 6c 61 73 74 5f 74 61 72 67 65 74 5f 73 6c 6f 74 0e 6c 61 73 74 5f 64 65 73 74 72 6f 79 65 64 0d 6c 61 73 74 5f 73 75 6d 6d 6f 6e 65 64 11 61 62 69 6c 69 74 79 5f 74 72 69 67 67 65 72 65 72 0c 72 6f 6c 6c 65 64 5f 76 61 6c 75 65 0e 61 62 69 6c 69 74 79 5f 70 6c 61 79 65 64 0e 63 61 72 64 73 5f 61 74 74 61 63 6b 65 64 01 04 00 00 00 00 00 00 04 04 04 03 03 04 00 01 01 01 01 01 01 01 01 01 00 04 04 16 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 53 65 74 74 69 6e 67 73 02 00 00 00 08 08 08 08 0b 0b 13 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 53 74 61 74 65 02 00 00 00 13 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 50 68 61 73 65 02 00 00 00 12 54 63 67 45 6e 67 69 6e 65 2e 50 6c 61 79 65 72 5b 5d 02 00 00 00 d8 01 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 2e 44 69 63 74 69 6f 6e 61 72 79 60 32 5b 5b 53 79 73 74 65 6d 2e 53 74 72 69 6e 67 2c 20 6d 73 63 6f 72 6c 69 62 2c 20 56 65 72 73 69 6f 6e 3d 34 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 62 37 37 61 35 63 35 36 31 39 33 34 65 30 38 39 5d 2c 5b 54 63 67 45 6e 67 69 6e 65 2e 53 6c 6f 74 2c 20 54 63 67 45 6e 67 69 6e 65 2c 20 56 65 72 73 69 6f 6e 3d 30 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 6e 75 6c 6c 5d 5d 7f 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 2e 4c 69 73 74 60 31 5b 5b 53 79 73 74 65 6d 2e 53 74 72 69 6e 67 2c 20 6d 73 63 6f 72 6c 69 62 2c 20 56 65 72 73 69 6f 6e 3d 34 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 62 37 37 61 35 63 35 36 31 39 33 34 65 30 38 39 5d 5d 16 54 63 67 45 6e 67 69 6e 65 2e 53 65 6c 65 63 74 6f 72 54 79 70 65 02 00 00 00 08 08 82 01 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 2e 48 61 73 68 53 65 74 60 31 5b 5b 53 79 73 74 65 6d 2e 53 74 72 69 6e 67 2c 20 6d 73 63 6f 72 6c 69 62 2c 20 56 65 72 73 69 6f 6e 3d 34 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 62 37 37 61 35 63 35 36 31 39 33 34 65 30 38 39 5d 5d 03 00 00 00 82 01 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 2e 48 61 73 68 53 65 74 60 31 5b 5b 53 79 73 74 65 6d 2e 53 74 72 69 6e 67 2c 20 6d 73 63 6f 72 6c 69 62 2c 20 56 65 72 73 69 6f 6e 3d 34 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 62 37 37 61 35 63 35 36 31 39 33 34 65 30 38 39 5d 5d 03 00 00 00 02 00 00 00 06 04 00 00 00 0d 6c 6f 31 33 50 45 51 57 6e 49 38 46 54 09 05 00 00 00 00 00 00 00 01 00 00 00 0a 00 00 00 13 00 00 00 6f 2d d5 42 90 53 e2 41 05 fa ff ff ff 13 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 53 74 61 74 65 01 00 00 00 07 76 61 6c 75 65 5f 5f 00 08 02 00 00 00 14 00 00 00 05 f9 ff ff ff 13 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 50 68 61 73 65 01 00 00 00 07 76 61 6c 75 65 5f 5f 00 08 02 00 00 00 14 00 00 00 09 08 00 00 00 09 09 00 00 00 09 0a 00 00 00 05 f5 ff ff ff 16 54 63 67 45 6e 67 69 6e 65 2e 53 65 6c 65 63 74 6f 72 54 79 70 65 01 00 00 00 07 76 61 6c 75 65 5f 5f 00 08 02 00 00 00 00 00 00 00 00 00 00 00 06 0c 00 00 00 17 70 6c 61 79 5f 6d 6f 76 65 5f 72 61 6e 64 6f 6d 5f 64 61 65 6d 6f 6e 06 0d 00 00 00 0d 74 62 6b 62 4d 51 37 78 47 36 4d 74 4a 06 0e 00 00 00 0d 73 5f 6f 64 7a 68 4d 77 6b 6e 78 6f 6c 0a 0a 0a 0a 0a 0a 00 00 00 00 09 0f 00 00 00 09 10 00 00 00 05 05 00 00 00 16 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 53 65 74 74 69 6e 67 73 07 00 00 00 0a 73 65 72 76 65 72 5f 75 72 6c 08 67 61 6d 65 5f 75 69 64 05 73 63 65 6e 65 0a 6e 62 5f 70 6c 61 79 65 72 73 09 67 61 6d 65 5f 74 79 70 65 09 67 61 6d 65 5f 6d 6f 64 65 05 6c 65 76 65 6c 01 01 01 00 04 04 01 08 12 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 54 79 70 65 02 00 00 00 12 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 4d 6f 64 65 02 00 00 00 02 00 00 00 06 11 00 00 00 00 06 12 00 00 00 0d 6c 6f 31 33 50 45 51 57 6e 49 38 46 54 06 13 00 00 00 06 47 61 6d 65 33 44 02 00 00 00 05 ec ff ff ff 12 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 54 79 70 65 01 00 00 00 07 76 61 6c 75 65 5f 5f 00 08 02 00 00 00 14 00 00 00 05 eb ff ff ff 12 54 63 67 45 6e 67 69 6e 65 2e 47 61 6d 65 4d 6f 64 65 01 00 00 00 07 76 61 6c 75 65 5f 5f 00 08 02 00 00 00 0a 00 00 00 09 11 00 00 00 07 08 00 00 00 00 01 00 00 00 02 00 00 00 04 10 54 63 67 45 6e 67 69 6e 65 2e 50 6c 61 79 65 72 02 00 00 00 09 17 00 00 00 09 18 00 00 00 04 09 00 00 00 d8 01 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 2e 44 69 63 74 69 6f 6e 61 72 79 60 32 5b 5b 53 79 73 74 65 6d 2e 53 74 72 69 6e 67 2c 20 6d 73 63 6f 72 6c 69 62 2c 20 56 65 72 73 69 6f 6e 3d 34 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 62 37 37 61 35 63 35 36 31 39 33 34 65 30 38 39 5d 2c 5b 54 63 67 45 6e 67 69 6e 65 2e 53 6c 6f 74 2c 20 54 63 67 45 6e 67 69 6e 65 2c 20 56 65 72 73 69 6f 6e 3d 30 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 6e 75 6c 6c 5d 5d 04 00 00 00 07 56 65 72 73 69 6f 6e 08 43 6f 6d 70 61 72 65 72 08 48 61 73 68 53 69 7a 65 0d 4b 65 79 56 61 6c 75 65 50 61 69 72 73 00 03 00 03 08 92 01 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 2e 47 65 6e 65 72 69 63 45 71 75 61 6c 69 74 79 43 6f 6d 70 61 72 65 72 60 31 5b 5b 53 79 73 74 65 6d 2e 53 74 72 69 6e 67 2c 20 6d 73 63 6f 72 6c 69 62 2c 20 56 65 72 73 69 6f 6e 3d 34 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 62 37 37 61 35 63 35 36 31 39 33 34 65 30 38 39 5d 5d 08 dc 01 53 79 73 74 65 6d 2e 43 6f 6c 6c 65 63 74 69 6f 6e 73 2e 47 65 6e 65 72 69 63 2e 4b 65 79 56 61 6c 75 65 50 61 69 72 60 32 5b 5b 53 79 73 74 65 6d 2e 53 74 72 69 6e 67 2c 20 6d 73 63 6f 72 6c 69 62 2c 20 56 65 72 73 69 6f 6e 3d 34 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d 6e 65 75 74 72 61 6c 2c 20 50 75 62 6c 69 63 4b 65 79 54 6f 6b 65 6e 3d 62 37 37 61 35 63 35 36 31 39 33 34 65 30 38 39 5d 2c 5b 54 63 67 45 6e 67 69 6e 65 2e 53 6c 6f 74 2c 20 54 63 67 45 6e 67 69 6e 65 2c 20 56 65 72 73 69 6f 6e 3d 30 2e 30 2e 30 2e 30 2c 20 43 75 6c 74 75 72 65 3d ...

GrimLothar avatar May 21 '24 18:05 GrimLothar

com.unity.transport version 2.3.0 has released today that I think should have a fix for this issue. A new release for the 1.x line of com.unity.transport should be out soon as well, I'll post again when that is out in case you can't or don't want to update to 2.3.0.

Can you retest and confirm for us?

ShadauxCat avatar Jun 25 '24 17:06 ShadauxCat

It should be fixed in com.unity.transport 2.3.0 as well as in 1.5.0. Please let us know If after updating to one of those versions it will still not work correctly, otherwise we will be slowly closing issues related to this bug

michalChrobot avatar Oct 29 '24 16:10 michalChrobot

@ShadauxCat @michalChrobot thank you for your replies.

It looks like com.unity.transport on my project is only being used by Netcode for GameObjects 1.8.1 (this repo). But I don't see any updates there since February.

So is it safe for this package to update transport? Screenshot 2024-10-29 at 2 41 54 PM

GrimLothar avatar Oct 29 '24 17:10 GrimLothar

I can see that Netcode for GameObjects uses a [email protected] dependency. I would upgrade it then to 1.5.0 and this shouldn't break the project in any way (since there is no major package version change) image

Let me know if it worked

michalChrobot avatar Oct 29 '24 21:10 michalChrobot

Alright, I changed it to 1.5.0.

Any idea when netcode for gameobjects will be updated to use the 2.x.x branch of transport? Would be nice to be on the latest

Regarding my issue itself, I have no way or replicating the error, since I got it from a user in production... so not sure if you want to just close this and I'll create a new one if I get a new error after I push this build out?

GrimLothar avatar Oct 30 '24 12:10 GrimLothar

Hmm, I'm not sure which editor version are you using but the correct way would be to consider switching to Unity 6. I can see that the newest version of com.unity.netcode.gameobjects (2.X) is available from this editor version and it references the newest Transport package (2.X). (all netcode for gameobject, packages of version 1.X are referencing Transport package of version 1.X) Of course it depends on your project size/current situation etc. but you could see if that would be an option for you or not really.

Regarding this Github issue I would close it in maybe a week, and then if you would encounter the same issue again I believe you will be able to reopen it

michalChrobot avatar Oct 30 '24 15:10 michalChrobot