No EGLConfig found

  ... discussions about development with the GLES2 branch of AndEngine.

No EGLConfig found

Postby alexandernst » Sat Dec 24, 2011 6:12 pm

I just switched to the new GLES2 version of AndEngine, cloned all the repos and ran the AndEngineExamples demo.

I get to see the list with the available demos inside the application, but choosing any of the demos just throws this error on the console:

12-24 18:09:07.093: D/libEGL(280): egl.cfg not found, using default config
12-24 18:09:07.093: D/libEGL(280): loaded /system/lib/egl/libGLES_android.so
12-24 18:09:07.153: W/dalvikvm(280): threadid=8: thread exiting with uncaught exception (group=0x4001d800)
12-24 18:09:07.183: E/AndroidRuntime(280): FATAL EXCEPTION: GLThread 9
12-24 18:09:07.183: E/AndroidRuntime(280): java.lang.IllegalArgumentException: No EGLConfig found!
12-24 18:09:07.183: E/AndroidRuntime(280): at org.andengine.opengl.view.ConfigChooser.chooseConfig(ConfigChooser.java:144)
12-24 18:09:07.183: E/AndroidRuntime(280): at android.opengl.GLSurfaceView$EglHelper.start(GLSurfaceView.java:916)
12-24 18:09:07.183: E/AndroidRuntime(280): at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1246)
12-24 18:09:07.183: E/AndroidRuntime(280): at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1116)


Why is that? How can I fix it?
alexandernst
 
Posts: 28
Joined: Fri Dec 16, 2011 10:22 pm

Re: No EGLConfig found

Postby Nicolas Gramlich » Sat Dec 24, 2011 6:23 pm

Hi,

what device are you on?

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: No EGLConfig found

Postby alexandernst » Sat Dec 24, 2011 6:25 pm

Hi. I tried the examples using Android 2.2, 2.3.3 and 4.0 emulator, and also on a HTC Desire HD with Cyanogen7. All of them throw the same error.
alexandernst
 
Posts: 28
Joined: Fri Dec 16, 2011 10:22 pm

Re: No EGLConfig found

Postby Nicolas Gramlich » Sat Dec 24, 2011 6:26 pm

Hi,

the emulator isn't supported.
It does work on my stock nexus (vanilla android 2.3.6). I don't know what Cyanogen would do differently. :S

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: No EGLConfig found

Postby alexandernst » Sat Dec 24, 2011 6:35 pm

By "emulator" you mean the Android virtual machine/device that launches from eclipse? Because that's what I'm using to test my games. Isn't that supported?
alexandernst
 
Posts: 28
Joined: Fri Dec 16, 2011 10:22 pm

Re: No EGLConfig found

Postby alexandernst » Sat Dec 24, 2011 6:55 pm

Just to be sure, I deleted everything related with AndEngine from Eclipse, then I restarted it and cloned again all the repos. After cloning everything the only thing that I changed was the Java Compiler Compilance from 1.7 to 1.6 for each of the repos, and I also created a "res" folder in the project that were missing that folder.

So far I had no errors (just some warnings about unused vars, etc...) and I tried to lauch the AndEngine Examples using a 2.3.3 AVD. I got the same result.
alexandernst
 
Posts: 28
Joined: Fri Dec 16, 2011 10:22 pm

Re: No EGLConfig found

Postby digiw0rx » Sat Dec 24, 2011 7:35 pm

The emulator only allows GLES 1 as far as i know.

I have a San Francisco with Cynogen and all the examples work fine for me.

Have you tried building the Jar for each Repo, as i documented in the Announcement thread, that is how i got mine to work.
digiw0rx
 
Posts: 63
Joined: Mon Oct 24, 2011 2:12 pm

Re: No EGLConfig found

Postby alexandernst » Sat Dec 24, 2011 7:55 pm

Yes, I gat all the jar's and I can run the AndEngine demo on my phone, so I see the demos inside. I mean, I see the "Text" category, the "Sound" category, the "Psychics" category, etc... but when I pick any of the demos I get that error. That happens with all the examples in all the devices I tested.

And as I said, I don't get any errors in Eclipse (so, everything is apparently fine).
alexandernst
 
Posts: 28
Joined: Fri Dec 16, 2011 10:22 pm

Re: No EGLConfig found

Postby Nicolas Gramlich » Sun Dec 25, 2011 9:01 am

Hi,

alexandernst wrote:Yes, I gat all the jar's and I can run the AndEngine demo on my phone, so I see the demos inside. I mean, I see the "Text" category, the "Sound" category, the "Psychics" category, etc... but when I pick any of the demos I get that error. That happens with all the examples in all the devices I tested.

And as I said, I don't get any errors in Eclipse (so, everything is apparently fine).


Hm, sounds like yet another reason not to use a modded device. :(

I just updated the ConfigChooser with a multipass approach, loosening the config to possible at least a not so suitable one.

Best Regards,
Nicolas
Nicolas Gramlich
Site Admin
 
Posts: 1734
Joined: Mon Jun 07, 2010 6:20 pm
Location: Schriesheim, Germany

Re: No EGLConfig found

Postby pep_dj » Wed Dec 28, 2011 3:12 pm

The emulator is the only way I have to test multiple resolutions :(

There is another way to test multiple resolutions?? or there is any way to run the emulator using GLES2?? :cry:
Image
pep_dj
 
Posts: 170
Joined: Fri Nov 12, 2010 9:05 pm

Next

Return to GLES2

Who is online

Users browsing this forum: Google [Bot], JamesTran and 78 guests