简体   繁体   English

Three.js + Chrome 43:创建WebGL上下文时出错

[英]Three.js + Chrome 43: Error creating WebGL context

I get an "Error creating WebGL context" error when running this script in chrome 43 under Ubuntu Linux. 在Ubuntu Linux下以chrome 43运行脚本时,出现“创建WebGL上下文错误错误。 It worked perfectly fine in chrome 42 ad in the stable release of Firefox. 在稳定版本的Firefox中,它在chrome 42广告中的效果非常好。 Here's the stack trace: 这是堆栈跟踪:

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

Note that I get this error in Chrome release 43 on the example script, but also on all the examples on threejs.org. 请注意,我在Chrome版本43的示例脚本中以及在threejs.org的所有示例中都遇到了此错误。 The scripts prodcing this error use threejs r70 and r71 导致此错误的脚本使用threejs r70和r71

EDIT: I just noticed that this bug is specific to the chromium package on ubuntu linux, chrome works fine. 编辑:我刚刚注意到,此错误特定于ubuntu linux上的chrome程序包,chrome可以正常工作。

How do I fix this? 我该如何解决?

I get the same thing for Chromium 43.0.2357.81 Ubuntu 14.04 (64-bit), but Chrome 43 is fine. 对于Chromium 43.0.2357.81 Ubuntu 14.04(64位),我得到的是相同的东西,但Chrome 43很好。 It seems to be a bug, here is an issue in Chromium bug tracker about it. 这似乎是一个错误, 是Chromium错误跟踪程序中的一个问题。 Chromium developer says: 铬开发商说:

We have no control over which Chromium revision Ubuntu decides to pull into their distribution. 我们无法控制Ubuntu决定加入哪个Chromium版本。 It's entirely possible they pulled a broken revision. 他们完全有可能拉扯一个残破的修订版。 Sorry, but this is an issue you'll have to take up with Canonical. 抱歉,但这是Canonical必须解决的问题。

Here and here are possible issues for Ubuntu Chromium distribution, but it seems to be not fixed yet. 这里这里都是Ubuntu Chromium发行版的可能问题,但似乎尚未解决。

I think for now the solution will be to downgrade to a working version and wait for a fix. 我认为目前的解决方案是将其降级为工作版本并等待修复。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM