How to reproduce:
1. Open the attached “IN-143424” project
2. Open the “APV” scene
3. Open the Lighting window and open the Adaptive Probe Volume tab
4. Enable then disable “Dilation” in the Probe Invalidity Settings
5. Click the arrow on the right side of the “Generate Lighting Button”
6. Click “Clear Baking Data” then “Bake Probe Volumes“
7. Once baking has finished, click “Bake Reflection Probes“
8. Observe the crash
Reproducible with: 6000.0.17f1, 6000.0.76f1, 6000.3.17f1, 6000.4.10f1, 6000.5.0b12, 6000.6.0a6
Could not test with: 6000.0.16f1 (Lighting Data become corrupted when downgraded)
Reproduced on: Windows 10 (user reported), Windows 11
Not reproduced on: No other environment tested
Notes:
- If the crash does not occur the first time, repeat step 6 two or three more times
- Sometimes, the issue reproduces more consistently if the Directional Light GameObject is active (Lights > Directional Light)
- It is not necessary to clear the baking data (step 6) but the issue reproduces more consistently when this is done
- Could not reproduce the issue on a fresh project
First few lines of the stack trace:
0x7ff8922930a0 PPtr<T>::operator= (PPtr.h:299)
0x7ff8922930a0 LightingDataAsset::CreateSnapshotForReflectionProbeInternal (LightingDataAsset.cpp:808)
0x7ff892292131 LightingDataAsset::CreateSnapshotForAllReflectionProbes (LightingDataAsset.cpp:863)
0x7ff891cbe838 BuiltinBakedReflectionSystem_CUSTOM_Internal_BakeAllReflectionProbes (EditorBindings.gen.cpp:122327)