FATAL EXCEPTION: GLThread 10 when running on Emulator

1,751 views
Skip to first unread message

Paracelsus Philippus Aureolus Theophrastus Bombastus von Hohenheim

unread,
May 27, 2012, 3:44:49 PM5/27/12
to PlayN
LogCat throws this error every time I want to run my Android PlayN
project in the Emulator. If I run it on an actual hardware-device
(instead of the emulator) there is no problem. Any idea what I am
doing wrong?

Maybe somebody can explain why we need a native lib? I guess to
support Android versions before 3.0? Does this mean I have to ship a
native lib with my app?

From reading the Wiki I take it PlayN apps not necessarily use OpenGL
but also can use software-rendering. Or am I wrong?

What is the minimum Android SDK Version PlayN requires?


05-20 15:51:57.917: D/dalvikvm(1077): Trying to load lib /data/data/
com.myapp.android/lib/libplayn-android-nativelib.so 0x40514108
05-20 15:51:57.917: D/dalvikvm(1077): Added shared lib /data/data/
com.myapp.android/lib/libplayn-android-nativelib.so 0x40514108
05-20 15:51:57.927: D/dalvikvm(1077): No JNI_OnLoad found in /data/
data/com.myapp.android/lib/libplayn-android-nativelib.so 0x40514108,
skipping init
05-20 15:51:58.097: D/playn(1077): onResume
05-20 15:51:58.097: I/playn(1077): notifyVisibilityChanged: 0
05-20 15:51:58.126: D/playn(1077): Using default sizing.
05-20 15:51:58.206: I/playn(1077): Screen sized changed to ( 800 ,
480)
05-20 15:51:58.406: D/libEGL(1077): egl.cfg not found, using default
config
05-20 15:51:58.406: D/libEGL(1077): loaded /system/lib/egl/
libGLES_android.so
05-20 15:51:58.476: W/dalvikvm(1077): threadid=9: thread exiting with
uncaught exception (group=0x40015560)
05-20 15:51:58.487: E/AndroidRuntime(1077): FATAL EXCEPTION: GLThread
10
05-20 15:51:58.487: E/AndroidRuntime(1077):
java.lang.IllegalArgumentException: No configs match configSpec
05-20 15:51:58.487: E/AndroidRuntime(1077): at
android.opengl.GLSurfaceView
$BaseConfigChooser.chooseConfig(GLSurfaceView.java:763)
05-20 15:51:58.487: E/AndroidRuntime(1077): at
android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:919)
05-20 15:51:58.487: E/AndroidRuntime(1077): at
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:
1264)
05-20 15:51:58.487: E/AndroidRuntime(1077): at
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
05-20 15:51:58.526: D/playn(1077): Using default sizing.
05-20 15:51:58.647: D/playn(1077): onPause
05-20 15:51:58.647: I/playn(1077): notifyVisibilityChanged: 4
05-20 15:51:59.436: D/AndroidRuntime(1077): Shutting down VM
05-20 15:51:59.541: W/dalvikvm(1077): threadid=1: thread exiting with
uncaught exception (group=0x40015560)

Bryan Alvarado

unread,
May 27, 2012, 3:49:37 PM5/27/12
to pl...@googlegroups.com
What API version of the sdk are you using to create your AVD? Because the only version so far that runs playn games on the emulator is the API Level 15.

2012/5/27 Paracelsus Philippus Aureolus Theophrastus Bombastus von Hohenheim <aureolus.vo...@googlemail.com>



--
Bryan Alvarado



Paracelsus Philippus Aureolus Theophrastus Bombastus von Hohenheim

unread,
May 27, 2012, 4:21:34 PM5/27/12
to PlayN
Yes, it was an older emulator. I created a new AVD with API Level 15.
I still get another exception:



