Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!

Is there a simple way of fixing this Fatal error:

[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 …?

Thx

3 Likes

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.

help please.

2 Likes

Did you find a any solution for this?

2 Likes

You can try to verify that the UE engine solves, I have solved, the version is 5.0.0

1 Like

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?

Otherwise, what, uninstall/reinstall?

1 Like

@MrWhyu1 How do you solve? I have this error now.
I’m on 5.0.1

1 Like

Im getting the same error message:
LoginId:042705d244d011ce1a0a0aacd84a4268
EpicAccountId:8f45c96e34154ff7a5438b34bc24b429

Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp] [Line: 4408] /Engine/Private/Random.ush(536,141): error X3000: syntax error: unexpected token ‘?’ /Engine/Private/SceneData.ush(70): warning: No space between macro name “PRIMITIVE_SCENE_DATA_FLAG_VISIBLE_IN_SCENE_CAPTURE_” and repl-text #define PRIMITIVE_SCENE_DATA_FLAG_VISIBLE_IN_SCENE_CAPTURE_?NLY 0x100000 from /Engine/Private/Nanite/NaniteRasterizer.usf: 4: #include “…/SceneData.ush” /Engine/Private/DeferredShadingCommon.ush:604:2: error: use of undeclared identifier ‘GBuffe’; did you mean ‘GBuffer’? GBuffe?.IndirectIrradiance = DecodeIndirectIrradiance(InGBufferC.a); ^~~~~~ GBuffer /Engine/Private/DeferredShadingCommon.ush:577:15: note: ‘GBuffer’ declared here FGBufferData GBuffer; ^ /Engine/Private/DeferredShadingCommon.ush:604:9: error: expected expression GBuffe?.IndirectIrradiance = DecodeIndirectIrradiance(InGBufferC.a); ^ /Engine/Private/DeferredShadingCommon.ush:604:9: error: expected ‘:’ GBuffe?.IndirectIrradiance = DecodeIndirectIrradiance(InGBufferC.a); ^ : /Engine/Private/DeferredShadingCommon.ush:604:8: note: to match this ‘?’ GBuffe?.IndirectIrradiance = DecodeIndirectIrradiance(InGBufferC.a); ^ D3DCompileToDxil failed. Error code: Unspecified error (0x80004005). /Engine/Generated/Material.ush(1319,8): error X3000: syntax error: unexpected token ‘?’ Unsupported builtin in HLSL: 7 Compile Failed without errors! /Engine/Private/SceneData.ush(998,46-69): error X3004: undeclared identifier ‘LoadInstancePayloadDataE’ /Engine/Private/PhysicsFieldSampler.ush(48,9-10): error X3004: undeclared identifier ‘Ph’ Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!

UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_Engine
UnrealEditor_Engine
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_Engine
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor_CoreUObject
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
UnrealEditor
kernel32
ntdll

My device specs are the following:

Device name IPA-MINI-ITX
Processor 11th Gen Intel(R) Core™ i9-11900 @ 2.50GHz 2.50 GHz
Installed RAM 64.0 GB (63.8 GB usable)
Device ID BE782B86-EFA7-420B-AC86-C95BA44AD53A
Product ID 00330-52454-55195-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch Pen support