# === Critical error: === Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!

**URL:** <https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240>\
**Category:** Platform & Builds\
**Tags:** Linux, unreal-engine, Shaders, question\
**Created:** [February 12, 2019, 4:31pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240 "2019-02-12T16:31:58Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![FinalZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FinalZer0](https://forums.unrealengine.com/u/FinalZer0)\
**Post date:** [February 12, 2019, 4:31pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/1 "2019-02-12T16:31:58Z")

</div>

Hi, I have been having this error. This occurs when i try to package my project to linux and with source build.  
I could build with empty project and engine 4.20

```
UATHelper: Packaging (Linux): LogMaterial: Display: Missing cached shader map for material WorldGridMaterial, compiling. Is special engine material.
UATHelper: Packaging (Linux): LogShaderCompilers: Warning: 0 Shader compiler errors compiling WorldGridMaterial for platform GLSL_150:
PackagingResults: Warning: 0 Shader compiler errors compiling WorldGridMaterial for platform GLSL_150:

UATHelper: Packaging (Linux): LogWindows: Error: begin: stack for UAT
UATHelper: Packaging (Linux): LogWindows: Error: === Critical error: ===
UATHelper: Packaging (Linux): LogWindows: Error:
UATHelper: Packaging (Linux): LogWindows: Error: Fatal error: [File:C:\Program Files\Epic Games\UnrealEngine-4.20\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp] [Line: 2031]
UATHelper: Packaging (Linux): LogWindows: Error: Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!

PackagingResults: Error: === Critical error: ===
UATHelper: Packaging (Linux): LogWindows: Error: [Callstack] 0x00007ff850ba73d7 UE4Editor-Engine.dll!FShaderCompilingManager::FinishCompilation() [c:\program files\epic games\unrealengine-4.20\engine\source\runtime\engine\private\shadercompiler\shadercompiler.cpp:2496]
UATHelper: Packaging (Linux): LogWindows: Error: [Callstack] 0x00007ff85079da82 UE4Editor-Engine.dll!FMaterialShaderMap::Compile() [c:\program files\epic games\unrealengine-4.20\engine\source\runtime\engine\private\materials\materialshader.cpp:1594]
```

---

<div class="post-metadata">

**Author:** ![LNaej](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LNaej](https://forums.unrealengine.com/u/LNaej)\
**Post date:** [February 12, 2019, 8:31pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/2 "2019-02-12T20:31:37Z")

</div>

I used to have this error on an old project and another version. Try to look for assets in your game using this default material which is Editor only. Try also to exclude every folder which is not supposed to be packaged from packaging in your Packaging settings.

A good way to see if one of your assets you are packaging is referencing this Material, is to right-click on this WorldGridMaterial in the content browser and “Find References”. It should show you every asset referencing this WorldGridMaterial. Do not forget to enable “Show Engine content” and stuff like that in the content browser (can’t remember where this Material is).

---

<div class="post-metadata">

**Author:** ![FinalZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FinalZer0](https://forums.unrealengine.com/u/FinalZer0)\
**Post date:** [February 18, 2019, 11:12am UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/3 "2019-02-18T11:12:51Z")

</div>

Thank you for answering!  
I copy-pasted my project to another location and cleared out content folder and then packaged. It gave same error, so it does not depend on what material I use in my project.  
Also tried to make empty project and added a map, where is only one cube with WorldGridMaterial. This project was built with UE4.20 (Not source build) and build was successful.  
There is some problem with my engine built from source.

---

<div class="post-metadata">

**Author:** ![RCL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RCL](https://forums.unrealengine.com/u/RCL)\
**Post date:** [February 18, 2019, 2:08pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/4 "2019-02-18T14:08:32Z")

</div>

Please go to your project properties, Platforms → Linux and disable GL3 there. For whatever reason there’s an issue compiling default material in your engine installation for GL3. This RHI has been long deprecated anyway, so by not supporting it you will only save yourself more trouble.

(The compilation of the default material shouldn’t fail nevertheless).

---

<div class="post-metadata">

**Author:** ![LNaej](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LNaej](https://forums.unrealengine.com/u/LNaej)\
**Post date:** [February 18, 2019, 2:36pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/5 "2019-02-18T14:36:59Z")

</div>

Thanks RCL! A quick question though: in 4.17 there is the same bug, even with just DX11 activated, do you know if there is a way to fix the problem in the 4.17 version?

---

<div class="post-metadata">

**Author:** ![FinalZer0](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FinalZer0](https://forums.unrealengine.com/u/FinalZer0)\
**Post date:** [February 19, 2019, 1:37pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/6 "2019-02-19T13:37:50Z")

</div>

Thank you! It worked, and DefaultMat didn’t fail. It compiled really slow tho…

---

<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, 1:52am UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/7 "2020-05-19T01:52:59Z")

</div>

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

Project wont’ start anymore and I’d really liked to get back in, sounds like an easy problem , just afraid to breaking something for good if I do the wrong thing…

Trouble also is , there is NO D:/build at all, whats up here ? ;00 🙂 Is this temporary and it deletes all after crash ?

Thx anyone

---

<div class="post-metadata">

**Author:** ![Heavyswell](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Heavyswell](https://forums.unrealengine.com/u/Heavyswell)\
**Post date:** [December 9, 2022, 5:04pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/8 "2022-12-09T17:04:20Z")

</div>

I MET THE SAME PROBLEM, AND I EVEN CANT OPEN ANY OTHER UNREAL ENGINE FILES. PLS HELP…CRYING

---

<div class="post-metadata">

**Author:** ![Suriba](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Suriba](https://forums.unrealengine.com/u/Suriba)\
**Post date:** [January 10, 2023, 11:16am UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/9 "2023-01-10T11:16:27Z")

</div>

For me.Enable “Support global clip plane for Planer Reflections” called this issue.Disable it in config file will fix it.

---

<div class="post-metadata">

**Author:** ![Maskindarker](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maskindarker/32/561065_2.png) [@Maskindarker](https://forums.unrealengine.com/u/Maskindarker)\
**Post date:** [April 23, 2023, 8:29pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/11 "2023-04-23T20:29:32Z")

</div>

And in case of this problem in Windows. How do I resolve this? I just had this problem and I can’t EVEN get into Unreal 4.27.2. How do I solve this problem? PLEASE HELP!!!

---

<div class="post-metadata">

**Author:** ![yetliuxian1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@yetliuxian1](https://forums.unrealengine.com/u/yetliuxian1)\
**Post date:** [October 18, 2023, 12:40pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/12 "2023-10-18T12:40:38Z")

</div>

> [@neighborlee](#):
>
> mething for good if I do the wrong thing…
> 
> Trouble also is , there is N

me too

---

<div class="post-metadata">

**Author:** ![HighGradeGiraffe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/highgradegiraffe/32/775394_2.png) [@HighGradeGiraffe](https://forums.unrealengine.com/u/HighGradeGiraffe)\
**Post date:** [November 13, 2023, 5:45pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/13 "2023-11-13T17:45:06Z")

</div>

I have ran into similar situation today. Going to Epic Game Launcher and verifying UE installation and plugins solved the issue - I can load my project without issues.  
UE 5.3.2

---

<div class="post-metadata">

**Author:** ![man1277pl](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@man1277pl](https://forums.unrealengine.com/u/man1277pl)\
**Post date:** [January 6, 2024, 1:03am UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/14 "2024-01-06T01:03:27Z")

</div>

I confirm. engine verification and plug-in updates. In my case it’s the first

---

<div class="post-metadata">

**Author:** ![sbbg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sbbg](https://forums.unrealengine.com/u/sbbg)\
**Post date:** [February 2, 2025, 3:00am UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/15 "2025-02-02T03:00:52Z")

</div>

It’s happening to me on Unreal 5.5.2 on Linux today.

Do we have a systematic way to deal with it?  
Thank you…

---

<div class="post-metadata">

**Author:** ![KD7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KD7](https://forums.unrealengine.com/u/KD7)\
**Post date:** [February 5, 2025, 5:48pm UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/16 "2025-02-05T17:48:17Z")

</div>

just got this a couple days ago as well tried all the solutions above to no avail. so if anyone else has this issue the solution that worked for me was to disable SM5 for the targeted vulkan RHI in project settings. must be a bug in the graphics drivers. not sure who this needs to get to for fixing, but hope this helps someone.

 ![Screenshot from 2025-02-05 11-57-52](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/6/d16cd54b7283868b833d5fb58e58817546e82b0e.png)

Edit: it appears that you just cant have both enabled at the same time, use sm6 if you need the new features of ue5 like virtual shadow maps and such, sm5 if you dont need any of the new stuff

---

<div class="post-metadata">

**Author:** ![sbbg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@sbbg](https://forums.unrealengine.com/u/sbbg)\
**Post date:** [February 7, 2025, 7:44am UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/17 "2025-02-07T07:44:12Z")

</div>

OMG, you’re my savior!!  
I need to disable 1 of SM5 and SM6 for Vulkan RHI. My pacakged project will work normally.  
I cannot express how appreciative I am. I’m curious how do you learn that anyway?

---

<div class="post-metadata">

**Author:** ![KD7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KD7](https://forums.unrealengine.com/u/KD7)\
**Post date:** [February 8, 2025, 4:26am UTC](https://forums.unrealengine.com/t/critical-error-failed-to-compile-default-material-engine-enginematerials-worldgridmaterial-worldgridmaterial/443240/18 "2025-02-08T04:26:14Z")

</div>

after trying all the above solutions and nothing working, even re-downloading and building ue5.5.2 from source. i realized it definitely was the project and more specifically the packaged project. so i just decided to read the logs more carefully and saw a lot lines about the vulkan shaders not supporting things before the worldgrid material error occurs. so figured maybe theres a conflict going on. so i unchecked one to test and behold it was able to open the packaged game. then i switched and it still worked, but having them both enabled broke it again. so i just left sm6 enabled cause i use the new features. only thing that changed for me was upgrading to new unreal and i think i got some gpu driver updates. so i assume something went wrong with amd drivers and ue5.
