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
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:
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”.
Update your graphics drivers: Outdated or corrupt graphics drivers can cause issues with shader compilation. Try updating your graphics drivers to the latest version.
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”.
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’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.