본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 Twitter의 @FirefoxSupport 및 Reddit의 /r/firefox 채널을 활용하세요.

Mozilla 도움말 검색

고객 지원 사기를 피하세요. 저희는 여러분께 절대로 전화를 걸거나 문자를 보내거나 개인 정보를 공유하도록 요청하지 않습니다. "악용 사례 신고"옵션을 사용하여 의심스러운 활동을 신고해 주세요.

자세히 살펴보기

Firefox 91 Linux - WebGL stopped working

more options

WebGL has stopped working. I think this has happened with Firefox 91.

For example, http://webglsamples.org/aquarium/aquarium.html gives the error Status: WebGL creation failed: * tryNativeGL () * Exhausted GL driver options. (FEATURE_FAILURE_WEBGL_EXHAUSTED_DRIVERS)

I'm running Firefox on Debian on ChromeOS.

On about:support, WebGL 1 Driver Renderer: Red Hat -- virgl WebGL 2 Driver Rendered: Red Hat -- virgl

There are no WebGL errors in about:support

I've tried the Troubleshoot Mode but that made no difference.

WebGL has stopped working. I think this has happened with Firefox 91. For example, http://webglsamples.org/aquarium/aquarium.html gives the error Status: WebGL creation failed: * tryNativeGL () * Exhausted GL driver options. (FEATURE_FAILURE_WEBGL_EXHAUSTED_DRIVERS) I'm running Firefox on Debian on ChromeOS. On about:support, WebGL 1 Driver Renderer: Red Hat -- virgl WebGL 2 Driver Rendered: Red Hat -- virgl There are no WebGL errors in about:support I've tried the Troubleshoot Mode but that made no difference.

선택된 해결법

I'm using Debian on ChromeOS, which I discovered is using the Wayland protocol, not X11.

My solution was to set the environment variable MOZ_ENABLE_WAYLAND=1 then Firefox uses Wayland and not xwayland. This has fixed the webgl issue, or at least sidestepped it - as webgl now works. It's also fixed some other cosmetic issues with Firefox itself.

문맥에 따라 이 답변을 읽어주세요 👍 0

모든 댓글 (14)

more options

You can try to force WebGL and set this pref to true on the about:config page.

  • webgl.force-enabled

You can open the about:config page via the location/address bar. You can click the button to "Accept the Risk and Continue".

more options

cor-el said

You can try to force WebGL and set this pref to true on the about:config page.

Confirming I've got webgl.force-enabled set to true, but the WebGL errors still occurs.

more options

It works for me either way. see screenshot Can you try downloading a separate copy of Firefox and run it from the folder to see what happens?

글쓴이 jonzn4SUSE 수정일시

more options

I downloaded a fresh copy of Firefox and ran that, it had the same problem.

I did notice than when started from the command line there's an error - `[GFX1-]: glxtest: libpci missing` . I installed the libpci3 package using apt, and this seemed to fix the missing libpci error, but doesn't fix the overall problem of webgl not working.

more options

On Firefox 92 now, this still an issue.

I found this bug, so it seems it's not just me.. https://bugzilla.mozilla.org/show_bug.cgi?id=1725148

글쓴이 Rob 수정일시

more options

선택된 해결법

I'm using Debian on ChromeOS, which I discovered is using the Wayland protocol, not X11.

My solution was to set the environment variable MOZ_ENABLE_WAYLAND=1 then Firefox uses Wayland and not xwayland. This has fixed the webgl issue, or at least sidestepped it - as webgl now works. It's also fixed some other cosmetic issues with Firefox itself.

more options

Sorry, didn't help here. I am not using Wayland at all. This should definitely also work on standard X11 with GLX as it does for Google Chrome.

more options

You can try to force WebGL and set this pref to true on the about:config page.

  • about:config => webgl.force-enabled = true

You can check whether WebGL errors are reported in the Graphics section on the "Help -> Troubleshooting Information" (about:support) page.

more options

cor-el said

You can try to force WebGL and set this pref to true on the about:config page.
  • about:config => webgl.force-enabled = true
You can check whether WebGL errors are reported in the Graphics section on the "Help -> Troubleshooting Information" (about:support) page.

Sorry, did all that already. Forcing WebGL on doesn't help. Neither does forcing Webrender on or off, but I suspect a connection with Webrender because WebGL broke in Firefox 91 which is when the switch to Webrender took place.

For the records, about:support doesn't show any issues whatsoever. It reports WebGL as supported (so do webglreport.com etc but with the caveat that it's "disabled".

The only indication that anything is wrong is in the web console which says:

Failed to create WebGL context: WebGL creation failed:

  • tryNativeGL ()
  • Exhausted GL driver options. (FEATURE_FAILURE_WEBGL_EXHAUSTED_DRIVERS)
more options

After spending most of my weekend on this annoying issue, I have finally got WebGL working again.

None of the webrender related options in about:config helped, neither did forcing EGL enabled (only added FEATURE_FAILURE_NO_DISPLAY to the error message above).

Going back to earlier versions of Firefox didn't work either because i) it would not accept my existing profile and ii) it simply didn't show any websites but instead made the tabs crash. Presumably an incompatibility with some newer library versions.

So, what did finally work? Enabling webgl.out-of-process did! Why? Good question. I was reluctant to even try it because all I found about it on Google seemed to say that it is unstable and will crash your tabs. That may still be true, I haven't tested more than a few minutes. But at least WebGL is back for me.

more options

Update: after enabling webgl.out-of-process as described above, my widevine plugin is now crashing every time, so no more video streaming for me ...

more options

Update: the most straightforward solution to the problem is setting dom.ipc.avoid-gtk=false See https://bugzilla.mozilla.org/show_bug.cgi?id=1725148

more options

manfred.kitzbichler said

Update: the most straightforward solution to the problem is setting dom.ipc.avoid-gtk=false See https://bugzilla.mozilla.org/show_bug.cgi?id=1725148

Thanks, this worked for me too. I can't change the 'chosen solution' from the wayland one. (Whilst the Wayland one fixed webgl (on my system) it made copying/pasting unreliable.)

글쓴이 Rob 수정일시

more options

For the record, this works too and is probably the least intrusive solution:

XAUTHORITY=$HOME/.Xauthority firefox

If XAUTHORITY is set on your system, you should be good.