I’m testing a large project trying to upgrade it to Unity 5.3.0b2
I’m getting frequent crashes due to “precompiled shader asset from an old Unity version” in various shaders.
This is just one example:
Updating Assets/Garage-II/Shader/DifNorSpcCub.shader - GUID: 43cf4de722807b242adbb364c527f682… GpuProgram creation error: shader program type is unrecognised. You might have a precompiled shader asset from an old Unity version. (Filename: /Users/builduser/buildslave/unity/build/Runtime/GfxDevice/GpuProgram.cpp Line: 856) Receiving unhandled NULL exception Launching bug reporter Obtained 8 stack frames.
I’m just deleting each shader and then restarting Unity to import/compile again each time.
EDIT: not a big issue in the scheme of things, but would be nice if Unity didn’t crash. Having to restart importing several times on a large project is a bit frustrating.
Sorry you’ve run into this crash. This sounds exactly like something we ran into in internal testing recently - there was a nasty problem that had been lurking for a while, but it didn’t show up until I ran across a project with this case of failing to create a lot of precompiled shaders all at once. I’ve put in a fix for it which should be delivered with 5.3.0b3 by this weekend. Let me know if it’s not fixed in beta 3 and you’re still running into the crash, and I can investigate your case.
for some reason i never received a bug report email =( i uploaded a 1 gb file with it, and i had sent 2 bug reports and didnt get emails for either of them!
I actually just figured out what shader was breaking it, it took a few hours but “GlareFX” is the asset causing the issue, specifically “glareFxCheapMobile.cs” as a post effect, with “glareFXCheapMobile” as its shader and “glareBlur” as its blur shader.
its in the project i posted, i just got one of the emails, but its not the one with the project sorry Alex, but maybe that means the next one should come soon.
I also saw that “glareFXCheapMobile” has an error in the inspector saying “Shader is not supported on this GPU (none of subshaders/fallbacks are suitable)”