05-27 22:06:34.743: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:35.163: E/dalvikvm(775): Unable to open stack trace file '/
data/anr/traces.txt': Permission denied
05-27 22:06:35.163: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:35.243: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:35.843: D/playn(775): onResume
05-27 22:06:35.843: I/playn(775): notifyVisibilityChanged: 0
05-27 22:06:35.953: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:36.083: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:36.173: D/playn(775): Using default sizing.
05-27 22:06:36.383: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:36.463: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:36.903: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:37.033: I/playn(775): Screen sized changed to ( 800 , 480)
05-27 22:06:37.043: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:37.383: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:37.683: D/libEGL(775): Emulator without GPU support
detected. Fallback to software renderer.
05-27 22:06:37.703: D/libEGL(775): loaded /system/lib/egl/
libGLES_android.so
05-27 22:06:37.715: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:38.013: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:38.353: W/dalvikvm(775): threadid=11: thread exiting with
uncaught exception (group=0x409c01f8)
05-27 22:06:38.385: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:38.393: E/AndroidRuntime(775): FATAL EXCEPTION: GLThread
99
05-27 22:06:38.393: E/AndroidRuntime(775):
java.lang.IllegalArgumentException: No configs match configSpec
05-27 22:06:38.393: E/AndroidRuntime(775): at
android.opengl.GLSurfaceView
$BaseConfigChooser.chooseConfig(GLSurfaceView.java:853)
05-27 22:06:38.393: E/AndroidRuntime(775): at
android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1009)
05-27 22:06:38.393: E/AndroidRuntime(775): at
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:
1362)
05-27 22:06:38.393: E/AndroidRuntime(775): at
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
05-27 22:06:38.623: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:38.903: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:39.203: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:39.255: D/gralloc_goldfish(775): Emulator without GPU
emulation detected.
05-27 22:06:39.293: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:39.663: D/playn(775): onPause
05-27 22:06:39.663: I/playn(775): notifyVisibilityChanged: 4
05-27 22:06:39.923: I/dalvikvm(775): threadid=3: reacting to signal 3
05-27 22:06:40.033: I/dalvikvm(775): Wrote stack traces to '/data/anr/
traces.txt'
05-27 22:06:44.144: I/Process(775): Sending signal. PID: 775 SIG: 9

Bryan Alvarado

unread,
May 27, 2012, 4:32:24 PM5/27/12
to pl...@googlegroups.com
You have to enable the GPU acceleration in your new AVD.

Go to your AVD manager, select and edit your AVD, and in the next window 
there's a "Hardware" table, select New, and choose GPU emulation, and then 
give a yes value to it.

2012/5/27 Paracelsus Philippus Aureolus Theophrastus Bombastus von Hohenheim <aureolus.vo...@googlemail.com>
Yes, it was an older emulator. I created a new AVD with API Level 15.

Paracelsus Philippus Aureolus Theophrastus Bombastus von Hohenheim

unread,
May 27, 2012, 4:56:56 PM5/27/12
to PlayN
hehe...that did it :)

Somehow frustrating that Snapshots don't work with GPU accel. but at
least I know it is not a problem of my setup.

Thanks!

On May 27, 10:32 pm, Bryan Alvarado <bryan.alvar...@gmail.com> wrote:
> You have to enable the GPU acceleration in your new AVD.
>
> Go to your AVD manager, select and edit your AVD, and in the next window
> there's a "Hardware" table, select New, and choose GPU emulation, and then
> give a yes value to it.
>
> 2012/5/27 Paracelsus Philippus Aureolus Theophrastus Bombastus von
> Hohenheim <aureolus.von.hohenh...@googlemail.com>
> http://about.me/bryan. <http://about.me/bryan./bio>

Paracelsus Philippus Aureolus Theophrastus Bombastus von Hohenheim

unread,
May 27, 2012, 5:26:56 PM5/27/12
to PlayN
Although I should add that the console still prints out:

[2012-05-27 23:25:37 - Emulator] Failed to load libGL.so
[2012-05-27 23:25:37 - Emulator] error libGL.so: cannot open shared
object file: No such file or directory
[2012-05-27 23:25:37 - Emulator] Failed to load libGL.so
[2012-05-27 23:25:37 - Emulator] error libGL.so: cannot open shared
object file: No such file or directory



On May 27, 10:56 pm, Paracelsus Philippus Aureolus Theophrastus
Reply all
Reply to author
Forward
0 new messages