Re: Crash on startup (android.opengl.GLSurfaceView$GLThread.run)

2,180 views
Skip to first unread message

Bryan Alvarado

unread,
Aug 9, 2012, 8:55:40 AM8/9/12
to pl...@googlegroups.com
You have to be running an emulator with API 15 or greater, and enable the GPU emulation on it.

On Thursday, August 9, 2012, wrote:
Anybody getting this error when debugging with android emulator.

08-09 11:18:55.981: D/libEGL(623): Emulator without GPU support detected. Fallback to software renderer.
08-09 11:18:55.981: D/libEGL(623): loaded /system/lib/egl/libGLES_android.so
08-09 11:18:56.110: D/gralloc_goldfish(623): Emulator without GPU emulation detected.
08-09 11:18:56.530: D/playn(623): Using default sizing.
08-09 11:34:56.993: W/dalvikvm(623): threadid=11: thread exiting with uncaught exception (group=0x409951f8)
08-09 11:35:05.161: E/AndroidRuntime(623): FATAL EXCEPTION: GLThread 78
08-09 11:35:05.161: E/AndroidRuntime(623): java.lang.IllegalArgumentException: No configs match configSpec
08-09 11:35:05.161: E/AndroidRuntime(623): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:825)
08-09 11:35:05.161: E/AndroidRuntime(623): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:981)
08-09 11:35:05.161: E/AndroidRuntime(623): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1335)
08-09 11:35:05.161: E/AndroidRuntime(623): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1189)
08-09 11:35:05.211: D/playn(623): onPause
08-09 11:35:05.211: I/playn(623): notifyVisibilityChanged: 4
08-09 11:35:34.380: I/Process(623): Sending signal. PID: 623 SIG: 9

--
 
 
 


--
Bryan Alvarado
502 Studios
http://about.me/bryan.

Bryan Alvarado

unread,
Aug 9, 2012, 8:57:24 AM8/9/12
to pl...@googlegroups.com
You have to be running an emulator with API 15 or greater, and enable the GPU emulation on it.

Tim O'Brien

unread,
Aug 9, 2012, 9:27:06 AM8/9/12
to pl...@googlegroups.com
Thanks Bryan, I'm downloading now, hopefully it works.  I'm running my dev env inside a VM on Win7x86 so I'm still expecting something to go wrong.

Bryan Alvarado

unread,
Aug 9, 2012, 9:31:13 AM8/9/12
to pl...@googlegroups.com
I hope it works. Before API 15 we weren't able to run our games on the emulator, and remember that you have to add the GPU emulation manually in the AVD, it's not enable by default.

Tim O'Brien

unread,
Aug 9, 2012, 9:53:38 AM8/9/12
to pl...@googlegroups.com
Yeah Bryan,  are you targeting api 15 or 11 in your androidmanifest.xml?  and are you running ARM or Intel image?

Tim O'Brien

unread,
Aug 9, 2012, 9:59:41 AM8/9/12
to pl...@googlegroups.com
Hi Bryan, Still not working,  I'm think it's because I'm in a VM.  I think I'm going to have to move to a local environment.  

This appears in the console as the emulator is loading, I have GPU emulation enabled in the AVD and running debug with -gpu on
...
[2012-08-09 11:20:42 - Emulator] emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
[2012-08-09 11:20:42 - Emulator] could not get wglGetExtensionsStringARB
[2012-08-09 11:20:42 - Emulator] could not get wglGetExtensionsStringARB
[2012-08-09 11:20:42 - Emulator] could not get wglGetExtensionsStringARB
[2012-08-09 11:20:42 - Emulator] could not get wglGetExtensionsStringARB
[2012-08-09 11:20:42 - Emulator] could not get wglGetExtensionsStringARB
[2012-08-09 11:20:42 - Emulator] could not get wglGetExtensionsStringARB
[2012-08-09 11:20:42 - Emulator] could not get wglGetExtensionsStringARB
[2012-08-09 11:20:42 - Emulator] could not get wglGetExtensionsStringARB
[2012-08-09 11:20:42 - Emulator] emulator: Failed to open the HAX device!
[2012-08-09 11:20:42 - Emulator] 
[2012-08-09 11:20:42 - Emulator] emulator: Open HAX device failed
[2012-08-09 11:20:42 - Emulator] 
[2012-08-09 11:20:42 - Emulator] HAX is not working and emulator runs in emulation mode

Bryan Alvarado

unread,
Aug 9, 2012, 10:00:33 AM8/9/12
to pl...@googlegroups.com
Our min sdk is 7, and the target is 13 because of the admob integration, before that our target always was 11. And we are testing against an ARM image.

Bryan Alvarado

unread,
Aug 9, 2012, 10:06:12 AM8/9/12
to pl...@googlegroups.com
Can't say it for sure, but yeah, the VM might be the problem.

Tim O'Brien

unread,
Aug 9, 2012, 10:27:46 AM8/9/12
to pl...@googlegroups.com
Thanks Bryan,

No matter what SDK or emulator I use I get the same issue.  I might try Ubuntu.
...
08-09 14:02:20.736: D/gralloc_goldfish(1410): Emulator without GPU emulation detected.
08-09 14:02:20.596: I/playn(1410): Screen sized changed to ( 800 , 480)
08-09 14:02:20.625: D/libEGL(1410): Emulator without GPU support detected. Fallback to software renderer.
08-09 14:02:20.635: D/libEGL(1410): loaded /system/lib/egl/libGLES_android.so
08-09 14:02:20.645: W/dalvikvm(1410): threadid=10: thread exiting with uncaught exception (group=0xb401f180)
08-09 14:02:20.645: E/AndroidRuntime(1410): FATAL EXCEPTION: GLThread 71
08-09 14:02:20.645: E/AndroidRuntime(1410): java.lang.IllegalArgumentException: No configs match configSpec
08-09 14:02:20.645: E/AndroidRuntime(1410): at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:853)
08-09 14:02:20.645: E/AndroidRuntime(1410): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1009)
08-09 14:02:20.645: E/AndroidRuntime(1410): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1362)
08-09 14:02:20.645: E/AndroidRuntime(1410): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1216)
08-09 14:02:20.736: D/gralloc_goldfish(1410): Emulator without GPU emulation detected.
08-09 14:02:20.887: D/playn(1410): onPause
08-09 14:02:20.887: I/playn(1410): notifyVisibilityChanged: 4
08-09 14:02:21.096: D/playn(1410): Using default sizing.

Tim O'Brien

unread,
Aug 9, 2012, 1:04:13 PM8/9/12
to pl...@googlegroups.com
Ok, I tested the maven install apk output and it work on my Samsung Galaxy SII, PlayN 1.4.   

APK loads and renders the first menu page, I had to copy 
     images,music, etc... from  myproject\core\src\main\java\kyght\myproject\resources
     to
      myproject\android\target\classes\kyght\myproject\resources

Thanks Jon Gill 
Reply all
Reply to author
Forward
0 new messages