www.jpct.net

jPCT-AE - a 3d engine for Android => Bugs => Topic started by: abed2000abed on December 07, 2012, 03:11:39 pm

Title: HelloShader crashed error
Post by: abed2000abed on December 07, 2012, 03:11:39 pm
Dear,
This is first post for me here , once i try to check HelloShader sample i got this error below, can you please help me :)


12-07 17:09:03.854: I/jPCT-AE(326): onCreate
12-07 17:09:03.943: I/jPCT-AE(326): onResume
12-07 17:09:04.353: D/libEGL(326): egl.cfg not found, using default config
12-07 17:09:04.353: D/libEGL(326): loaded /system/lib/egl/libGLES_android.so
12-07 17:09:04.383: W/dalvikvm(326): threadid=9: thread exiting with uncaught exception (group=0x40015560)
12-07 17:09:04.473: E/AndroidRuntime(326): FATAL EXCEPTION: GLThread 10
12-07 17:09:04.473: E/AndroidRuntime(326): java.lang.IllegalArgumentException: No configs match configSpec
12-07 17:09:04.473: E/AndroidRuntime(326):    at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:763)
12-07 17:09:04.473: E/AndroidRuntime(326):    at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:919)
12-07 17:09:04.473: E/AndroidRuntime(326):    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1264)
12-07 17:09:04.473: E/AndroidRuntime(326):    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)
12-07 17:09:04.683: I/jPCT-AE(326): onPause
12-07 17:09:05.483: I/jPCT-AE(326): onStop
12-07 17:09:15.144: I/Process(326): Sending signal. PID: 326 SIG: 9
Title: Re: HelloShader crashed error
Post by: mbowen89 on December 07, 2012, 04:56:04 pm
Are you trying to run this from an emulator?
Title: Re: HelloShader crashed error
Post by: abed2000abed on December 07, 2012, 07:36:11 pm
yes this is from emulator :)
Title: Re: HelloShader crashed error
Post by: EgonOlsen on December 07, 2012, 09:45:36 pm
The emulator doesn't run shaders until you enable hardware support for it. But in your case, it didn't even get this far, because it can't find a proper config for the selected mode. Get a real device, the emulator is pretty crappy anyway.
Title: Re: HelloShader crashed error
Post by: abed2000abed on December 08, 2012, 07:06:32 am
Thanks a lot i will do it :)
Title: Re: HelloShader crashed error
Post by: K24A3 on December 13, 2012, 03:05:11 pm
Add "-gpu on" to the VDM's command line.

Use an Intel image if possible, after installing Intel HAX

But OpenGL in the emulator is still lame and crashes very often, best to use a real device.