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

**URL:** <https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962>\
**Category:** Rendering\
**Tags:** unreal-engine\
**Created:** [May 19, 2020, 12:54am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962 "2020-05-19T00:54:14Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![neighborlee](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/neighborlee/32/1108786_2.png) [@neighborlee](https://forums.unrealengine.com/u/neighborlee)\
**Post date:** [May 19, 2020, 12:54am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/1 "2020-05-19T00:54:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Maxxomatik](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Maxxomatik](https://forums.unrealengine.com/u/Maxxomatik)\
**Post date:** [May 25, 2020, 2:14pm UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/2 "2020-05-25T14:14:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_cc5860451](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_cc5860451](https://forums.unrealengine.com/u/anonymous_user_cc5860451)\
**Post date:** [December 2, 2020, 11:16am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/3 "2020-12-02T11:16:05Z")

</div>

Did you find a any solution for this?

---

<div class="post-metadata">

**Author:** ![MrWhyu1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MrWhyu1](https://forums.unrealengine.com/u/MrWhyu1)\
**Post date:** [April 15, 2022, 2:14am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/4 "2022-04-15T02:14:29Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![isaacpa170](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@isaacpa170](https://forums.unrealengine.com/u/isaacpa170)\
**Post date:** [May 13, 2022, 3:15pm UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/5 "2022-05-13T15:15:30Z")

</div>

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 |

---

<div class="post-metadata">

**Author:** ![salmamamdouh96](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@salmamamdouh96](https://forums.unrealengine.com/u/salmamamdouh96)\
**Post date:** [November 10, 2022, 3:37am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/6 "2022-11-10T03:37:20Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![\_sl3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@\_sl3](https://forums.unrealengine.com/u/_sl3)\
**Post date:** [December 29, 2022, 11:53am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/7 "2022-12-29T11:53:29Z")

</div>

delete Engine/Shaders/shaders.pak, then it will OK

---

<div class="post-metadata">

**Author:** ![Tangningling1998](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tangningling1998](https://forums.unrealengine.com/u/Tangningling1998)\
**Post date:** [April 20, 2023, 6:32am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/8 "2023-04-20T06:32:44Z")

</div>

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!  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/9/9e9512bd1569989030bda09dc665abc6f77722f5.png)

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.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/0/96072864bb72f5040cd7194393f1c92cdfd76722.jpeg)

maybe changing render api will be helpful too.

---

<div class="post-metadata">

**Author:** ![Tangningling1998](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tangningling1998](https://forums.unrealengine.com/u/Tangningling1998)\
**Post date:** [April 23, 2023, 3:47am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/10 "2023-04-23T03:47:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Kingofftheknomes](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kingofftheknomes](https://forums.unrealengine.com/u/Kingofftheknomes)\
**Post date:** [May 11, 2023, 10:01am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/11 "2023-05-11T10:01:07Z")

</div>

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)

---

<div class="post-metadata">

**Author:** ![RB\_Brendan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RB\_Brendan](https://forums.unrealengine.com/u/RB_Brendan)\
**Post date:** [March 1, 2024, 9:02pm UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/12 "2024-03-01T21:02:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Ya.nadja](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ya.nadja](https://forums.unrealengine.com/u/Ya.nadja)\
**Post date:** [March 3, 2024, 8:23pm UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/13 "2024-03-03T20:23:17Z")

</div>

The thing that worked for me was deleting the material that’s causing the trouble on the disk where Unreal is installed

(\Engine\Source\Runtime\Engine\Private\Materials\MaterialShared.cpp),

and then launching the epic game and verifying the version. Now it works normally.

---

<div class="post-metadata">

**Author:** ![RB\_Brendan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RB\_Brendan](https://forums.unrealengine.com/u/RB_Brendan)\
**Post date:** [March 5, 2024, 6:02pm UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/14 "2024-03-05T18:02:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![RB\_Brendan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RB\_Brendan](https://forums.unrealengine.com/u/RB_Brendan)\
**Post date:** [March 5, 2024, 10:54pm UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/15 "2024-03-05T22:54:41Z")

</div>

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.

![28a6fd6fa6f4b67f34519e3f51565f24ec476929](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/f/beff1fa17823a9ee0b800a8ba8ac5a2333afab26.png)

---

<div class="post-metadata">

**Author:** ![RemRemRemRe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/remremremre/32/974428_2.png) [@RemRemRemRe](https://forums.unrealengine.com/u/RemRemRemRe)\
**Post date:** [March 17, 2024, 7:48am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/16 "2024-03-17T07:48:38Z")

</div>

I was getting the similar crash when trying to make a installed build.

It was me excluded some shader files(which also has the suffix “.h”), so shaders can’t build.

---

<div class="post-metadata">

**Author:** ![kmgnproed](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kmgnproed/32/1032378_2.png) [@kmgnproed](https://forums.unrealengine.com/u/kmgnproed)\
**Post date:** [March 28, 2025, 4:44am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/17 "2025-03-28T04:44:31Z")

</div>

Since the issue comes from the engine itself, you just need to verify the engine version from Epic Games, and it should fix the issue correctly.

The solution is to verify the engine through Epic Games.

In my case, I got errors saying “Unknown function” in the same directory—something related to GridMaterial. But when I verified the engine, the package was used correctly.

Note:  
Installing new versions and then uninstalling them on a computer that is buggy and old may cause errors in engine files.always make sure to verify your engine throught the Egames . 😐

---

<div class="post-metadata">

**Author:** ![ZeroBreak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/zerobreak/32/969127_2.png) [@ZeroBreak](https://forums.unrealengine.com/u/ZeroBreak)\
**Post date:** [May 4, 2025, 1:37am UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/18 "2025-05-04T01:37:57Z")

</div>

I should note that the redirector fix may be confusing on Unreal 5. More specifically, the command is now called _Update Redirector References_ (but is otherwise located in the same place as in Unreal 4). That being said, however, it didn’t help in my case.

The good news, however, is that the affected materials were from a Fab purchase, so it was as easy a fix as to simply create a duplicate project, migrate the impacted assets over to replace the borked data and put everything back as it was before everything went to s— on me.

TL/DR: If all else fails, make sure that you always have a backup copy to fall back on.

---

<div class="post-metadata">

**Author:** ![AlanShah](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/alanshah/32/1067562_2.png) [@AlanShah](https://forums.unrealengine.com/u/AlanShah)\
**Post date:** [May 25, 2025, 1:28pm UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/19 "2025-05-25T13:28:18Z")

</div>

![Screenshot (779)](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/b/1/7b1e3c7c061f63cdc93dabc27c5ada944d665239.png)

The reason I encountered this issue was because I had modified the engine files. After that, I started getting exactly this error. So, I verify Unreal Engine once, and the problem was completely resolved.

---

<div class="post-metadata">

**Author:** ![9Evgeny9](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@9Evgeny9](https://forums.unrealengine.com/u/9Evgeny9)\
**Post date:** [January 28, 2026, 12:16pm UTC](https://forums.unrealengine.com/t/failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/143962/20 "2026-01-28T12:16:17Z")

</div>

None of above not helped.  
In my project i had menu with default text labels.  
So text label material was None. That is why engine fallback it to defaultgridmaterial.  
After creating own textmaterial, and assigning it to text, problem is gone.
