Reproduction steps:
1. Open the user's attached project
2. Open Scene 'Assets/xddxxx'
3. Open 'Window -> Rendering -> Occlusion Culling' from the top menu
4. In the Occlusion Culling window in Scene view, select 'Visualize' from the drop-down menu
5. Select 'Camera' in the Scene Hierarchy
Expected result: The Occlusion Culling window updates with options for that camera
Actual result: The Editor crashes
Reproducible with: 2020.3.34f1, 2021.3.2f1, 2022.2.0a13, 2023.2.0a9
Could not test with: 2019.4.39f1 (package errors), 2022.1.0f1 (empty error)
Notes:
- On some machines, the bug is not reproducible on some versions (e.g. 2021.2.5f1)
- While it looks that the bug should be reproducible, having a single error makes it not reproducible
Stacktrace:
0x00007ff606754861 (Unity) PrepareDrawShadowsCommandStep1
0x00007ff60674c35d (Unity) ScriptableRenderContext::ExecuteScriptableRenderLoop
0x00007ff605d710df (Unity) ScriptableRenderContext_CUSTOM_Submit_Internal_Injected
0x000001d5320827da (Mono JIT Code) (wrapper managed-to-native) UnityEngine.Rendering.ScriptableRenderContext:Submit_Internal_Injected (UnityEngine.Rendering.ScriptableRenderContext&)