Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emulator not running OpenGL app which messages "Unfortunately, OpenGL ES 2.0 Basic has stopped"

I have obtained an example of OpenGl through the developer site.

My problem is that it doesn't run the application.

Here is my logcat:

10-17 14:43:12.574: E/Trace(684): error opening trace file: No such file or directory (2)
10-17 14:43:13.523: D/libEGL(684): Emulator without GPU support detected. Fallback to software renderer.
10-17 14:43:13.523: D/libEGL(684): loaded /system/lib/egl/libGLES_android.so
10-17 14:43:13.573: I/Choreographer(684): Skipped 44 frames!  The application may be doing too much work on its main thread.
10-17 14:43:13.643: D/gralloc_goldfish(684): Emulator without GPU emulation detected.
10-17 14:43:13.653: W/dalvikvm(684): threadid=11: thread exiting with uncaught exception (group=0x40a13300)
10-17 14:43:13.653: E/AndroidRuntime(684): FATAL EXCEPTION: GLThread 78
10-17 14:43:13.653: E/AndroidRuntime(684): java.lang.IllegalArgumentException: No configs match configSpec
10-17 14:43:13.653: E/AndroidRuntime(684):  at android.opengl.GLSurfaceView$BaseConfigChooser.chooseConfig(GLSurfaceView.java:863)
10-17 14:43:13.653: E/AndroidRuntime(684):  at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:1024)
10-17 14:43:13.653: E/AndroidRuntime(684):  at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1401)
10-17 14:43:13.653: E/AndroidRuntime(684):  at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
10-17 14:43:14.233: I/Choreographer(684): Skipped 83 frames!  The application may be doing too much work on its main thread.
10-17 14:43:16.963: I/Choreographer(684): Skipped 260 frames!  The application may be doing too much work on its main thread.
10-17 14:43:16.963: I/Process(684): Sending signal. PID: 684 SIG: 9

What I have tried:

  • I searched online and found someone able to do it by setting up GPU emulation as yes
  • Updated my AVD emulator

How my emulator is setup:

  • Target-4.1.2. - API Level 16
  • ARM(armeabi-v7a)
  • Size: 1000mib
  • Skin: Default(WVGA800)
  • Hardware: MaxVm:48 ; Abstracted LCD density:240; Device ram size:512; GPU emulation:yes;

Can someone help me fix this issue?

I want to add that I am using Eclipse and I tried re-installing everything(Eclipse and SDK) still no luck.

like image 201
Akyl Avatar asked Oct 17 '12 18:10

Akyl


1 Answers

Emulator GPU pass-through is not stable, I recommend using a real device. It randomly crashed my OpenGL ES 2.0 apps on both Win7 (Intel GPU) and Ubuntu (nVidia GPU).

As you see it reports that it can't detect OpenGL and falls back to software renderer.

like image 78
keaukraine Avatar answered Oct 21 '22 11:10

keaukraine