Search Issue Tracker
Fixed in 1.0.0, 1.1.0-exp1 (from a later date)
Votes
1
Found in [Package]
1.1.0-exp.1
Issue ID
1396955
Regression
Yes
IL2CPP Master build crashes on WriteZStream when accessing a reference of the instance of NetworkDriver
How to reproduce:
1. Open the attached project from "netcode-crash.zip" and open Scene "SampleScene"
2. In Project Settings > Player check that Scripting Backend is set as IL2CPP and C++ Compiler Configuration as Master
3. Build and Run the project
4. Observe crash of the Player
Reproducible with: 1.1.0-exp.1 (2020.3.28f1, 2021.1.28f1)
Not reproducible with: 1.0.0-pre.12 (2020.3.28f1, 2021.1.28f1, 2021.2.11f1, 2022.1.0b7, 2022.2.0a4), 1.1.0-exp.1 (2021.2.11f1, 2022.1.0b7, 2022.2.0a4)
Could not test with: 2019.4.35f1 (No compatible Collections package)
First lines of stack traces:
0x00007FFE405BE50D (GameAssembly) WriteZStream
ERROR: SymGetSymFromAddr64, GetLastError: 'Attempt to access invalid address.' (Address: 00007FFE3FFE372C)
0x00007FFE3FFE372C (GameAssembly) (function-name not available)
0x00007FFE400D26B4 (GameAssembly) DllCanUnloadNow
0x00007FFE4139FED8 (UnityPlayer) UnityMain
0x00007FFE3CAA9B42 (GameAssembly) [C:\Users\siaur\Downloads\1396955_netcode-crash\Library\Il2cppBuildCache\Windows\x64\il2cppOutput\Assembly-CSharp.cpp:4259] ClientNetPacketHandler_Connect_m877D366CE827229295D05409FD82D15B8E1EC6BF
0x00007FFE3C5E19B6 (GameAssembly) [C:\Program Files\Unity EDITORS\2021.1.28f1_f3f9dc10f3dd\Data\il2cpp\libil2cpp\vm\Runtime.cpp:562] il2cpp::vm::Runtime::InvokeWithThrow
0x00007FFE3C5E1955 (GameAssembly) [C:\Program Files\Unity EDITORS\2021.1.28f1_f3f9dc10f3dd\Data\il2cpp\libil2cpp\vm\Runtime.cpp:547] il2cpp::vm::Runtime::Invoke
Notes:
1. Crash does not reproduce if the project is built with C++ Compiler Configuration set as Release
2. Commenting out the line 45 of script ClientNetPacketHandler.cs will make the build not crash
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- [Android][iOS] The keyboard closes and re-opens when consecutive input fields are selected
- Complex Sub Graph connected to a Voronoi node is ignored when the shader gets applied as a Material
- Compute Shader property not set error when entering play mode with path tracing and PBR sky
- "WebGL Publish" detects WebGL module and allows building when it is installed without restarting the project
- Editor is non-responsive and flickers when multiple Water System instances are enabled
Resolution Note (fix version 1.0.0, 1.1.0-exp1 (from a later date)):
Fixed from 1.0.0, 1.1.0-exp1 and onwards