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

时间:2022-02-16 15:06:47

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.

我在Cordova 3.4中移植了一个旧的大应用程序,从Eclipse到Android Studio,因为这个应用程序使用了一个现在已在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.

在build.gradle和settings.gradle出现一些问题后,App构建,运行并且我可以制作apk。在使用Android 5的设备上,一切正常。

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

在Nexus 9上使用Android 6,应用程序崩溃了,出现此错误的白屏:

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.

在互联网上我发现这个问题的答案很少,我试图解决图像问题,但问题没有解决。教程的错误“validate_display:255错误3008(EGL_BAD_DISPLAY)”对我来说不起作用。

2 个解决方案

#1


1  

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

在layout.xml中,也许您定义了一个GLSurfaceView或其他视图来放置您的图像。

Is it right?

这样对吗?

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

因此,如果您将图像放在整个屏幕上,则不会出现错误。

#2


0  

I found the answer about this.

我找到了答案。

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

在API 21之后,您将获得在API 19中未出现的GL线程问题。

Use this code, it will run fine!

使用此代码,它会运行正常!

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

#1


1  

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

在layout.xml中,也许您定义了一个GLSurfaceView或其他视图来放置您的图像。

Is it right?

这样对吗?

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

因此,如果您将图像放在整个屏幕上,则不会出现错误。

#2


0  

I found the answer about this.

我找到了答案。

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

在API 21之后,您将获得在API 19中未出现的GL线程问题。

Use this code, it will run fine!

使用此代码,它会运行正常!

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