Reproduction steps:
1. Open the attached “repro-project“
2. Enter and exit Play Mode
3. Observe the crash
Reproducible with: 2021.2.1f1, 2021.3.23f1, 2022.2.17f1, 2023.1.0b14, 2023.2.0a12
Not reproducible with: 2020.3.47f1, 2021.2.0f1
Reproduced on: Windows 10 Pro
First few lines of the stack trace:
0x00007FFE8CA33F59 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\unity-liveness.c:263] mono_add_process_object
0x00007FFE8CA34AB1 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\unity-liveness.c:486] mono_traverse_objects
{{0x00007FFE8CA35AF1 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\unity-liveness.c:688] mono_unity_liveness_calculation_from_statics }}
{{0x00007FFE163C75DC (Unity) GarbageCollectSharedAssets }}
{{0x00007FFE1642DAB6 (Unity) UnloadUnusedAssetsOperation::IntegrateMainThread }}
{{0x00007FFE61912FEA (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\mini\mini-trampolines.c:1061] mono_delegate_trampoline }}
{{0x00000233E940DC56 (Mono JIT Code) UnityEngine.Application:CallLogCallback (string,string,UnityEngine.LogType,bool) }}
{{0x00000233E940DEBA (Mono JIT Code) (wrapper runtime-invoke) <Module>:runtime_invoke_void_object_object_int_byte (object,intptr,intptr,intptr) }}
{{0x00007FFE61820394 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\mini\mini-runtime.c:3445] mono_jit_runtime_invoke }}
{{0x00007FFE6175EB44 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\metadata\object.c:3066] do_runtime_invoke }}