Game crashing in Android 4.2 emulator

Monkey Targets Forums/Android/Game crashing in Android 4.2 emulator

benmc(Posted 2013) [#1]
My game runs fine except with the Nexus 7 Android 4.2 emulator (API level 17 I believe)

Is anyone else experiencing this?

I'm using Monkey V66

I've checked and it has the buffer( 0 ); fix in place already.

The error is simply that the game has stopped running, and that's it, no line numbers, nothing. Very confused.


slenkar(Posted 2013) [#2]
connect up the android device to your pc
go to the android sdk folder and find adb in 'platform tools'
open a terminal where you can type in commmands
type in adb logcat
run the game on the android device

then you should be able to see the line that it crashes on
(but there is a lot of text to search through)


benmc(Posted 2013) [#3]
Here is where the Fatal Exception occurs:

02-22 18:49:26.003: E/AndroidRuntime(786): FATAL EXCEPTION: GLThread 85
02-22 18:49:26.003: E/AndroidRuntime(786): java.lang.IllegalArgumentException: No config chosen
02-22 18:49:26.003: E/AndroidRuntime(786): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:874)
02-22 18:49:26.003: E/AndroidRuntime(786): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
02-22 18:49:26.003: E/AndroidRuntime(786): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
02-22 18:49:26.003: E/AndroidRuntime(786): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)


benmc(Posted 2013) [#4]
Looking more into this, it could be because the emulator doesn't support openGL ES 2.0, but I have 2.0 disabled in the config vars. OPENGL_GLES20_ENABLED="0" Maybe my computer itself doesn't support it. Wish I had a Nexus 7 to test on.