Why does this shader make my game crash on Galaxy S3 i9300?

I have a problem when deploying my game onto the Samsung Galaxy S3 i9300 and the Samsung Galaxy S2 i9100. It will crash when trying to load the level and spits out an error involving shader code. It work on other Galaxy S3s (SCH-I535), but on this particular S3 (i9300) it crashes. I’ve tried to narrow down where this problem is, but I can’t find the shader that the log is talking about.

Here is the log

How would I go about solving this problem?

1 Answer

1

The only thing that jumps out at me is the reference to bokeh, which indicates that this may be a depth-of-field shader. Are you using and post effect scripts or other shaders that do DoF?

Thanks for pointing me in the right direction! I found that one of our shaders which handled depth of field is not compatible with these devices. It turns out that we weren't even using this shader but the compiling of this shader was causing the game to crash on the devices. After removing the shader from the scenes we have no more problems, thanks!