Unity Shader Compiler has stopped working : 5.1

I have a new issue I have never experienced before.

When building for Android on Windows 7 I get a pop up.

Box header: Microsoft Visual C++ Debug Library

Debug Error!
Program: …gram
Files\Unity5\Editor\Data\Tools64\UnityShaderCompiler.exe

R6010
-abort() has been called

(Press Retry to debug the application)

I have three buttons below:
Abort - Retry - Ignore

Pressing any button results in another popup box:

Box Header: Unity Shader Compiler

Unity Shader Compiler has stopped working

A problem has caused the program to stop working correctly. Please close the program.

Has anyone experienced this before?

Many thanks in advance.

Quick update: This happens when using “Build And Run” and “Build”.
If I choose “Build” I do get a fully working APK though so it is not a huge deal.

I get the same issue, Windows 8.1 on Android :frowning:

Glad it is not just me doing something wrong. Sorry to hear you have the same issue though.

Same Error, Please Fix this As soon as possible

Did you manage to submit a bug report I’ve been trying but getting a repro is proving impossible!

same problem.

A patch was released today, it seems that this issue was fixed

Awesome, I’ll download and test! :smile:

Unfortunately it doesn’t fix the issue :frowning:

Same issue here. Attempting WebGL builds. Patch doesn’t fix it.

Getting the same issue here, not a very informative error either. Also noticed that image effects now get disabled on android, was this intentional?

You need to use bug reporter tool within unity for faster response and drop case number here.

The patch did fix it for me.

I had the same issue with the ‘BlurOptimized’ script’s native shader (BlurOptimized script from Unity 5.1 standard assets)… But the 5.1.1 p2 fixed the issue for me…try it out…

My above reply turned out to be half true…Once I installed the p2 patch release, though I did not get any build errors like before, the shader doesnt seem to work on android platform…the shader works in editor and builds to android without any errors but it doesnt work in android…

the same problem,and the 5.1.1 p2 did not fix it for me

i found the shader which will make this problem

who can help me?

2244886–149921–Additive Turbulence.shader (3.89 KB)
2244880–149919–Energy Ball.shader (4.12 KB)
2244880–149920–Trail Additive Turbulence.shader (4.3 KB)

I am also facing this issue on windows 8.

following are the console messages

  • IsFinite (m_CachedRange.first) && IsFinite (m_CachedRange.second)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

  • Shader compiler: internal error compiling shader snippet type=0 platform=9: Timeout reading from external process

  • Shader error in ‘Hidden/FastBloom’: Internal error communicating with the shader compiler process

do anyone find a work around for this?

Some problem…

Someone is working on this problem ?

Possible fix: It happened to me today when running 5.2.2p4 and it turned out that UnityShaderCompiler stopped responding completely because of one missing opening bracket “{”

example:
“inline fixed4 LightingMobileBlinnPhong (SurfaceOutput s, fixed3 lightDir, fixed3 halfDir, fixed atten) /code/ }”