javascript - 三.js + Chrome 43 : Error creating WebGL context

标签 javascript google-chrome

运行 this 时出现“创建 WebGL 上下文时出错” 错误Ubuntu Linux 下 chrome 43 中的脚本。它在 Firefox 稳定版本的 chrome 42 ad 中运行得非常好。这是堆栈跟踪:

Error creating WebGL context.THREE.WebGLRenderer @ three.min.js:517(anonymous function) @ pen.js:24(anonymous function) @ pen.js:120

请注意,我在 Chrome 版本 43 中的示例脚本以及 Threejs.org 上的所有示例中都遇到了此错误。产生此错误的脚本使用 Threejs r70 和 r71

编辑:我刚刚注意到这个错误是 ubuntu linux 上的 chromium 包特有的,chrome 工作正常。

如何解决这个问题?

最佳答案

我在 Chromium 43.0.2357.81 Ubuntu 14.04(64 位)上得到了同样的结果,但 Chrome 43 没问题。这似乎是一个错误,here是 Chromium bug tracker 中关于它的一个问题。 Chromium 开发人员表示:

We have no control over which Chromium revision Ubuntu decides to pull into their distribution. It's entirely possible they pulled a broken revision. Sorry, but this is an issue you'll have to take up with Canonical.

Herehere Ubuntu Chromium 发行版可能存在问题,但似乎尚未修复。

我认为目前的解决方案是降级到工作版本并等待修复。

关于javascript - 三.js + Chrome 43 : Error creating WebGL context,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30955546/

相关文章:

javascript - 如何让 JavaScript 更改 iframe 的 src?

javascript - MDN 上的测试 JavaScript 示例

html - Windows 中的 Chrome 表格列宽未定义或浏览器版本之间不一致

javascript - 配置错误 : Missing Region in Config (AWS)

javascript - 在组件内 react :Unable to get this. state.name

google-chrome - Chrome 扩展获取当前主题背景

html - 为什么浏览器不创建相应的 html 代码来打开音频文件

javascript - 在 chrome 中加载大图像时出现 “Aw Snap” 错误

javascript - 处置图像对象

javascript - 如何从一开始就在应用程序中添加 vuetify?