java.lang.RuntimeException的:eglSwapBuffers失败:EGL_SUCCESS [英] java.lang.RuntimeException: eglSwapBuffers failed: EGL_SUCCESS

查看:504
本文介绍了java.lang.RuntimeException的:eglSwapBuffers失败:EGL_SUCCESS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在谷歌Play商店的OpenGL应用程序,我面临着每日例外:

I've an OpenGL application in the Google Play Store and I'm facing a daily exception:

java.lang.RuntimeException: eglSwapBuffers failed: EGL_SUCCESS
at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1085)
at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1043)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1369)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1123)

现在的问题是,我所有的智能手机,我不能重现此错误。我已经联系了谷歌的任何设备的信息,但他们有没有(所以他们说)。在异常的平台的信息被设置为其他。

The problem is, on all my smartphones I cannot reproduce this error. I've already contacted Google for any device info, but they have none (so they say). The platform info in the exception is set to "OTHER".

我发现,这个错误可能是从三星Galaxy Y软元件净值一些提示,我发现了一些建议,包括:

I found some hints on the net that this error could be from a Samsung Galaxy Y device, and I found some suggestions to include:

android:configChanges="orientation|screenSize"

在Android manifest文件,但这不起作用!

in the Android manifest file, but this does not work!

当然,我的的onPause和onResume我GL表面,如果没有,会产生其他eglSwapBuffer问题处理来实现。

And of course I've the onPause and onResume handling implemented for my GL surface which, if not, produces other eglSwapBuffer problems.

有没有人对这个问题的解决方案?

Has anybody a solution for this problem?

谢谢!

推荐答案

无解,只是发表评论

对于一些原因,我不能评论了previous职位,但我有一些看法,或许能有所帮助。

For some reasons I can't comment the previous posts but I've some observations which perhaps could help.

我们有同样的问题,并努力寻找解决办法......我们大大减少了我们的纹理尺寸和现在没有大于1024x900(不要忘了字体的)。但是,我们仍然需要一些的人,问题依然存在。 我们已经找出有问题的设备为以下物质:

We have the same problem and struggling to find a solution... We drastically reduced the size of our textures and now none is bigger than 1024x900 (don't forget the font ones). But we still need several ones and the problem is still there. We've pinpoint the problematic devices to the following ones:

Samsung Galaxy Y (GT-S5360 GT-S5360B GT-S5360L GT-S5363 GT-S5368 GT-S5369 SCH-I509 SCH-i509)
Samsung Galaxy Y Duos (GT-S6102 GT-S6102B GT-S6102E ivory)
Samsung Galaxy Ace (GT-S5830 GT-S5830B GT-S5830C GT-S5830D GT-S5830G GT-S5830L GT-S5830M GT-S5830T GT-S5830i GT-S5838 GT-S5839i GT-S6358 SCH-I619 SHW-M240S)
Samsung Galaxy Ace Duos (GT-S6802 GT-S6352 GT-S6802B SCH-I579 SCH-I589 SCH-i579 SCH-i589)
Samsung Galaxy Mini (GT-S5570 GT-S5570B GT-S5570I GT-S5570L GT-S5578 SGH-T499 SGH-T499V SGH-T499Y)
Samsung Galaxy Pocket (GT-S5300 GT-S5300B GT-S5302 GT-S5302B)

另外,报告错误两种口味不同的行号:

Also the error is reported in two flavors with different line numbers:

java.lang.RuntimeException: eglSwapBuffers failed: EGL_SUCCESS
    at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1099)
    at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1057)
    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1389)
    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1138)

java.lang.RuntimeException: eglSwapBuffers failed: EGL_SUCCESS
    at android.opengl.GLSurfaceView$EglHelper.throwEglException(GLSurfaceView.java:1085)
    at android.opengl.GLSurfaceView$EglHelper.swap(GLSurfaceView.java:1043)
    at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1369)
    at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1123)

我不知道如果我在这里非常有用,但在情况下,它可以帮助...

I don't know if I'm useful here, but in case it helps...

这篇关于java.lang.RuntimeException的:eglSwapBuffers失败:EGL_SUCCESS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