Reproduction steps:
1. Open the attached "crash_IN-56507.zip" project
2. Open the “Assets/Scenes/Menu“ Scene
3. Build the project on the WebGL platform
4. Observe the crash
Reproduced with: 2021.3.31f1
Not reproduced with: 2022.3.11f1, 2023.1.17f1, 2023.2.0b14, 2023.3.0a11
Reproduced on: Windows 10 (22H2)
Not reproduced on: No other environments tested
Note: Not able to find the “Fixed in“ version due to compilation errors and huge time consumption, 2022.1.0b1 is the lowest version I was able to test (which had no repro)
First few lines of the stack trace:
0x00007ff60aa23d3a (Unity) PersistentManager::InstanceIDToLocalSerializedObjectIdentifier
0x00007ff60a2b9c49 (Unity) TransferPPtr<StreamedBinaryWrite>
0x00007ff60c0f47fb (Unity) Shader::Transfer<StreamedBinaryWrite>
0x00007ff60aa45fcb (Unity) SerializedFile::WriteObject
0x00007ff60aa2f9cb (Unity) PersistentManager::WriteFile