[Forward rendering] - Failed to compile default material

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.

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)

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

Cheers,

We ran into this issue as well.

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

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.

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]

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