Got this: "Unfortunately, Monkey Game has stopped"

Monkey Targets Forums/Android/Got this: "Unfortunately, Monkey Game has stopped"

MonoDesire(Posted 2016) [#1]
Trying to run target "Android Game (Api 10)" for bananas/blobmonster, but got the "Unfortunately, Monkey Game has stopped" error message in the Android emulator, and this printout in the Monkey console:

BUILD SUCCESSFUL
Total time: 12 seconds
Starting: Intent { cmp=com.monkeycoder.monkeygame/.MonkeyGame }
--------- beginning of /dev/log/main
--------- beginning of /dev/log/system
E/logwrapper(  932): executing /system/bin/ip failed: No such file or directory
E/SecondaryTablController(   51): ip route del failed: /system/bin/ip route del 10.0.2.2/32 via 0.0.0.0 dev eth0 table 60
E/logwrapper(  933): executing /system/bin/ip failed: No such file or directory
E/SecondaryTablController(   51): ip route del failed: /system/bin/ip route del 0.0.0.0/0 via 10.0.2.2 dev eth0 table 60
E/NetdConnector(  354): NDC Command {56 bandwidth removeiquota eth0} took too long (859ms)
E/NetdConnector(  354): NDC Command {57 bandwidth gettetherstats} took too long (694ms)
E/memtrack(  922): Couldn't load memtrack module (No such file or directory)
E/android.os.Debug(  922): failed to load memtrack module: -2
E/NetdConnector(  354): NDC Command {58 bandwidth setiquota eth0 9223372036854775807} took too long (1698ms)
E/NetdConnector(  354): NDC Command {59 bandwidth removeiquota eth0} took too long (663ms)
E/NetdConnector(  354): NDC Command {60 bandwidth setiquota eth0 9223372036854775807} took too long (1360ms)
F/libc    (  994): Fatal signal 11 (SIGSEGV) at 0x00000000 (code=1), thread 1014 (Thread-72)


These are my AVD details:

CPU/ABI: ARM (armeabi-v7a)
Target: Android 4.4.2 (API level 19)
Skin: 1080x1920

avd.ini.encoding=UTF-8
abi.type=armeabi-v7a
disk.dataPartition.size=200M
hw.accelerometer=yes
hw.audioInput=yes
hw.battery=yes
hw.camera.back=none
hw.camera.front=none
hw.cpu.arch=arm
hw.cpu.model=cortex-a8
hw.dPad=no
hw.device.hash2=MD5:2fa0e16c8cceb7d385183284107c0c88
hw.device.manufacturer=Google
hw.device.name=Nexus 5
hw.gps=yes
hw.gpu.enabled=yes
hw.keyboard=yes
hw.lcd.density=480
hw.mainKeys=no
hw.ramSize=1000
hw.sdCard=no
hw.sensors.orientation=yes
hw.sensors.proximity=yes
hw.trackBall=no
image.sysdir.1=system-images\android-19\default\armeabi-v7a\
skin.dynamic=yes
skin.name=1080x1920
skin.path=1080x1920
tag.display=Default
tag.id=default
vm.heapSize=128


Question is, why is the app crashing in the emulator? :-)


Soap(Posted 2016) [#2]
Don't use the Android emulator. Use Bluestacks or LeapDroid.


MonoDesire(Posted 2016) [#3]
@Soap: That is of course another approach, but I was hoping to use the Android emulator to not have to install yet another tool. But maybe I need to in the end...

By the way, another but related question: When testing on a real device, what is common procedure - let Monkey build, manually grab the .apk file and copy it via USB to the device? No automation involved I assume.


Phil7(Posted 2016) [#4]
I am nearly allways testing on a real device, because it was much faster than the emulator. You just have to connect your Android device to your PC (both prepared) and build/run the app. It starts automatically on your device.
Prepare means:
- Install USB-driver on PC for your android device.
- enable debugging on android device in developer prefs. (first enable dev prefs by touching buildnr in prefs 7 times; may vary on your device ;-) )
- enable instaling from other sources on your android device.

Not quite shure about the correct names of this stuff, because my device is running german...


MonoDesire(Posted 2016) [#5]
@Phil7:

Thank you, this was really good information! Didn't know that one could put an Android device in such debugging mode. That speeds things up. I will try that tonight.


Soap(Posted 2016) [#6]
Use AirDroid for faster apk transfer. The reason to not use the standard emulator is it's generally been terribly slow and bad. The 3rd party tools are much better - especially LeapDroid.


MonoDesire(Posted 2016) [#7]
@Soap: Thanks for these tips!