Open Bug 1815052 Opened 3 years ago Updated 2 years ago

[NVIDIA/Wayland] Firefox hangs with windows placed on different virtual desktops KDE Wayland

Categories

(Core :: Widget: Gtk, defect, P3)

Firefox 109
defect

Tracking

()

UNCONFIRMED

People

(Reporter: vishalsubramanyam, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

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

Steps to reproduce:

  1. Create multiple windows
  2. Place windows across different virtual desktops in KDE Wayland
  3. Switch to one of those windows

Actual results:

Firefox GUI hangs but clicks and keyboard events are actually being processed without a GUI change. Videos keep playing in the background. Pressing Ctrl+T creates a new tab (can be verified by the changing title bar).
The GUI goes back to normal when I bring all the Firefox windows to the same virtual desktop.

Expected results:

GUI should be rendering properly without a freeze

KDE Plasma Version: 5.26.5
Graphics platform: Wayland
Kubuntu 22.10

Attaching the related KDE bug report for more details: https://bugs.kde.org/show_bug.cgi?id=465115

I have narrowed down this issue to NVIDIA-specific hardware acceleration in Firefox on Wayland. Happens only when I use NVIDIA as my primary GPU.
This is related to hardware acceleration.
This issue does NOT occur in the following situations.

  1. When I disable hardware acceleration in Firefox
  2. When I use hardware acceleration but with the primary GPU set as Intel integrated graphics.

When I set NVIDIA as my primary GPU by using the following env variable: KWIN_DRM_DEVICES="/dev/dri/card1:/dev/dri/card0",
this issue occurs.

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Blocks: wayland
Priority: -- → P3
Summary: Firefox hangs with windows placed on different virtual desktops KDE Wayland → [NVIDIA/Wayland] Firefox hangs with windows placed on different virtual desktops KDE Wayland

I dont have this issue with plasma 5.27 on MicroOS using nvidia RTX 3060Ti and I used Flatpak version of firefox (110) ...and yes I'm using wayland, maybe this has been fixed on the newer plasma? or maybe this affects other nvidia gpu? (espcially if you have older gpu that dont get the newer/latest drivers)


system spec:

Operating System: openSUSE MicroOS 20230214
KDE Plasma Version: 5.27.0
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.10-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700G with Radeon Graphics
Memory: 15,4 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3060 Ti/PCIe/SSE2

I have NVIDIA RTX 3050Ti, so I'm guessing it's not very different from yours. Lemme see if I can upgrade to 5.27. I don't use Flatpak.
Also, are you using nvidia-vaapi-driver? I've noticed this problem disappearing when I switch hardware acceleration to Intel or turn it off entirely.

(In reply to vishalsubramanyam from comment #0)
Is this bug really about Wayland and not Xwayland?
Does this problem still occur if you start Firefox with MOZ_ENABLE_WAYLAND=1 environment variable?
$ MOZ_ENABLE_WAYLAND=1 path/to/firefox

I'm also experiencing this issue. Perhaps this is related to Kubuntu?

System:
Operating System: Kubuntu 23.04
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.0-23-generic (64-bit)
Graphics Platform: Wayland
Processors: 12 × Intel® Core™ i7-8700 CPU @ 3.20GHz
Memory: 31.2 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1070 Ti/PCIe/SSE2

The most reliable way to reproduce this for me:

  1. Make sure firefox is closed.
  2. MOZ_ENABLE_WAYLAND=1 firefox
  3. Open a second window and move it to another virtual desktop.
  4. Try to resize the first window, which won't work until the second window is closed.
Attached video bug.mp4

A comparison of MOZ_ENABLE_WAYLAND 1 vs 0

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

Attachment

General

Creator:
Created:
Updated:
Size: