How to reproduce:
- Open the attached “Nogue for NGO” project
- Open the “BasicCoopDemo” scene
- Set the Multiplayer Role of the Editor to “Server” (At the top of the Editor, on the left of Play button > Configure Play Mode Scenarios)
- Add an Additional Editor Instance as a “Client”
- Enter the Play mode
- Initialize the Original Editor as Host in the Game View
- Initialize the new Editor as Client in the Game View
- In the new Editor Game View send a message “true”
- Observe the crash
Reproducible with: 2.3.0 (6000.0.77f1), 2.12.0 (6000.0.77f1, 6000.3.18f1, 6000.6.0a7)
Could not test with 2.2.0 (6000.0.77f1) (missing methods)
Reproducible on: Windows 11
Notes:
- Reproducible with “true”
- Not reproducible with “false”, Integer, Float, characters like '', ““, {} - some of them are caught as exceptions
First few lines of the stack trace:
0x00007FFDF5E5EE71 (Unity) memcpy
0x00007FFDF263CCF5 (Unity) UnsafeUtility_CUSTOM_MemCpy
0x000001EDB99AC188 (Mono JIT Code) (wrapper managed-to-native) Unity.Collections.LowLevel.Unsafe.UnsafeUtility:MemCpy (void*,void*,long)
0x000001EF0458B78B (Mono JIT Code) [.\Library\PackageCache\com.unity.netcode.gameobjects@aaabf07f880c\Runtime\Serialization\FastBufferReader.cs:638] Unity.Netcode.FastBufferReader:ReadValueSafe (string&,bool)