Search Issue Tracker

Fixed in 2022.2.X

Fixed in 2020.3.X, 2021.2.X, 2022.1.X



Found in






Issue ID




[Vulkan] Editor crashes in Optix when Generating Lighting multiple times

Progressive Lightmapper


How to reproduce:
1. Open the attached project from the Google Drive
2. Make sure the Editor is using Vulkan Graphics API
3. Open "AVP6_Desktop" Scene
4. Open Lighting window (Windows > Rendering > Lighting)
5. In the Lighting window make sure the Lightmapper is set to "Progressive GPU (Preview)"
6. Click "Clear Baked Data" found in the "Generate Lighting" drop-down
7. Open the Preferences window (Edit > Preferences)
8. In the Preferences window click on "Clean Cache" found in the "GI Cache" category
9. Click "Generate Lighting" in the Lighting window
10. Once Lighting finishes generating repeat everything from the 6th step

Expected result: Editor successfully generates lighting
Actual result: Editor crashes

Reproducible with 2020.3.16f1, 2021.1.19f1, 2021.2.0b9, 2022.1.0a6
Could not test with: 2019.4.30f1 (Lightmapper falls back to Progressive CPU)

- Reproducible with NVIDIA GeForce GTX 1060 6GB
- The Lighting Settings asset is called "AVP6_DesktopSettings"
- It should crash on the second attempt to Generate Lighting, but it may take more attempts depending on the GPU VRAM.

Stack trace:
0x00007FFDB9E63FE9 (KERNELBASE) RaiseException
0x00007FF76D5A54C0 (Unity) CxxThrowException
0x00007FF76C083730 (Unity) optix::ContextObj::checkError
0x00007FF76C083FE6 (Unity) optix::ContextObj::getAvailableDeviceMemory
0x00007FF76C07FC15 (Unity) OptixDLDenoiser::SetupDevice
0x00007FF76C07E4A4 (Unity) OptixDLDenoiser::DenoiserContext::Setup
0x00007FF76C06B238 (Unity) OptixDLDenoiser::DenoiserContext::DenoiserContext
0x00007FF76C22F157 (Unity) ProgressiveRuntimeManager::Update
0x00007FF76C053EFC (Unity) gi::PostUpdate
0x00007FF76C09B898 (Unity) GISceneManager::Update
0x00007FF76C0910CC (Unity) `GISceneManager::GISceneManager'::`2'::tickGIInEditorRegistrator::Forward
0x00007FF768AEF5E9 (Unity) CallbackArray::Invoke
0x00007FF76AD8CAE6 (Unity) ProfilerCallbackInvoke<CallbackArray,300312>::Invoke
0x00007FF76AD99D97 (Unity) Application::TickTimer
0x00007FF76B72E781 (Unity) MainMessageLoop
0x00007FF76B7327C1 (Unity) WinMain
0x00007FF76D5834B6 (Unity) __scrt_common_main_seh
0x00007FFDBC2B7C24 (KERNEL32) BaseThreadInitThunk
0x00007FFDBC84D721 (ntdll) RtlUserThreadStart

  1. Resolution Note (fix version 2022.2):

    Fixed in: 2022.2.0a1

  2. Resolution Note (fix version 2022.1):

    Fixed in: 2022.1.0b10

  3. Resolution Note (fix version 2021.2):

    Fixed in: 2021.2.12f1

  4. Resolution Note (fix version 2020.3):

    Fixed in: 2020.3.31f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.