Reproduction steps:
1. Open the attached project “CrashRepro”
2. Open the “Assets/Scenes/SampleScene.unity” scene
3. Click Window > Rendering > Lighting
4. In the Lighting window, click “Generate Lighting”
Expected result: Lighting is generated
Actual result: Unity Editor crashes
Reproducible with: 2022.2.0a9, 2022.2.0f1, 2023.1.0a8, 2023.1.0a19
Not reproducible with: 2020.3.42f1, 2021.3.14f1, 2022.1.23f1, 2022.2.0a5, 2023.1.0a5, 2023.1.0a6
Couldn’t test with: 2022.2.0a6 (Crash on MonoBehaviou::AwakeAfterREstoreFromBackup when downgrading packages), 2022.2.0a7-2022.2.0a8 (Crash on GfxDeviceD3D12Base::UpdateComputeResources when starting the project), 2023.1.0a1-2023.1.0a4 (crash on VFXBatchedEffect::AddInstance when starting the project), 2023.1.0a20-2023.1.0a21 (FailedConvertingLightCookie error)
Reproducible on: Windows 11 Pro 21H2
First lines of the stack trace:
Note: Reimport the project on every version