- Home /
Unity5 Android GPU Crash
Hi I'm working on a kind of 3D brick breakoutgame for mobile devices.
After my 3rd day of work it's now happening really often that my testdevice "Huawei P8" is crashing after playing a while. Sometimes also after a few seconds of playing.
For me it seems to be a crash of the GPU. It looks similar to this picture:
If this happens I can't do anything except of waiting. After a few seconds the screen is refreshing and it is possible to continue play.
Now I'm not shure, is this a problem of the Unity version, in my case Unity 5.3.5p6, an optimization problem or simply has my mobile a problem?
This is a screenshot of my game if this might help to analyze the problem:
The most shaders are the standard Unity mobile shader, except the plants. For this I uses the nature leaves shader.
The most objects are static and I use baked light maps.
Thanks in advance Frank
Answer by Ill-Fish · Jul 06, 2016 at 10:19 AM
Seems that the problem was the Mali GPU and texture compression problems. I optimized my plant textures and shaders now for Mali GPU and better mobile performance and now it seems to run fine.
But I will keep an eye on it.
Hi Ill Fish, Could you detail exactly what it is you changed please? I am having a $$anonymous$$ali GPU crash intermittently on my game and have tried everything including updating to Beta version, reworking shaders etc. Whilst looking into the issue I managed to get a very simple repro case - blank project, default particle system with prewarm using cube particles using inbuilt diffuse shader and just toggling this on/off would cause a crash on $$anonymous$$ali GPU devices (Seems LOTS more common with development build btw) This doesn't occur on beta version, but the crash in my actual game does still occur on the BETA :-( So before I strip down the project to send to Unity, it may be worth trying out your fixes. Any advice appreciated.
Hi Bernie,
first it seems not to be gone complete, because I got it once more after my optimizations. I found this optimization document, made by AR$$anonymous$$, which is especially made for $$anonymous$$ali GPUs but will also help for optimizing mobile games: AR$$anonymous$$® Guide for Unity Developers
In general you should use mobile shaders for your textures ins$$anonymous$$d of the default shader. Then you should change the texture settings if you use textures with alpha. In my case I have self made plants with alpha textures. this is all described in the document.
I general it's a good thing to optimize the game for mobile, but meanwhile I have the feeling it could be also a bug in Unity ifself. In Unity 5.3.5 I also can't use projectors anymore.
Answer by berniebresslaw · Jul 11, 2016 at 09:47 AM
Thanks Ill fish - I will double check my settings and let you know how I get on - I have tested with a bunch of shaders - mobile, legacy, latest etc - with little/no difference. There are definitely issues in Unity surrounding the Mali GPU - the sample project I produced was confirmed to cause a crash by Unity themselves, but not on their BETA. My full project still crashes on BETA however. Will let you know how I get on and if I discover anything else.
Your answer
Follow this Question
Related Questions
Unity 3d Network dies on Android 0 Answers
Lerping the Camera closes Nexus 5, not Nexus 10 0 Answers
android app crashes after unity screen (maybe because of AdMob?) 0 Answers
low fps on andriod build even after optimization,Low FPS for android even after lots of optimization 0 Answers
Random crashes in Android build 0 Answers