Android OpenGL内容在某些设备上不起作用:eglMakeCurrent失败,并且glDrawArrays:glError 0x505

问题描述

因此,我在自己的应用中使用了非常相似的Google Grafika Sample官方代码进行视频处理:Luxon GitHub issue #649 Escaping single quote

我测试了此代码在Nexus 5X,小米S2,三星S9设备上是否可以正常工作,但Firebase Crashlytics报告了其他设备上的错误(崩溃),通常是华为设备和A系列的三星(A20,A30等)。 )和其他一些

因此,我根本无法在测试设备上重现此错误,并且我没有Firebase Crashlytics报告的设备。

那么这可能是设备问题而不是代码问题吗?它来自Google的官方样本,因此一切都应该没问题,但是...

有人遇到同样的问题吗?此类设备有解决方案吗?

因此报告了两个错误

在这一行(glutil.checkGlError("glDrawArrays");https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/ContinuousCaptureActivity.java

或在此行(.makeCurrent();https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/gles/Texture2dProgram.java#L335

https://github.com/google/grafika/blob/master/app/src/main/java/com/android/grafika/ContinuousCaptureActivity.java#L472

enter image description here

enter image description here

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)