# \[Forward rendering\] - Failed to compile default material

**URL:** <https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635>\
**Category:** XR Development\
**Tags:** Forward-Rendering, unreal-engine, packaging-projects, question\
**Created:** [September 26, 2016, 7:23am UTC](https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635 "2016-09-26T07:23:47Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andy\_a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@andy\_a](https://forums.unrealengine.com/u/andy_a)\
**Post date:** [September 26, 2016, 7:23am UTC](https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635/1 "2016-09-26T07:23:47Z")

</div>

Hi

I’m having problem with packaging any project in 4.13. After switching to Forward rendering I get:

```
    [2016.09.25-15.55.05:817][0]LogWindows:Error: === Critical error: ===
[2016.09.25-15.55.05:817][0]LogWindows:Error: 
[2016.09.25-15.55.05:817][0]LogWindows:Error: Fatal error: [File:D:\Build\++UE4+Release-4.13+Compile\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp] [Line: 1620] 
[2016.09.25-15.55.05:817][0]LogWindows:Error: Failed to compile default material /Engine/EngineMaterials/WorldGridMaterial.WorldGridMaterial!
[2016.09.25-15.55.05:817][0]LogWindows:Error: 

```

If I choose deferred rendering project compiles fine.  
I was testing default fpp player template both on fresh install of 4.13 (win7 and win10 - the result is the same).  
If I modify WorldGridMaterial (change it to Unlit) it compiles but exe crashes. The strange thing is on 4.13 RC it worked fine.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0c62419a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0c62419a](https://forums.unrealengine.com/u/anonymous_user_0c62419a)\
**Post date:** [September 26, 2016, 3:47pm UTC](https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635/2 "2016-09-26T15:47:20Z")

</div>

Thank you for submitting a bug report. I have reproduced this issue and logged a report for it here: [Unreal Engine Issues and Bug Tracker (UE-36406)](https://issues.unrealengine.com/issue/UE-36406)

You can track the report’s status as the issue is reviewed by our development staff.

Cheers,

---

<div class="post-metadata">

**Author:** ![aliasense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aliasense](https://forums.unrealengine.com/u/aliasense)\
**Post date:** [October 26, 2016, 4:09pm UTC](https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635/3 "2016-10-26T16:09:57Z")

</div>

We ran into this issue as well.

---

<div class="post-metadata">

**Author:** ![aliasense](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@aliasense](https://forums.unrealengine.com/u/aliasense)\
**Post date:** [October 26, 2016, 4:10pm UTC](https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635/4 "2016-10-26T16:10:30Z")

</div>

Here’s a work around to recover a project manually if it is crashing on load: [crash on loading - GetIndirectOcclusion - Community & Industry Discussion - Unreal Engine Forums](https://answers.unrealengine.com/questions/514198/crash-on-loading-getindirectocclusion.html)

---

<div class="post-metadata">

**Author:** ![GranMinigun](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@GranMinigun](https://forums.unrealengine.com/u/GranMinigun)\
**Post date:** [December 2, 2017, 4:45pm UTC](https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635/5 "2017-12-02T16:45:53Z")

</div>

The problem is still (or again) presented in 4.18.1. I cannot check if it’s hardware dependent, but just in case - I’m using i5-7400 and don’t have a dedicated GPU.  
UPD: Ah, got it. That’s because of targeting OGL3. Of course. No SM4.

---

<div class="post-metadata">

**Author:** ![Antidamage](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/antidamage/32/918692_2.png) [@Antidamage](https://forums.unrealengine.com/u/Antidamage)\
**Post date:** [March 13, 2018, 1:39am UTC](https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635/6 "2018-03-13T01:39:56Z")

</div>

Yep still present here while using Forward Rendering and trying to cook content on Windows.

```
UATHelper: Cooking (Windows): LogShaderCompilers: Warning: 0 Shader compiler errors compiling WorldGridMaterial for platform GLSL_150:
UATHelper: Cooking (Windows): LogShaderCompilers: Warning: (): shader uses 18 samplers exceeding the limit of 16
UATHelper: Cooking (Windows): LogShaderCompilers: Warning: (): shader uses 17 samplers exceeding the limit of 16
UATHelper: Cooking (Windows): LogShaderCompilers: Warning: (): shader uses 19 samplers exceeding the limit of 16
UATHelper: Cooking (Windows): LogWindows: Error: begin: stack for UAT
UATHelper: Cooking (Windows): LogWindows: Error: === Critical error: ===
UATHelper: Cooking (Windows): LogWindows: Error:
UATHelper: Cooking (Windows): LogWindows: Error: Fatal error: [File:D:\Build\++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\Engine\Private\ShaderCompiler\ShaderCompiler.cpp] [Line: 1827]
```

---

<div class="post-metadata">

**Author:** ![dfssghfg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dfssghfg](https://forums.unrealengine.com/u/dfssghfg)\
**Post date:** [May 2, 2018, 5:00pm UTC](https://forums.unrealengine.com/t/forward-rendering-failed-to-compile-default-material/371635/7 "2018-05-02T17:00:30Z")

</div>

I had this problem and migrated the level to a new project using unreal vr template and then it worked.
