安卓Genymotion虚拟机的logcat运行进入无限循环

16

每当我在Genymotion (V2.3)模拟器上运行我的应用程序(任何Android版本),它都会陷入无限循环,并且这个错误会不断地在logcat中打印:

11-10 04:33:55.542: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:55.902: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:55.962: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.014: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.066: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.114: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.166: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.210: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.266: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.314: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.362: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.410: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.470: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.518: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.562: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.614: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.662: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.714: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)
11-10 04:33:56.750: E/eglCodecCommon(2775): **** ERROR unknown type 0x0 (glSizeof,73)

我的应用程序运行良好,但无法在logcat中打印任何东西,即使在出现异常的情况下也无法读取其他任何信息。我不知道这是什么原因或是什么导致了它。我试图在网上找到解决方法,但没有成功。

更新: 我发现每当我在我的Activity中显示横幅广告(来自Google admob sdk或Leadbolt sdk)时,就会出现这种情况。

有什么指针或建议吗?


你解决了吗? - Tolgay Toklar
不,我没有!这非常恼人。 - rgamber
2个回答

7

我认为您的Genymotion模拟器无法访问主机GPU。由于您的页面有一些图形,因此OpenGL将无法工作。

您可以通过在AndroidManifest.xml中添加android:hardwareAccelerated="false"来解决此问题。


29
为避免Genymmotion logcat消息而在整个应用程序中关闭硬件加速功能,这是否是一个好主意并不确定。 - Greg Ennis
将会有一些选项来提供GPU访问。 - Sarath DR

1

这没问题。只需忽略这些消息。

根本原因是在Genymotion中勾选了“使用GPU主机”或类似选项导致的。如果禁用此选项,则错误将消失,但性能不佳(或更差)。

参考:如何解决webview错误


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接