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

最后都变了- 提交于 2019-12-20 12:36:37

问题


I'm porting an old big application in Cordova 3.4, from Eclipse to Android Studio because this application used a library that now has been updated in Android 6.

After some issues with build.gradle and settings.gradle, the App builds, runs and I can make the apk. Every thing works fine on devices with Android 5.

With Android 6 on Nexus 9 the app crashes, with a white screen with this error:

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

On Internet I've found few answers to this problem, I've tried to work on images resolution, but the problem is not solved. The post Error “validate_display:255 error 3008 (EGL_BAD_DISPLAY)” by Tutorial does not work for me.


回答1:


In layout.xml,maybe u defined a GLSurfaceView or other View to put your image in.

Is it right?

So if u put the image to your whole screen, the error wouldn`t be occured.




回答2:


I found the answer about this.

After API 21,you would get GL thread problem which not occured in API 19.

Use this code, it will run fine!

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


来源:https://stackoverflow.com/questions/37072215/e-libegl-validate-display255-error-3008-egl-bad-display-on-nexus-9-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!