E / libEGL: validate_display: 255 error 3008 (EGL_BAD_DISPLAY) on Nexus 9 + Android 6

I am porting an old large application in Cordova 3.4, from Eclipse to Android Studio, because this application used the library, which is now updated on Android 6.

After some problems with build.gradle and settings.gradle, the application builds, works, and I can make apk. Everything works fine on devices with Android 5.

From Android 6 to Nexus 9, the application crashes with a white screen with this error:

E/libEGL: validate_display:255 error 3008 (EGL_BAD_DISPLAY) 

On the Internet, I found several answers to this problem, I tried to work on image resolution, but the problem was not solved. The Error message "validate_display: 255 error 3008 (EGL_BAD_DISPLAY)" from the tutorial does not work for me.

+9
android eclipse android-6.0-marshmallow android-studio cordova display
source share
3 answers

In layout.xml, you may have defined GLSurfaceView or another view to place your image.

Is it correct?

So, if u put the image in full screen, there will be no error.

+1
source share

I found an answer about this.

After API 21, you get a GL thread issue that did not occur in API 19.

Use this code, it will work fine!

  XXX.queueEvent(new Runnable() { @Override public void run() { //ADD YOUR FUNCTION }}); 
0
source share

I had the same problem when I tried to load a webview in a dialog. If I load webview for activity, this works well.

0
source share

All Articles