运行 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.
Here和 here Ubuntu Chromium 发行版可能存在问题,但似乎尚未修复。
我认为目前的解决方案是降级到工作版本并等待修复。
关于javascript - 三.js + Chrome 43 : Error creating WebGL context,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30955546/