- Home /
Unity Android game freezes on splash screen
Few days ago my simple android game could successfully build and run on my tablet. On the first scene I loaded Google Play Services and authenticated the user. Everything worked correctly. When I started to work on achievements, 5 test achievements I implemented correctly. But when I was changing them on actual achievements for my game something gone wrong and now my game freezes on Unity Personal edition splash screen and nothing happen.
Does anyone have an idea what I have unintendedly done?
Turn on Usb Debugging on your phone connect it to your computer and start adb logcat ( inside Android SD$$anonymous$$). Check it if there are any errors reporting then post it here.
Yes, $$anonymous$$arceta, there are some errors: Unity: Error: Cannot create F$$anonymous$$OD::Sound instance for resource sharedassets0.resource, (File not found. ) Unity: Function SoundHandle::Instance::~Instance() may only be called from main thread! mono: Unhandled Exception: System.ExecutionEngineException: SIGILL
what are these and how to fix that?
I guess I've found a solution: Under Player Settings > Publishing Settings the option Split Application Binary was on. This option needs to be OFF.
Answer by aeron3d · Jul 30, 2017 at 01:13 PM
I have totally the same problem. I've been developing the application for almost two years all builds worked well. After publishing to Google Play and added new patch version with expansion application freezes on Unity Personal Edition screen. But seems like only for devices on what older versions of my game were installed. Should work good on new devices. Uninstallation, deleting main folder and device rebooting are not helping.
Seems like on devices: -Samsung Galaxy J1 Ace - Android 5.1 -Samsung Galaxy S5 Neo - Android 6.0.1 (that's what I'm using) game stops on blue screen after Unity Personal Edition screen on Unity 5.6.1f1 This list can be bigger I've made tests on ~16 Android devices...
Answer by TheSOULDev · Jul 30, 2017 at 01:46 PM
Have you fiddled with the build settings and checked something you hadn't before?
$$anonymous$$y apk is 250 $$anonymous$$b, I needed to upload it to Google Play. But Google Play supports only apk up to 100 $$anonymous$$b. So I had to use Split Application Binary setting to get AP$$anonymous$$ <50$$anonymous$$b and OBB file ~200$$anonymous$$b. After publishing it to Google Play game freezes on Unity Personal Edition screen. I've tried to create a build without spliting and install it straight to my phone and it worked well. So projects is totally the same. Nothing changed.
I don't think that is causing the problem, however, do check if it's handling the path to the obb correctly, because it may be seaeching for your obb in a wrong place, and that would cause a freeze on the loading screen.
Also, try compiling it again, maybe there is some bug with the creation of those files (very rare, but not impossible)
yeah, I've made around 10 new builds already...building to AP$$anonymous$$+OBB is totally automatically in Unity, so I can't control it. After I'm uploading it to Google Play there is also no extra settings. I've made another Update to the game on Google Play and it still freezes on loading screen. Non splitted versions (AP$$anonymous$$ 250 $$anonymous$$b) works well. So I think only spliting can cause it...
Your answer
Follow this Question
Related Questions
Unity 5.5.0f3 freezes at splash screen 2 Answers
Freeze when building 0 Answers
Editor freezing on android build & run 1 Answer
Android Build freeze,Unity Android Freeze 1 Answer
Android APK freezes during level load but not in Unity Editor 2 Answers