Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"Unfortunately, Launcher has stopped" on Android Nexus 6 emulator

When testing my 2D game on the Nexus 6 emulator, the app launches and works fine the first time. But when I close out of the app and try to reopen it, I get a "Unfortunately, Launcher has stopped" and the emulator crashes. This only happens on the Nexus 6 emulator, on other older AVDs the app reopens fine. Nothing shows up in Logcat when this happens.

I was wondering if anyone knew why this happens and only on the Nexus 6 emulator. I have suspected the following culprits but I am not sure:

  1. Out of memory - I do not release any of the bitmap resources used in the game, should I be doing this and if so, should it be from the surfaceDestroyed() method?

  2. A threading issue - perhaps the thread is not being properly shut down or restarted?

Any help would be appreciated!

like image 494
Paymon Wang-Lotfi Avatar asked Mar 05 '15 19:03

Paymon Wang-Lotfi


People also ask

How do I stop launcher3?

Pressing on the "Launcher 3" app will open the "App info screen" which will show some details pertaining to that app. On this App info screen, you will find buttons like "Force Stop", "Uninstall", "Clear Data" and "Clear Cache" etc.


1 Answers

Well I figured it out, turns out if I increase the RAM and heap space in the AVD advanced settings slightly I do not have this issue.

like image 146
Paymon Wang-Lotfi Avatar answered Nov 15 '22 17:11

Paymon Wang-Lotfi