How to reproduce:
1. Open the “SerializeReferenceList“ project
2. Click on the “Edit“ in the top bar
3. Select Build And Run
Expected result: The application is built, and the build application is running.
Actual result: Crash after the application is built
Reproducible with: 2021.3.37f1, 2022.3.26f1, 2023.2.19f1, 6000.0.0b16
Reproducible on: macOS 13.5.2 (Intel), Windows 10 Pro (22H2)
Not reproducible on: No other environments tested
Notes:
- Commenting the code snippet “#if UNITY_EDITOR“ in the “IVar.cs“ script will fix the issue
- Only reproducible in Player
First few lines of the stack trace:
#0 0x007ff80a83214a in __pthread_kill
#1 0x007ff80a752f28 in raise
#2 0x000001108ecba9 in operator delete[](void*, std::nothrow_t const&)
#3 0x000001108ed52d in operator delete[](void*, std::nothrow_t const&)
#4 0x0000010ffd8d44 in operator delete[](void*, std::nothrow_t const&)
#5 0x0000010ffd92f2 in operator delete[](void*, std::nothrow_t const&)