I’ve made a game for android but I’m finding that sometimes when I install the app and run it some of my sprites will be black. I’m testing on 3 different android phones and one tablet and the issue is sporadic but has been seen on all of them.
I use a total of 6 sprite sheets, all set to exactly 1024x1024 and the total file size of my sprites folder is 1.77MB. I have texture compression set to ETC1 or RGBA16 on my build settings and building for android 2.3.1 and the issue really is sporadic. I am using no custom shaders, purely Unity’s defaults.
Sometimes the game will load absolutely fine and other times it loads with the majority of my sprites black and I’m really lost for why this is happening.
I’ve attached an image example below alongside the logcats for a “Good” run, where sprites load fine, and a “Bad” run where they do not.
Thanks for the reply, bug report has been submitted though due to the randomness of the issue it’s difficult to pinpoint how to reproduce. I included my whole project, screenshots of the issue and the two android logs from above so hopefully this helps to discover the issue.
Today I started a new project from scratch and rebuilt the game to a basic level of just gameplay, no adverts or Soomla Profile plugin, the issue was still present. I also found that it can happen on Build and Run as well as directly installing the APK on a device.
This is currently the only thing holding me back from launch so I very much appreciate you looking into this for me, thanks for your time.
I’m getting the same result on Android with the exact same steps as Lszt above. I’m using a Samsung Galaxy S5 model SM-G900H. Unity Editor 5.1.4f1. I have filed a bug report Case 738648.
Screenshots from device attached here. The image on the left is when the app resumes after pressing home button immediately at launch. The image on the right is normal.
I have a similar problem with Unity 5.2… Is there some way to debug the reason of why the sprite is black? I have this problem with almost all my compressed sprites and particles.
Any updates on this? We have the same problem with Unity 5.3.5p8 and if you ask why we don’t upgrade to 5.4f1, we still have this bug there.
Also I couldn’t reproduce the error in Unity 5.3.5p8 but only see the following errors in our backend:
GLSL compilation failed, no infolog provided
and sometimes
-------- GLSL link error: ERROR:SEMANTIC-8 (line 82) Argument unused in constructor
The loading screen is a 2048x1024 ETC 4 Bits texture.
In Unity 5.4.1f1 I could reproduce the black sprites when I started the app and directly locked the phone. After I unlocked the phone and got back into our game, the loading screen was rendered black (we’re talking about a loading screen that’s displayed with NGUI). After the loading screen disappeared, everything was rendered fine.
Is the texture format of your background different from the format of your sprites that are rendered black? If so, could you please tell me the format of both?
Ok, upgrading to Unity 5.3.6p8 seems to solve the problem.
When using Unity 5.3.5p8, the loading screen (not Unitys’ splash screen) was pink after I’ve started the app, pressed the home button before Unitys’ splash screen was shown and opened the app again from background. This also lead to the GLSL error log.
We can reproduce this same issue with 5.4.1f1 and 5.4.1p1. Just start the app and directly lock the phone / put it to background and one of the sheets will render in black.