Open Bug 1730343 Opened 4 years ago Updated 3 years ago

Second-long freezes with WebGL on nvidia

Categories

(Core :: Graphics: CanvasWebGL, defect)

Firefox 92
defect

Tracking

()

UNCONFIRMED

People

(Reporter: drmccoy, Unassigned)

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0

Steps to reproduce:

Open up any WebGL website, for example https://webglsamples.org/aquarium/aquarium.html , and move the browser window around

Actual results:

The whole display freezes for several seconds, then continues as normal afterwards. The freezes happen intermittently, but especially when moving the browser window while the WebGL content is display.

The Xorg.log shows "(WW) NVIDIA: Wait for channel idle timed out." for each freeze.

Expected results:

The system should not freeze.


Detailed information with specs:

I’ve got intermittent freezes on my laptop when Firefox displays WebGL content in Firefox (for example, any of the WebGL samples you’ll find with a quick googling). A definite trigger for these freezes are moving the browser window while the WebGL content is displayed. The whole system (or at least, the display side of it) freezes for a few seconds, then continues normally afterwards, until it freezes again after some time. The Xorg.log shows “(WW) NVIDIA: Wait for channel idle timed out.” for each freeze.

This happens only in Firefox, not in Chrome, and also not with, for example, glxgears. So this might be a Firefox issue or a nvidia issue Firefox triggers. It’s not a Firefox profile issue, because it also happens in a fresh Firefox profile.

It also only happens on my laptop and not on my desktop system. The laptop is a Thinkpad E570 with an NVIDIA Corporation GM107M [GeForce GTX 950M], and from what I understand, the display is hooked up the on-CPU Intel GPU, so it might be a PRIME issue.

The nvidia-drivers version is 470.63.01, Xorg 1.20.13, Linux kernel 5.14.2, all running on a Gentoo distribution. The desktop system, where the problem is not occuring, is identical. The Firefox version is 92.0, but this has happened with at least 91 and 90 too.

Full system specs: https://gist.github.com/DrMcCoy/d5e77fa937572e9d15c1a1e3505a73c4

The Bugbug bot thinks this bug should belong to the 'Core::Canvas: WebGL' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Canvas: WebGL
Product: Firefox → Core

The severity field is not set for this bug.
:jgilbert, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(jgilbert)

Does this problem still occur?
If yes, please reproduce it, then open about:support in your address bar, click on "Copy text to clipboard" and paste it here. Thanks!

Flags: needinfo?(drmccoy)

Yes, the issue still happens with Firefox 93.0. Added the output of about:support after it happened in a fresh profile.

Flags: needinfo?(drmccoy)

Can this problem be fixed by starting Firefox with MOZ_X11_EGL=1 environment variable? $ MOZ_X11_EGL=1 firefox

No, the issue still happens with MOZ_X11_EGL=1.

My window manager, Enlightenment DR16, keeps rendering the GL stuff while I'm moving the window, so it might be partially related to the GL contents being moved across the display, maybe. The lock-ups do happen with increased frequency when I move the window, or switch to a different virtual desktop (which "slides" the contents of the desktop over to). But the lock-up also happen if I'm not doing anything, not even moving the mouse, just less frequent (maybe once every minute or so).

I would guess that this is an interaction between Firefox and Enlightenment.
Can you record a profile that includes some of these hitches? Maybe especially with moving the window. https://profiler.firefox.com/

Severity: -- → S3
Flags: needinfo?(jgilbert) → needinfo?(drmccoy)

Okay, I have two recordimgs here, each with and without screenshots (since the ones with screenshots are much larger).

The first one has a couple of these hitches, all from either moving the window or, near the end, sliding to another virtual desktop.
The second one has one "unprovoked" hitch.

Not sure what the size limits for attaching files here is, so I uploaded them here instead:
https://drmccoy.de/zeugs/Firefox%202021-10-23%2010.56%20profile.json.gz
https://drmccoy.de/zeugs/Firefox%202021-10-23%2010.56%20profile%20screenshots.json.gz
https://drmccoy.de/zeugs/Firefox%202021-10-23%2011.01%20profile.json.gz
https://drmccoy.de/zeugs/Firefox%202021-10-23%2011.01%20profile%20screenshots.json.gz

Flags: needinfo?(drmccoy)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: