Reproduction steps:
1. Open the attached “repro-project“
2. Observe the crash
Reproducible with: 2022.3.8f1
Not reproducible with: 2021.3.34f1, 2022.3.19f1, 2023.2.9f1, 2023.3.0b6
Fixed in: 2022.3.9f1
Reproduced on: Windows 10, Windows 11 (by reporter)
Not reproducible on: No other environment tested
First few lines of the stack trace:
0x00007ff76e2bc28f (Unity) GetComponentsImplementation<0,1>
0x00007ff76e2bcebc (Unity) GetComponentsImplementationRecurse<0,0,1>
0x00007ff76e2c3f83 (Unity) ScriptingGetComponentsOfTypeFromGameObject
0x00007ff76d2ab681 (Unity) GameObject_CUSTOM_GetComponentsInternal
0x000002165281aa87 (Mono JIT Code) (wrapper managed-to-native) UnityEngine.GameObject:GetComponentsInternal (UnityEngine.GameObject,System.Type,bool,bool,bool,bool,object)