Description

When building reflection captures through the ResavePackages commandlet, it frequently triggers an ensure inside of ReflectionEnvironmentCapture.cpp.

If distributed shader builds start causing problems in the log, disable the distributed shader build.

Also tested on //UE5/Release-5.5, CL: 41545209

Steps to Reproduce

1. Download the attached test project
2. Run the following commandlet from the command line (update paths if required)
./Engine/Binaries/Win64/UnrealEditor-Cmd.exe ./19056861_ResavePackages/ReflectionResave.uproject -run=ResavePackages -buildlighting -Quality=Preview -MapsOnly -ProjectOnly -AllowCommandletRendering -Map=BasicLevel -unattended -buildmachine -stdout -CrashForUAT -NoLogTimes
3. Observe the ensure: "Ensure condition failed: !bVerifyOnlyCapturing"
4. If the ensure did not occur, return to step 2.

Callstack

5.6:

LogOutputDevice: Error: begin: stack for UAT
LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error:
LogOutputDevice: Error: Ensure condition failed: !bVerifyOnlyCapturing [Link Removed] [Line: 1452]
LogOutputDevice: Error:
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00007ffeefe1bf42 UnrealEditor-Renderer.dll!FScene::CaptureOrUploadReflectionCapture() [E:\Dev\UE560\Engine\Source\Runtime\Renderer\Private\ReflectionEnvironmentCapture.cpp:1452]
LogOutputDevice: Error: [Callstack] 0x00007ffeefe1a673 UnrealEditor-Renderer.dll!FScene::AllocateReflectionCaptures() [E:\Dev\UE560\Engine\Source\Runtime\Renderer\Private\ReflectionEnvironmentCapture.cpp:985]
LogOutputDevice: Error: [Callstack] 0x00007fff3f34b252 UnrealEditor-Engine.dll!UReflectionCaptureComponent::UpdateReflectionCaptureContents() [E:\Dev\UE560\Engine\Source\Runtime\Engine\Private\Components\ReflectionCaptureComponent.cpp:1140]
LogOutputDevice: Error: [Callstack] 0x00007fff3bf63b9e UnrealEditor-UnrealEd.dll!UEditorEngine::BuildReflectionCaptures() [E:\Dev\UE560\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:3826]
LogOutputDevice: Error: [Callstack] 0x00007fff3ca227d4 UnrealEditor-UnrealEd.dll!FStaticLightingManager::FinishLightingBuild() [E:\Dev\UE560\Engine\Source\Editor\UnrealEd\Private\StaticLightingSystem\StaticLightingSystem.cpp:488]
LogOutputDevice: Error: [Callstack] 0x00007fff3ca849d7 UnrealEditor-UnrealEd.dll!FStaticLightingManager::UpdateBuildLighting() [E:\Dev\UE560\Engine\Source\Editor\UnrealEd\Private\StaticLightingSystem\StaticLightingSystem.cpp:410]
LogOutputDevice: Error: [Callstack] 0x00007fff3ca84a4c UnrealEditor-UnrealEd.dll!UEditorEngine::UpdateBuildLighting() [E:\Dev\UE560\Engine\Source\Editor\UnrealEd\Private\StaticLightingSystem\StaticLightingSystem.cpp:2785]
LogOutputDevice: Error: [Callstack] 0x00007fff3ba4629f UnrealEditor-UnrealEd.dll!UResavePackagesCommandlet::PerformAdditionalOperations() [E:\Dev\UE560\Engine\Source\Editor\UnrealEd\Private\Commandlets\ContentCommandlets.cpp:2298]
LogOutputDevice: Error: [Callstack] 0x00007fff3ba24b22 UnrealEditor-UnrealEd.dll!UResavePackagesCommandlet::LoadAndSaveOnePackage() [E:\Dev\UE560\Engine\Source\Editor\UnrealEd\Private\Commandlets\ContentCommandlets.cpp:854]
LogOutputDevice: Error: [Callstack] 0x00007fff3ba3b4b7 UnrealEditor-UnrealEd.dll!UResavePackagesCommandlet::Main() [E:\Dev\UE560\Engine\Source\Editor\UnrealEd\Private\Commandlets\ContentCommandlets.cpp:1419]
LogOutputDevice: Error: [Callstack] 0x00007ff7dd32a490 UnrealEditor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [E:\Dev\UE560\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:3860]
LogOutputDevice: Error: [Callstack] 0x00007ff7dd31f7ec UnrealEditor-Cmd.exe!GuardedMain() [E:\Dev\UE560\Engine\Source\Runtime\Launch\Private\Launch.cpp:143]
LogOutputDevice: Error: [Callstack] 0x00007ff7dd31fb0a UnrealEditor-Cmd.exe!GuardedMainWrapper() [E:\Dev\UE560\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:128]
LogOutputDevice: Error: [Callstack] 0x00007ff7dd32358e UnrealEditor-Cmd.exe!LaunchWindowsStartup() [E:\Dev\UE560\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:282]
LogOutputDevice: Error: [Callstack] 0x00007ff7dd336194 UnrealEditor-Cmd.exe!WinMain() [E:\Dev\UE560\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:339]
LogOutputDevice: Error: [Callstack] 0x00007ff7dd3387c2 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
LogOutputDevice: Error: [Callstack] 0x00007fffc820e8d7 KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007fffc95114fc ntdll.dll!UnknownFunction []
LogOutputDevice: Error:
LogOutputDevice: Error: end: stack for UAT

