Open Bug 1515253 Opened 2 years ago Updated 15 days ago

Corrupted window after suspend/resume on Nvidia with Webrender

Categories

(Core :: Graphics: WebRender, defect, P3)

66 Branch
x86_64
Linux
defect

Tracking

()

Tracking Status
firefox66 --- disabled
firefox67 --- disabled
firefox68 --- disabled
firefox69 --- disabled

People

(Reporter: mar.kolya, Unassigned)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(4 files)

Attached image shot.png
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

Use current firefox-nightly
Use laptop with Ubuntu 18.10, fully updated, latest Nvidia drivers (415.23)
Have webrender enabled
Suspend/resume my laptop


Actual results:

Firefox window comes corrupted after resume. Text is replaced with white/grey blocks. Some elements become transparent.
Usually FF recovers after minimizing/maximizing window.


Expected results:

There should be no corruption on the screen.
This is likely related to https://bugzilla.mozilla.org/show_bug.cgi?id=1492580
Blocks: wr-linux
Component: Untriaged → Graphics: WebRender
OS: Unspecified → Linux
Priority: -- → P3
Product: Firefox → Core
Hardware: Unspecified → x86_64
See Also: → 1492580, 1491196
Blocks: wr-nv-linux
No longer blocks: wr-linux

Some links about this topic:
https://github.com/elementary/gala/pull/330

The proprietary Nvidia drivers discard FBOs when the system suspends from resume (maybe on all sorts of modesets?).

https://bugzilla.gnome.org/show_bug.cgi?id=739178
https://gitlab.gnome.org/GNOME/gnome-shell/issues/1084

See Also: → 1500520

Ubuntu 19.04, GTX 1060, fresh profile with gfx.webrender.all;true.

Attached file aboutsupport.txt

Switched to an existing about:support tab after making the screenshot and copied everything.
This failure was shown until hitting F5:

WebGL 1 Driver Renderer: WebGL creation failed: * tryNativeGL * Exhausted GL driver options.

Severity: normal → major
Status: UNCONFIRMED → NEW
Has STR: --- → yes
Ever confirmed: true

Usually FF recovers after minimizing/maximizing window.

Also confirmed.

Severity: major → normal
See Also: → 1506017
See Also: → 1514148
See Also: → 1596577

Same issue observed after installing the nvidia proprietary driver. Ubuntu 19.10.

nvidia-driver-435
Linux 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
firefox --version
Mozilla Firefox 75.0

This is fully consistent, after every resume from hibernation.
The firefox window shows up almost transparent, and without window controls, so I can't try the minimize/unminimize trick easily
(note to self: try winkey+alt+down_arrow to minimize, or ctrl-alt-d)

(In reply to Ari from comment #6)

Same issue observed after installing the nvidia proprietary driver. Ubuntu 19.10.

nvidia-driver-435
Linux 5.3.0-46-generic #38-Ubuntu SMP Fri Mar 27 17:37:05 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
firefox --version
Mozilla Firefox 75.0

This is fully consistent, after every resume from hibernation.
The firefox window shows up almost transparent, and without window controls, so I can't try the minimize/unminimize trick easily
(note to self: try winkey+alt+down_arrow to minimize, or ctrl-alt-d)

I used this fix mentioned in this bug report: https://bugs.archlinux.org/task/61889 and it's been working for me for about a year now.

(In reply to odzinic from comment #7)

I used this fix mentioned in this bug report: https://bugs.archlinux.org/task/61889 and it's been working for me for about a year now.

I'm not sure specific fix from that link you are referring to.

I've tried 'options nvidia NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1' one and it doesn't seem to help.
Unfortunately I might not be able to try KDE specific ones since I'm using Mate.

Depends on: 1628685

I was seeing this as well. Notably, the effect became much worse in the past ~3 days. Previously, resizing the window was enough to get everything refreshed, so it wasn't hugely annoying. Now the missing font glyphs persist through resizes, so it's really becoming a blocker for any use on that platform (proprietary NV on Linux).

I can confirm the issue with FireFox 78.0.2 (64-bit) on Ubuntu 20.04 with an NVIDIA 1650GTX. Adding the options "NVreg_RegisterForACPIEvents=1 NVreg_EnableMSI=1" also did not help for me.

I noticed that after some browsing (incl. creating and closing tabs) all the fonts in the tab-bar get restored.

Same thing here, module option fix does not work either. Need to restart Firefox or continue to browse and it slowly readjusts itself.

ArchLinux - Linux desktop 5.7.9-arch1-1 #1 SMP PREEMPT Thu, 16 Jul 2020 19:34:49 +0000 x86_64 GNU/Linux

  • nvidia-utils 450.57-2
  • nvidia-dkms 450.57-2
  • firefox 78.0.2-1

Not that it matters, DE / WM is XFCE4 / XFWM.

Has anyone tried ESR, or upstream test releases?

Attached file about:support
I can still repro on the 2020-08-14 nightly, after resume from suspend to RAM, with Nvidia drivers 440.100.

```

I can also reproduce, with NVidia Quadro M2000M and driver version 450.66.

I have the same issue.

Starting a compositor (like picom) and killing it in an instant fixes the issue.

Can reproduce in 20 Linux distros.
Nvidia: 440,450
Kernel: 5.4,5.5,5.6,5.7,5.8
Desktop: kde,gnome,xfcm,cinnamon
Don't forget also framerate drops to 60 and scrolling will be uneasy to eyes. On Windows, app will crash instead.

It seems Firefox has parity with Chrome! ;) https://twitter.com/fasterthanlime/status/1303969675953438720
(Edit: For the moment, it's not expected to go away. It occurs with the proprietary Nvidia driver - driver version or hardware model don't seem to matter. Chrome is likewise affected.)

I can also reproduce this, using driver version 455.23.04 on Firefox 81.0.1

After RTFM at https://download.nvidia.com/XFree86/Linux-x86_64/455.28/README/powermanagement.html#SystemdConfigur74e29 and following the instructions (e.g. set NVreg_PreserveVideoMemoryAllocations=1 and sudo systemctl enable ...) I was able to restore my Firefox window successfully after resume.

(In reply to Oliver from comment #18)

After RTFM at https://download.nvidia.com/XFree86/Linux-x86_64/455.28/README/powermanagement.html#SystemdConfigur74e29 and following the instructions (e.g. set NVreg_PreserveVideoMemoryAllocations=1 and sudo systemctl enable ...) I was able to restore my Firefox window successfully after resume.

nice. yet another nvidia tweak to my growing collection. those services didn't work in manjaro (susped frozen -> hard reset), but the modprobe setting indeed stopped corrupting firefox window. still sometimes it become completely transparrent (just frame), and in that case i refresh it with kwin --replace. in my growing suspend/resume linux collection, there's also one firefox tweak: set layout.frame_rate to your target framerate. because framerate drops after resume. it is also low by default in all distros, which you initially tweak with gfx.webrender.all=true.

Just updated to 455.38 (on Linux/NV), and this appears to be fixed! Previously was happening 100%

Actually, nevermind that. Looks like WR failed to initialize, and I was running on Basic :/

You need to log in before you can comment on or make changes to this bug.