Unity Issue Tracker - Neverending import loop and `Integrate failed on Write Lighting Data job' error when deleting LDA after unloading scene
Closed
UUM-1352
Neverending import loop and `Integrate failed on Write Lighting Data job' error when deleting LDA after unloading scene
Unity: Progressive Lightmapper
Won't Fix
2023.1.X
2022.2.X
2021.3.X
2020.3.X
This does not reproduce in 2023.1
This does not reproduce in 2022.2
Steps to repro:
1. Open the attached project and 'Market' scene;
2. Drag and drop scene 'SecurityRoom' from the Project folder (Assets>Scenes>SecurityRoom) to the Hiirarchy;
3. In the Hierarchy double-click on the 'Market' scene to make it the main one;
4. In the Lighting window (Window>Rendering>Lighting) press Generate Lighting button to bake the scene's lighting;
5. Wait until the scene's lighting is baked;
6. When the scene's lighting is completed in the Hierarchy right-click on Market scene and choose Unload Scene option;
7. In the Project folder go to Assets>Scenes>Market;
8. In the Project folder right-click on the 'LightingData.asset' file and choose Delete;
9. Click Delete in the opened popup window.
Expected result:
The Editor is stable and no errors are shown.
Actual result:
Neverending import loop happens, which slows Editor to the great extent.
The following error is thrown in the Console:
"-Integrate failed on Write Lighting Data job.
0x00007ff703f1e7ed (Unity) StackWalker::GetCurrentCallstack
0x00007ff703f25569 (Unity) StackWalker::ShowCallstack
0x00007ff704e8a023 (Unity) GetStacktrace
0x00007ff705522233 (Unity) DebugStringToFile
0x00007ff704c972f4 (Unity) JobManager::IntegrateCompletedJobs
0x00007ff704f6cbfb (Unity) GISceneManager::Update
0x00007ff704f68e7f (Unity) `GISceneManager::GISceneManager'::`2'::tickGIInEditorRegistrator::Forward
0x00007ff7030cf729 (Unity) CallbackArray::Invoke
0x00007ff704a3ad4c (Unity) ProfilerCallbackInvoke<CallbackArray,300312>::Invoke
0x00007ff704a4536b (Unity) Application::TickTimer
0x00007ff704e8fdb5 (Unity) MainMessageLoop
0x00007ff704e94824 (Unity) WinMain
0x00007ff7061c08b2 (Unity) __scrt_common_main_seh
0x00007fff3e857034 (KERNEL32) BaseThreadInitThunk
0x00007fff40302651 (ntdll) RtlUserThreadStart"
See attached video.
Workaround is to expand the dropdown list on the right side of the Generate Lighting button in the Lighting window and select Clear Baked Data.
Notes:
Reproducible in Version 2022.1.0a13, 2021.2.0f1, 2020.3.21f1;
Reproducible on Windows.
Prioritise and Follow this issue
Have a workaround or additional info about this issue?