Unreal Engine 4.25 crashed after upgrade Xcode 14.01

Unreal Engine 4.25.4
MacOS 12.6
XCode 14.01

After I upgrade Xcode from 13.4 to 14.01 Unreal Engine 4.25 will crash every time.

crash log:

LoginId:8607ac6db641b38f72c83885903b3f11
EpicAccountId:c1906cd22e76487a90786cd5329d93d5

Fatal error: [File:/Users/build/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 4989] Failed to compile global shader FNiagaraDrawIndirectArgsGenCS . Enable 'r.ShaderDevelopmentMode' in ConsoleVariables.ini for retries.

FGenericPlatformMisc::RaiseException(unsigned int) Address = 0x10af8cd67 (filename not found) [in UE4Editor-Core.dylib]
FMacErrorOutputDevice::Serialize(char16_t const*, ELogVerbosity::Type, FName const&) Address = 0x10b124033 (filename not found) [in UE4Editor-Core.dylib]
FOutputDevice::LogfImpl(char16_t const*, ...) Address = 0x10b208e79 (filename not found) [in UE4Editor-Core.dylib]
auto ProcessCompiledJob(FShaderCompileJob*, FShaderPipelineType const*, TArray<EShaderPlatform, TSizedDefaultAllocator<32> >&, TArray<FShaderPipelineType const*, TSizedDefaultAllocator<32> >&)::'lambda'(auto const&, auto const&, auto const&...)::operator()<FLogCategoryLogShaders, char16_t [113], char16_t const*, char16_t const*, char16_t const*>(auto const&, auto const&, auto const&...) const Address = 0x11977eff2 (filename not found) [in UE4Editor-Engine.dylib]
ProcessCompiledJob(FShaderCompileJob*, FShaderPipelineType const*, TArray<EShaderPlatform, TSizedDefaultAllocator<32> >&, TArray<FShaderPipelineType const*, TSizedDefaultAllocator<32> >&) Address = 0x119755fd8 (filename not found) [in UE4Editor-Engine.dylib]
ProcessCompiledGlobalShaders(TArray<TSharedRef<FShaderCommonCompileJob, (ESPMode)1>, TSizedDefaultAllocator<32> > const&) Address = 0x1197409c1 (filename not found) [in UE4Editor-Engine.dylib]
FShaderCompilingManager::ProcessCompiledShaderMaps(TMap<int, FShaderMapFinalizeResults, FDefaultSetAllocator, TDefaultMapHashableKeyFuncs<int, FShaderMapFinalizeResults, false> >&, float) Address = 0x11973ed1c (filename not found) [in UE4Editor-Engine.dylib]
FShaderCompilingManager::FinishCompilation(char16_t const*, TArray<int, TSizedDefaultAllocator<32> > const&) Address = 0x119746253 (filename not found) [in UE4Editor-Engine.dylib]
VerifyGlobalShaders(EShaderPlatform, bool) Address = 0x1197513dc (filename not found) [in UE4Editor-Engine.dylib]
CompileGlobalShaderMap(EShaderPlatform, ITargetPlatform const*, bool) Address = 0x1197538fb (filename not found) [in UE4Editor-Engine.dylib]
FEngineLoop::PreInitPreStartupScreen(char16_t const*) Address = 0x1097b55f1 (filename not found) [in UE4Editor]
GuardedMain(char16_t const*) Address = 0x1097ab4ed (filename not found) [in UE4Editor]
-[UE4AppDelegate runGameThread:] Address = 0x1097c807f (filename not found) [in UE4Editor]
-[FCocoaGameThread main] Address = 0x10b0f6931 (filename not found) [in UE4Editor-Core.dylib]
Unknown() Address = 0x7ff813c7a994 (filename not found) [in Foundation]
_pthread_start Address = 0x7ff812d5f4e1 (filename not found) [in libsystem_pthread.dylib]
thread_start Address = 0x7ff812d5af6b (filename not found) [in libsystem_pthread.dylib]

I tried to uncomment ‘r.ShaderDevelopmentMode’ in ConsoleVariables.ini.
But it doesn’t work.

Ways to Fix Unreal Engine 4 Crashing on PC
Update your Unreal Engine 4.
Update your GPU driver.
Verify the installation.
Stop overclocking.
Change your default graphics card.
Repair your system files.
Disable your antivirus temporarily.
Perform a reinstalling

This may help you,

I was able to get around it by disabling shader optimization. Not sure if it’s a good thing, but at least its running again.

{ue4-repo-root}/Engine/Config/ConsoleVariables.init and uncomment r.Shaders.Optimize=0

Execute me, have you solve this problem? I meet the similar issue too.I both uncomment r.ShaderDevelopmentMode=1 and r.Shaders.Optimize=0, but after that I get the following errors:

Failed to compile locally to bytecode /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/ShaderOut6D8B50959948B82058EF46AFE346359A, code: 1, output:  error: PCH was compiled with module cache path '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/1UT4UB7A3B9UO', but the path is currently '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/D49G0TA9H85Y'
  1 error generated.
  
  
  LogShaderCompilers: Warning: /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/1213_1766369142.metal(0): Shader FClearReplacementCS_Buffer_Uint_Bounds, Permutation 0, VF None:
  	Failed to compile locally to bytecode /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/ShaderOut93001ECF3546A9D9AC81CEA7C2391405, code: 1, output:  error: PCH was compiled with module cache path '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/1UT4UB7A3B9UO', but the path is currently '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/D49G0TA9H85Y'
  1 error generated.
  
  
  LogShaderCompilers: Warning: /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/1303_2058182670.metal(0): Shader FClearReplacementVS_Bounds, Permutation 0, VF None:
  	Failed to compile locally to bytecode /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/ShaderOut9F2750106B45DE52B4916BA2F6CD69AA, code: 1, output:  error: PCH was compiled with module cache path '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/1UT4UB7A3B9UO', but the path is currently '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/D49G0TA9H85Y'
  1 error generated.
  
  
  LogShaderCompilers: Warning: /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/2350_4136931945.metal(0): Shader FClearReplacementVS, Permutation 0, VF None:
  	Failed to compile locally to bytecode /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/ShaderOut1E0DE640AE4CDD5D0BA08D842969574A, code: 1, output:  error: PCH was compiled with module cache path '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/1UT4UB7A3B9UO', but the path is currently '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/D49G0TA9H85Y'
  1 error generated.
  
  
  LogShaderCompilers: Warning: /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/2530_342843624.metal(0): Shader FClearReplacementVS_Depth, Permutation 0, VF None:
  	Failed to compile locally to bytecode /tmp/UE4_metalfe-31001.667.2_3616_2681970534_119041_3687743534_2766/ShaderOutBB85833DF64629DCA79BFE98F82A6B72, code: 1, output:  error: PCH was compiled with module cache path '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/1UT4UB7A3B9UO', but the path is currently '/var/folders/rw/4zvtml0922j4k36bbjxbny380000gp/C/org.llvm.clang.bkdevops/ModuleCache/D49G0TA9H85Y'
  1 error generated.

However, UE4.24 can build ipa successfully on the same machine. Any help is appreciated.

1 Like

Is there any success with this issue?

Hello, I have the same problem as you on my Mac. Have you resolved your problem?

Hey, pls make sure to disable shader optimizations and also uncomment:

r.XGEShaderCompile = 0

than build and try to launch the editor.