[File:D:/Build/++UE4+Licensee/Sync/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 2397] Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!
, would just deleting gridmaterial fix it or …
not sure why its referencing d , c is where engine is
I guess I shouldn’t have added point cloud plugins , one for AR, maybe thats it
Trouble is, engine is on C drive, why the D reference ?
How do I go about fixing this, tried getting rid of material mentioned but crashing continued …?
Hi, I have the same issue. Investigating it right now.
Progress so far:
The exact same project and source built engine works on a different machine that uses visual studio 2019 instead of 2017.
installed latest driver update -> no change.
deleted all generated code and stuff from my project -> no change
[2020.05.25-14.11.45:306] 0]LogShaderCompilers: Warning: 0 Shader compiler errors compiling WorldGridMaterial for platform PCD3D_SM5:
[2020.05.25-14.11.45:306] 0]LogShaderCompilers: Warning: D3DCompile exception
Fatal error: [File:X:/Unreal/UnrealEngine-4.25/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 2397]
Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!
UE4Editor.exe has triggered a breakpoint.
I don’t understand what the platform PCD3D_SM5 is.
File for the world grid material is present at the location.
I’m getting this in the latest version. 5.0.1
Fatal error. default material WorldGridMaterial! Crashes engine every time.
Isn’t there a Git or another place where we can download these single files and replace on our machines to see if it fixes it?
has anyone solved this yet, i am having the same problem, every time I open unreal it crashes on startup, the only way i can open unreal is to verify it every time before opening it.
Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\Materials\MaterialShared.cpp] [Line: 2327] Failed to compile default material WorldGridMaterial!
i meet the same issue these days. i am pakcaging on switch platform and meet some shader compiled failed errors when cook.
finially i sloved this problem.
wise helpful for someone.
first i meet this Failed to compile default material /Engine/EngineMaterials/Default PostProcessMaterial.Default PostProcessMaterial!
then i set use with skeleton off in material, than ok. Default decal material has the same problem.
last i meet Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMateriall!
i try to copy this material,and than found that this material’s copy has no problem, i think maybe there are something wrong with this material.
so i open BaseEngine.ini and than change the default grid material path(many places) to the copy which has no problem, finally i successfully packaged the game.
sorry, i had found that this way alse had some problems.
engine default material has a special flag named bUsedAsSpecialEngineMaterial,
ctrl cv copy a special material will be not effective.
so when i changed default grid material to copy, scene become bad.
i finally found that bUsedAsSpecialEngineMaterial material will use skeleton shaders which lead the error of my project, so i changed the engine code to remove skeleton shaders in default grid material.
finnally, i succeeded , and removed errors.
wish helpful.
Hey I had this same problem when packaging to Android ASTC. For me switching of ES3.2 and turning on vulkan rendering, then deleting my saved and intermediate files solved the problem (UE 5.1.1)
I am getting this exact same error, word for word. Did you ever find a solution for this? I’ve tried some of the other solutions in this thread, but haven’t had any luck.
Tried this, but no luck. My situation might be a bit different. I’m using source control and am trying to open the project on another machine. I can open the project just fine on my PC, but when I try to open the same project on my laptop, I am getting that Fatal Error.
I’ve tried a few things, such as verifying the version, copying engine files from my PC to my Laptop, copying the WorldGridMaterial from PC to Laptop. None of these have seemed to work. I’m wondering if I somehow enabled a engine setting on my PC that altered the overall project and that’s causing the Laptop to crash when trying to open said project.
I found a solution that worked for me. All I had to do was run the “Fix Up Redirectors in Folder” function on my entire “Content” Folder. Hopefully this helps someone else.
I’m not exactly sure what created my “Fatal Error” to begin with though. It could be that I edited the project name outside of the editor, edited a file name outside of the editor, or deleted a project file outside of the editor.