- Home /
Game crashes as soon as splashscreen is displayed in android
I've made a game in unity for android. It works perfectly fine in my computer while I play it. The draw call is around 25 and FPS 70, so I don't think that is a problem. Please anyone can assist me with what the problem might be.Thank you in advance
CHEC$$anonymous$$ THIS
When Application.Quit () is called on back key, the game finished normally. But trying to execute the app again makes it crash after 5~10 seconds' waiting with black screen.
The log during the waiting is as below: 12-12 17:59:02.918: V/GamesNativeSD$$anonymous$$(3686): Received Activity Stop Event. 12-12 17:59:02.958: V/GamesNativeSD$$anonymous$$(3686): Attached to JV$$anonymous$$ on thread main_dispatch 12-12 17:59:02.958: V/GamesNativeSD$$anonymous$$(3686): Running disconnect operation. 12-12 17:59:08.023: V/GamesNativeSD$$anonymous$$(3686): Detaching from JV$$anonymous$$ on thread main_dispatch
and just after the crash, executing the app again is O$$anonymous$$.
device: Galaxy Note plugin version: GooglePlayGamesPlugin-0.9.10 unity: 4.5.5f1 mac
Do you have any idea? Shouldn't I use Application.Quit() or is there any way to release GamesNativeSD$$anonymous$$ on quitting?
Answer by tanoshimi · Nov 20, 2013 at 09:00 AM
Draw calls and FPS are not the reason for a game crashing. They're indications that it may run slowly on certain platforms. If you're running on a mobile device it's far more likely that you're trying to allocate more memory than is available, and the most probable reason for that, in my experience, is because you have too high-resolution textures (for mobile, I rarely exceed 512x512px). Either that or you have, for example, a large terrain object, model with too many tris/verts, uncompressed audio etc.
It could really be any of your game assets, and only you have the capability to debug to find out which. What exactly is in the scene after your splash screen? Do you have any third party components that could be responsible? Did the crash only start occurring recently? What was the last part of the game you changed?
It was some bug in my Unity I feel. I ran it on a different PC and it worked like a charm. But I find your answer really useful nonetheless.Thanks tanoshimi
Answer by ramp · Nov 20, 2013 at 10:01 AM
1.Mentions all scenes in build. 2.After loading splash screen load like Game play scene (as you naming the scene). i think missing the assign of expose variable from Hierarchy to Inspector in the game apps.