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: 2022.3.10f1, 2023.1.15f1, 2023.2.0b11, 2023.3.0a7
Not reproducible with: 2021.3.30f1, 2022.3.7f1
Regressed in: 2022.3.8f1
Reproduced on: Windows 10 Pro
Not reproducible on: No other environment tested
Notes:
1. Not reproducible in Player
2. After reopening the project the crash no longer reproduces
First few lines of the stack trace:
0x00007ffe6dd4aeac (mono-2.0-bdwgc) mono_g_hash_table_find_slot (at C:/build/output/Unity-Technologies/mono/mono/metadata/mono-hash.c:122)
0x00007ffe6ddc12b4 (mono-2.0-bdwgc) mono_type_get_object_checked (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:491)
0x00007ffe6ddc1824 (mono-2.0-bdwgc) method_object_construct (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:610)
0x00007ffe6ddbfbf7 (mono-2.0-bdwgc) check_or_construct_handle (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection-cache.h:123)
0x00007ffc0a0c1ad7 (mono-2.0-bdwgc) mono_method_get_object_checked (at C:/build/output/Unity-Technologies/mono/mono/metadata/reflection.c:655)