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

1 Like

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

1 Like

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

Don’t waste your time with this auto-generated answer. There are no such buttons as Edit > Project Settings > Engine > Rendering > Shader Cache → “Clear Cache” and Edit > Project Settings > Engine > General Settings > Derived Data Cache → “Purge Cache”.

Shame on you posting such things without checking.

3 Likes