-1

I have an app in progress that includes shaders for Android 2.2. When I install the app on my HTC Desire it runs perfectly but when I run it from (the correct emulator with GPU enabled) the app always force closes and I do not understand why. I do not know how to find the issue or where to find some extra information to give you. If some is needed let me know. The app is a rendering grass shader (currently only have 2 triangles setup). But I have GPU emulation enabled on the VD

11-19 19:53:27.291: D/libEGL(274): egl.cfg not found, using default config
11-19 19:53:27.291: D/libEGL(274): loaded /system/lib/egl/libGLES_android.so
11-19 19:53:27.321: W/dalvikvm(274): threadid=7: thread exiting with uncaught exception (group=0x4001d800)
11-19 19:53:27.361: E/AndroidRuntime(274): FATAL EXCEPTION: GLThread 8
11-19 19:53:27.361: E/AndroidRuntime(274): java.lang.IllegalArgumentException: No configs match configSpec
11-19 19:53:27.361: E/AndroidRuntime(274):  at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:760)
11-19 19:53:27.361: E/AndroidRuntime(274):  at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:916)
11-19 19:53:27.361: E/AndroidRuntime(274):  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1246)
11-19 19:53:27.361: E/AndroidRuntime(274):  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)
11-19 19:53:29.841: I/Process(274): Sending signal. PID: 274 SIG: 9
John Demetriou
  • 4,093
  • 6
  • 52
  • 88

2 Answers2

1

Are you using camera? Seems similar to this one:

" java.lang.IllegalArgumentException: No configs match configSpec " While opening Camera Intent

Camera is not support in Android emulator so don't worry about it.

If you are trying to run OpenGL, also not supported by the amulator.

Please tell us what kind of app you are working on!

Community
  • 1
  • 1
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
  • no I am not, I am simply trying to create a shader (currently only have two triangles) and I have gpu emulation enabled – John Demetriou Nov 19 '12 at 18:35
  • I have no experience with OpenGl, but it seems difficult to make it work in the emulator... Cannot help you more, tahn wjat I already did. sorry – Waza_Be Nov 21 '12 at 10:09
0

As it seems. Even though GPU emulation is something that can be turned on, OpenGL ES is not something that can run on an emulator. It is (as of the time of this answer) impossible to execute a shader in an emulator so an app with shaders cannot run on an emulator

Update: OpenGL ES 2.0 is supported in the emulator from Android 4 onwards, when Host GPU option is turned on.

HRJ
  • 17,079
  • 11
  • 56
  • 80
John Demetriou
  • 4,093
  • 6
  • 52
  • 88