[SOLVED] Firefox rendering on NVIDIA GPU in Wayland crashes

Post Reply
User avatar
fennec
Ensign
Posts: 187
Joined: Wed Dec 28, 2022 9:54 pm
Location: UK
Contact:

On the latest Plasma version on Wayland, Firefox when offloading to the discrete NVIDIA GPU fails to open.

I use the following command to open Firefox.

Code: Select all

MOZ_ENABLE_WAYLAND=1 __NV_PRIME_RENDER_OFFLOAD=1 __NV_PRIME_RENDER_OFFLOAD_PROVIDER=NVIDIA-G0 __GLX_VENDOR_LIBRARY_NAME=nvidia firefox
This used to work, and now returns.

Code: Select all

[GFX1-]: Wayland protocol error: [destroyed object]: error 7: importing the supplied dmabufs failed

Gdk-Message: 10:40:31.344: Error 71 (Protocol error) dispatching to Wayland display.
Exiting due to channel error.
Exiting due to channel error.                     
After investigating I found out the issue was with package egl-wayland

The latest version of that package = egl-wayland-2:1.1.12
Downgrading to version egl-wayland-2:1.1.11 fixed the issue, and I can now use Firefox on the NVIDIA GPU.
nvidia-smi also reports correctly the Firefox process as running.

A few references.

- https://bugs.kde.org/show_bug.cgi?id=471559
- https://github.com/NVIDIA/egl-wayland/issues/83

The last link mentions this is an issue with KWin, which resulted in someone opening a Plasma bug report.
So at the moment the root cause looks like an issue with some recent changes to KWin.
sunisup
Crewman
Posts: 61
Joined: Mon Nov 28, 2022 5:13 pm

Yep I have the same issue.
Downgrade works
Post Reply

Return to “Kde/Plasma”