Reproduction steps:
1. Download, extract and open the attached “repro-project“
2. Open the “Assets/Scenes/SampleScene.unity“ scene
3. Enter Play Mode
4. Observe the crash
Reproducible with: 1.8.7 (2022.3.6f1)
Not reproducible with: 1.8.8 (2022.3.6f1), 1.8.15, 1.8.16 (2021.3.39f1, 2022.3.34f1, 6000.0.7f1)
Reproduced on: Windows 10, Windows 11 (by reporter)
Not reproducible on: No other environment tested
Notes:
1. The project opens with three assertion errors in the Console:
- "Assertion failed on expression: 'exception == SCRIPTING_NULL'"
- "ArgumentOutOfRangeException: Specified argument was out of the range of valid values."
- "Failed to find entry-points: System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values."
2. The issue is no longer reproducible after upgrading the Burst version and then downgrading it back
First few lines of the stack trace:
0x00007ffb973aaeac (mono-2.0-bdwgc) mono_g_hash_table_find_slot (at C:/build/output/Unity-Technologies/mono/mono/metadata/mono-hash.c:122)
0x00007ffb974212b4 (mono-2.0-bdwgc) mono_type_get_object_checked (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:491)
0x00007ffb97421824 (mono-2.0-bdwgc) method_object_construct (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:610)
0x00007ffb9741fbf7 (mono-2.0-bdwgc) check_or_construct_handle (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection-cache.h:123)
0x00007ffb97421957 (mono-2.0-bdwgc) mono_method_get_object_checked (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:655)