ShaderCompileWorker crashes with EXCEPTION_ACCESS_VIOLATION

Hello,

I’m using UE4.23 (not preview) as a Source Build version. I try to build a Nintendo Switch game (can’t share details) and the ShaderCompileWorker always crashes with the error below.

I tried rebulding the Engine on 2 different systems but the result is always the same. ShaderCompileWorker was also build in various setups but there seams no way to get it working.

Does anyone have a idea why this happens?

UATHelper: Packaging (Switch):   LogWindows: Error: begin: stack for UAT
UATHelper: Packaging (Switch):   LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error: Fatal error: [File:G:/UnrealEngine-4.23.0-release/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 1032]
UATHelper: Packaging (Switch):   LogWindows: Error: Shader Compiling thread exception:
UATHelper: Packaging (Switch):   LogWindows: Error: Fatal error: [File:G:/UnrealEngine-4.23.0-release/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 306]
UATHelper: Packaging (Switch):   LogWindows: Error: ShaderCompileWorker crashed!
UATHelper: Packaging (Switch):   LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000001
UATHelper: Packaging (Switch):   LogWindows: Error:    Fatal error!
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000001
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe41c599f0 UnknownFunction []
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x000001bbdb7f0000 UnknownFunction []
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe9a29ba17 UnknownFunction []
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x000089549b8a1cab UnknownFunction []
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe9738a839 KERNELBASE.dll!UnknownFunction []
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe55c25847 UE4Editor-Core.dll!ReportAssert() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\windows\windowsplatformcrashcontext.cpp:582]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe55c28467 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\windows\windowserroroutputdevice.cpp:79]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe559dc21a UE4Editor-Core.dll!FOutputDevice::LogfImpl() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\misc\outputdevice.cpp:71]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe559789e3 UE4Editor-Core.dll!AssertFailedImplV() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:101]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe559788c8 UE4Editor-Core.dll!FDebug::AssertFailed() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:455]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe53942ab7 UE4Editor-Engine.dll!FShaderCompileUtilities::DoReadTaskResults() [g:\unrealengine-4.23.0-release\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:697]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe5396a7b8 UE4Editor-Engine.dll!FShaderCompileThreadRunnable::ReadAvailableResults() [g:\unrealengine-4.23.0-release\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:1320]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe5393c4a1 UE4Editor-Engine.dll!FShaderCompileThreadRunnable::CompilingLoop() [g:\unrealengine-4.23.0-release\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:1473]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe53974477 UE4Editor-Engine.dll!FShaderCompileThreadRunnableBase::Run() [g:\unrealengine-4.23.0-release\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:987]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe55c27d7f UE4Editor-Core.dll!FRunnableThreadWin::Run() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:96]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe55c1bf61 UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:53]
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe988d7bd4 KERNEL32.DLL!UnknownFunction []
UATHelper: Packaging (Switch):   LogWindows: Error: [Callstack] 0x00007ffe9a2ccee1 ntdll.dll!UnknownFunction []
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error:
UATHelper: Packaging (Switch):   LogWindows: Error: end: stack for UAT
PackagingResults: Error: begin: stack for UAT
PackagingResults: Error: === Critical error: ===
PackagingResults: Error: Fatal error: [File:G:/UnrealEngine-4.23.0-release/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 1032]
PackagingResults: Error: Shader Compiling thread exception:
PackagingResults: Error: Fatal error: [File:G:/UnrealEngine-4.23.0-release/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 306]
PackagingResults: Error: ShaderCompileWorker crashed!
PackagingResults: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000001
PackagingResults: Error:     Fatal error!
PackagingResults: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000001
PackagingResults: Error: [Callstack] 0x00007ffe41c599f0 UnknownFunction []
PackagingResults: Error: [Callstack] 0x000001bbdb7f0000 UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9a29ba17 UnknownFunction []
PackagingResults: Error: [Callstack] 0x000089549b8a1cab UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9738a839 KERNELBASE.dll!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe55c25847 UE4Editor-Core.dll!ReportAssert() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\windows\windowsplatformcrashcontext.cpp:582]
PackagingResults: Error: [Callstack] 0x00007ffe55c28467 UE4Editor-Core.dll!FWindowsErrorOutputDevice::Serialize() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\windows\windowserroroutputdevice.cpp:79]
PackagingResults: Error: [Callstack] 0x00007ffe559dc21a UE4Editor-Core.dll!FOutputDevice::LogfImpl() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\misc\outputdevice.cpp:71]
PackagingResults: Error: [Callstack] 0x00007ffe559789e3 UE4Editor-Core.dll!AssertFailedImplV() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:101]
PackagingResults: Error: [Callstack] 0x00007ffe559788c8 UE4Editor-Core.dll!FDebug::AssertFailed() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\misc\assertionmacros.cpp:455]
PackagingResults: Error: [Callstack] 0x00007ffe53942ab7 UE4Editor-Engine.dll!FShaderCompileUtilities::DoReadTaskResults() [g:\unrealengine-4.23.0-release\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:697]
PackagingResults: Error: [Callstack] 0x00007ffe5396a7b8 UE4Editor-Engine.dll!FShaderCompileThreadRunnable::ReadAvailableResults() [g:\unrealengine-4.23.0-release\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:1320]
PackagingResults: Error: [Callstack] 0x00007ffe5393c4a1 UE4Editor-Engine.dll!FShaderCompileThreadRunnable::CompilingLoop() [g:\unrealengine-4.23.0-release\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:1473]
PackagingResults: Error: [Callstack] 0x00007ffe53974477 UE4Editor-Engine.dll!FShaderCompileThreadRunnableBase::Run() [g:\unrealengine-4.23.0-release\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:987]
PackagingResults: Error: [Callstack] 0x00007ffe55c27d7f UE4Editor-Core.dll!FRunnableThreadWin::Run() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:96]
PackagingResults: Error: [Callstack] 0x00007ffe55c1bf61 UE4Editor-Core.dll!FRunnableThreadWin::GuardedRun() [g:\unrealengine-4.23.0-release\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:53]
PackagingResults: Error: [Callstack] 0x00007ffe988d7bd4 KERNEL32.DLL!UnknownFunction []
PackagingResults: Error: [Callstack] 0x00007ffe9a2ccee1 ntdll.dll!UnknownFunction []
PackagingResults: Error: end: stack for UAT

Hello,

We’ve recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.

https://epicsupport.force.com/unrealengine/s/

Thanks