UE 5.4.4 crashes as soon as I try to open a material

Hey does anyone know how to solve the issue of the engine crashing the instant I try to open the material editor.

I get this error.

build++UE5\Sync\Engine\Source\Runtime\RHI\Private\PipelineStateCache.cpp] [Line: 419

It fails on anything I open with the templates. It strangely doesn’t crash when opening a project from the marketplace.

I have tried completely removing and reinstalling. Rolled back graphics drivers. I don’t get this issue with 5.3.
Tried ray tracing on and off.

Any advice appreciated thanks

1 Like

Hey there @FallguysJodie! Welcome to the community! Taking a glance into the engine source code, that line specifically points to a shader pre-caching issue, which could be environmental like drivers (so you already tried to backdate them so that’s unlikely).

So my first thought is to verify if this occurs in every 5.4.4 project and not just the one you’re working in. If possible can you check if it works in another project at all? If it does, is it specific to some materials or all of them in your primary project?

As far as I have been able to check so far it’s any blank template. The animation sample project from the marketplace seems unaffected

It’s all materials and also static mesh editor too. I just found out. If I open an existing one it works but not if I convert a 5.3 one to 5.4. I also noticed it loads the project very quickly there is never the pause to compile shaders when I start from a template yet there is when I open a converted one.

Gotcha! So first back your project up somewhere safe. Then go into the project’s files and delete/move the “DerivedDataCache”, “Saved”, and “Intermediate” folders entirely. Then launch the project. This will rebuild the shaders. If that doesn’t have an effect, head into your Unreal Engine install and delete the “DerivedDataCache” folder there as well. This will regenerate all shaders associated with both the engine and the project itself.

Thanks, Tried that no success.

If I change the project into directx11 it works fine recompiles the shaders on load and all works perfectly.

If I put it back to directx12 it loads without compiling the shaders and crashes when I open anything.

Also tried even older graphics drivers too just in case but nope.

I FOUND THE SOLUTION!!!

I added the line r.ClearCoatNormal=True to the render settings in DefaultEngine.ini

As soon as this is added on loading the project it compiled the shaders as normal and all is well.

I have no idea why this is the solution but to anyone else who has this issue this solved it for me.

2 Likes

I was late to the conversation. But, I was going to mention removing/regenerating your DefaultEngine.ini and see if it fixed it, assuming that it was only happening in one project. I’m glad that you got it fixed, though!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.