gpt4 book ai didi

javascript - Canvas 在 Android 5 上随机显示为黑色

转载 作者:行者123 更新时间:2023-11-30 00:30:30 25 4
gpt4 key购买 nike

我们正在 Apache Cordova 中开发一个网络应用程序。作为 javascript 库,我们使用 jQuery、jQuery Mobile 和 Charts.js

现在 Android 5 中发生了一些非常奇怪的事情。有时,如果没有清晰的模式,图形不会显示,我们会​​看到 Canvas 应该在的地方出现黑色区域​​。如果我们刷新页面,或者如果我们向下滚动以覆盖 Canvas 然后向上滚动以显示它,一切都会再次正常。当错误发生时,logcat 说:

E/chromium(21275): [ERROR:gles2_cmd_decoder.cc(6309)] [.Parent-Compositor-0xb4b6df60]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete'
E/chromium(21275): [ERROR:gles2_cmd_decoder.cc(6309)] [.Parent-Compositor-0xb4b6df60]RENDER WARNING: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete'

最佳答案

周末有一个 WebView 更新,现在我们的两个应用程序的问题已经消失。 dariosalvi 可能会发现图表现在也运行良好。 (Android 5 的一个新特性是 WebView 的更新独立于操作系统。)

关于javascript - Canvas 在 Android 5 上随机显示为黑色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29754737/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com