HLOD build error return code -1073741819!

hello when building HLOD with commandlet:
-Unattended -RunningFromUnrealEd -AbsLog
-run=WorldPartitionBuilderCommandlet -Builder=WorldPartitionHLODsBuilder -SetupHLODs -BuildHLODs -AllowCommandletRendering -d3d12 -FeatureLevel=SM6 -sg.TextureQuality=3 -sg.ShadingQuality=3 -CVARS=“r.TextureStreaming=0 r.VT.ForceHighestResidentMip=1 r.VT.MaxAnisotropy=16 r.VT.PoolSizeScale=2 r.Streaming.LimitPoolSizeToVRAM=0”

i run into this error:

[2025.10.10-22.33.44:595][ 2]LogAssetRegistry: Display: Asset registry cache written as 1117.4 MiB to ../../../../../../SyncFolder/unreal/workproject/Intermediate/CachedAssetRegistry_*.bin
[2025.10.10-22.34.31:106][ 2]LogShaderCompilers: Display: Retry shader compiling through workers.
[2025.10.10-22.34.31:276][ 2]LogShaderCompilers: Error: ShaderCompileWorker terminated unexpectedly, return code -1073741819! Falling back to directly compiling which will be very slow. Thread 8.
[2025.10.10-22.34.31:277][ 2]LogShaderCompilers: Error: SCW 1 Queued Jobs, Unknown number of processed jobs!
[2025.10.10-22.34.31:277][ 2]LogShaderCompilers: Error: Job 0 [Single] Failed: FlattenMaterial_WS_Normal_VT_5900d8d8fbc918c/Default/FNaniteVertexFactory/TBasePassCSFNoLightMapPolicySkylight/0:/Engine/Private/BasePassPixelShader.usf|MainCS VF ‘FNaniteVertexFactory’ Type ‘TBasePassCSFNoLightMapPolicySkylight’ ‘/Engine/Private/BasePassPixelShader.usf’ Entry ‘MainCS’ Permutation 0

the comandlet used to work, any leads? :slight_smile:

i have tried everything :slight_smile:

Hello there @Dj_fukboi!

Thank you for the error details. Checking around with my peers, this looks like a shader compiler error, either due a GPU conflict, or the system running out of memory. And it happens while attempting to compile a FlattenMaterial:

ShaderCompileWorker terminated unexpectedly, return code -1073741819!
...
Job 0 [Single] Failed: FlattenMaterial_WS_Normal_VT_...

As for possible causes for conflicts like this, it can be related to drivers, virtual memory, or file corruption. So, let’s take steps to resolve said causes:

  • Perform a driver clean up, using any unistaller of your choice, then re-install your drivers with the most stable version available. If you are on nVidia, you can pick Developer drivers, which are best suited for engine work

  • Clear up your project’s cache, via deleting folders Saved, Intermediate, and DerivedDataCache from your project’s main directory. After that, re-open UE, and allow the project to regenerate

  • Finally, increase your system’s virtual memory:

    • Windows Search > Advanced system settings
    • Performance > Settings > Advanced > Virtual memory → Change
    • Disable “Automatically manage…”
    • Initial size: your RAM amount
    • Max size: Double your RAM amount