UE5 crash when opening editor: "Shader compilation failures are Fatal."

The editor was working fine for a while until this started happening. It always happens right after all the loading is done and the editor opens, freezes for like 10 seconds, and crashes. Full error:

Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\RHI\Private\PipelineStateCache.cpp] [Line: 238] Shader compilation failures are Fatal.

UnrealEditor_RHI

UnrealEditor_RHI

UnrealEditor_Core

UnrealEditor_Core

UnrealEditor_Core

UnrealEditor_Core

UnrealEditor_Core

UnrealEditor_Core

UnrealEditor_Core

UnrealEditor_Core

UnrealEditor_Core

UnrealEditor_Core

kernel32

ntdll

This is the code I’m getting every time I try to start up UE5.1.1. Please if someone could help and point me in the right direction as to how to fix this I would be very appreciative. I have already tried uninstalling and reinstalling multiple times. I have uninstalled and reinstalled and updated all my graphics and chipset drivers etc. for my Windows 10 computer. Please and thank you for your time :slight_smile:

Same for me :thinking:

Solved by editing Config/DefaultEngine.ini, Line 25:

DefaultGraphicsRHI=DefaultGraphicsRHI_DX12 → DefaultGraphicsRHI=DefaultGraphicsRHI_DX11

4 Likes

+1, was working fine earlier today.

Have tried deleting deriveddatacache and intermediate, switched from game ready → studio drivers, several restarts, no dice

Sadly this is not a solution for anyone using Lumen and nanite as the are only supported by dx12

1 Like

The error message you’re seeing indicates that there’s an issue with shader compilation during startup, which is causing the editor to crash. Here are a few things you can try to resolve the issue:

  1. Clear your shader cache: The shader cache is a cache of pre-compiled shaders that can speed up shader compilation times. However, sometimes the cache can become corrupted and cause issues like this. To clear the shader cache, go to Edit > Project Settings > Engine > Rendering > Shader Cache, and click “Clear Cache”.
  2. Update your graphics drivers: Outdated or corrupt graphics drivers can cause issues with shader compilation. Try updating your graphics drivers to the latest version.
  3. Delete your Derived Data Cache: The Derived Data Cache is a cache of compiled assets and data generated by the Unreal Engine. Sometimes, corrupted or outdated data in the cache can cause issues. To delete the cache, go to Edit > Project Settings > Engine > General Settings > Derived Data Cache, and click “Purge Cache”.
  4. Reinstall Unreal Engine: If none of the above steps work, it may be necessary to reinstall Unreal Engine to fix any corrupted or missing files.

I hope one of these solutions works for you!

I’ve been getting this issue as well, but I’ve discovered for me it only occurs when hardware raytracing is enabled. This is with a new install of UE5.1.1. I’ve looked into the options recommended, but my graphics driver is already up-to-date, and I can’t find the options to clear the cache where specified. Is there a certain directory I can delete? Or perhaps the options have moved.

2 Likes

Bump. Still an ongoing issue for many of us.

Update - I tried uninstalling 5.1.1 and reinstalling 5.2.1 and gave it another try, and now it seems to work fine for me

CHAT GPT Answer, we failed

1 Like