5.5:

LogOutputDevice: Error: begin: stack for UAT
LogOutputDevice: Error: === Handled ensure: ===
LogOutputDevice: Error:
LogOutputDevice: Error: Ensure condition failed: !bVerifyOnlyCapturing [Link Removed] [Line: 1409]
LogOutputDevice: Error:
LogOutputDevice: Error: Stack:
LogOutputDevice: Error: [Callstack] 0x00007ffeb85bd207 UnrealEditor-Renderer.dll!FScene::CaptureOrUploadReflectionCapture() [D:\Dev\UE550\Engine\Source\Runtime\Renderer\Private\ReflectionEnvironmentCapture.cpp:1409]
LogOutputDevice: Error: [Callstack] 0x00007ffeb85b86cc UnrealEditor-Renderer.dll!FScene::AllocateReflectionCaptures() [D:\Dev\UE550\Engine\Source\Runtime\Renderer\Private\ReflectionEnvironmentCapture.cpp:961]
LogOutputDevice: Error: [Callstack] 0x00007fff3e512aae UnrealEditor-Engine.dll!UReflectionCaptureComponent::UpdateReflectionCaptureContents() [D:\Dev\UE550\Engine\Source\Runtime\Engine\Private\Components\ReflectionCaptureComponent.cpp:1139]
LogOutputDevice: Error: [Callstack] 0x00007ffeef485e79 UnrealEditor-UnrealEd.dll!UEditorEngine::BuildReflectionCaptures() [D:\Dev\UE550\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:3794]
LogOutputDevice: Error: [Callstack] 0x00007ffeeff40674 UnrealEditor-UnrealEd.dll!FStaticLightingManager::FinishLightingBuild() [D:\Dev\UE550\Engine\Source\Editor\UnrealEd\Private\StaticLightingSystem\StaticLightingSystem.cpp:488]
LogOutputDevice: Error: [Callstack] 0x00007ffeeffa8723 UnrealEditor-UnrealEd.dll!FStaticLightingManager::UpdateBuildLighting() [D:\Dev\UE550\Engine\Source\Editor\UnrealEd\Private\StaticLightingSystem\StaticLightingSystem.cpp:410]
LogOutputDevice: Error: [Callstack] 0x00007ffeeffa878c UnrealEditor-UnrealEd.dll!UEditorEngine::UpdateBuildLighting() [D:\Dev\UE550\Engine\Source\Editor\UnrealEd\Private\StaticLightingSystem\StaticLightingSystem.cpp:2785]
LogOutputDevice: Error: [Callstack] 0x00007ffeeeeecdaf UnrealEditor-UnrealEd.dll!UResavePackagesCommandlet::PerformAdditionalOperations() [D:\Dev\UE550\Engine\Source\Editor\UnrealEd\Private\Commandlets\ContentCommandlets.cpp:2256]
LogOutputDevice: Error: [Callstack] 0x00007ffeeeecbd48 UnrealEditor-UnrealEd.dll!UResavePackagesCommandlet::LoadAndSaveOnePackage() [D:\Dev\UE550\Engine\Source\Editor\UnrealEd\Private\Commandlets\ContentCommandlets.cpp:840]
LogOutputDevice: Error: [Callstack] 0x00007ffeeeee12ea UnrealEditor-UnrealEd.dll!UResavePackagesCommandlet::Main() [D:\Dev\UE550\Engine\Source\Editor\UnrealEd\Private\Commandlets\ContentCommandlets.cpp:1377]
LogOutputDevice: Error: [Callstack] 0x00007ff6922feb4e UnrealEditor-Cmd.exe!FEngineLoop::PreInitPostStartupScreen() [D:\Dev\UE550\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4154]
LogOutputDevice: Error: [Callstack] 0x00007ff6922f5566 UnrealEditor-Cmd.exe!GuardedMain() [D:\Dev\UE550\Engine\Source\Runtime\Launch\Private\Launch.cpp:144]
LogOutputDevice: Error: [Callstack] 0x00007ff6922f589a UnrealEditor-Cmd.exe!GuardedMainWrapper() [D:\Dev\UE550\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:123]
LogOutputDevice: Error: [Callstack] 0x00007ff6922f9114 UnrealEditor-Cmd.exe!LaunchWindowsStartup() [D:\Dev\UE550\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:277]
LogOutputDevice: Error: [Callstack] 0x00007ff69230bd04 UnrealEditor-Cmd.exe!WinMain() [D:\Dev\UE550\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:317]
LogOutputDevice: Error: [Callstack] 0x00007ff69230e422 UnrealEditor-Cmd.exe!__scrt_common_main_seh() [D:\a\_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
LogOutputDevice: Error: [Callstack] 0x00007fffc820e8d7 KERNEL32.DLL!UnknownFunction []
LogOutputDevice: Error: [Callstack] 0x00007fffc95114fc ntdll.dll!UnknownFunction []
LogOutputDevice: Error:
LogOutputDevice: Error: end: stack for UAT

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-281933 in the post.

1
Login to Vote

Unresolved
ComponentUE - Graphics Features
Affects Versions5.5.45.6
CreatedMay 13, 2025
UpdatedMay 13, 2025
View Jira Issue