[nvidia] Janky text entry and frames appear out of order in Xwayland apps

Bug #1970389 reported by Matias Piipari
46
This bug affects 7 people
Affects Status Importance Assigned to Milestone
X.Org X server
New
Unknown
xwayland (Ubuntu)
Triaged
High
Unassigned

Bug Description

When writing into text fields in some applications (Firefox, VS Code) on Jammy in a GNOME / Wayland session, I can see an effect best described as the glyphs appearing / disappearing sometimes repeatedly. I have attached a recording from my phone (since attempting to record a screencast fails).

This doesn't happen always, and it appear somehow sensitive to some environmental condition (load?) since for example when I'm on a video call, the effect seems to not be happening so often.

I have also experienced a few instances of a currently not-focused window disappearing (seeing through to a window that is below that window), but cannot reproduce that reliably.

I have the NVIDIA driver 510 in use, RTX3090-only 16-core Zen1 Threadripper system with no integrated GPU.

No similar effects visible when in a GNOME / Xorg session.

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 42.0-2ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-27.28-generic 5.15.30
Uname: Linux 5.15.0-27-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair nvidia_modeset nvidia
ApportVersion: 2.20.11-0ubuntu82
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Tue Apr 26 12:17:02 2022
DisplayManager: gdm3
InstallationDate: Installed on 2021-11-08 (168 days ago)
InstallationMedia: Ubuntu 21.10 "Impish Indri" - Release amd64 (20211012)
RebootRequiredPkgs: Error: path contained symlinks.
RelatedPackageVersions: mutter-common 42.0-3ubuntu2
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to jammy on 2022-04-22 (3 days ago)

Revision history for this message
Matias Piipari (mz2) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
affects: gnome-shell (Ubuntu) → xwayland (Ubuntu)
tags: added: nvidia wayland wayland-session
tags: added: nvidia-wayland
summary: - Janky text entry in some applications in a GNOME / Wayland session
+ [nvidia] Janky text entry in some applications in a GNOME / Wayland
+ session
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: [nvidia] Janky text entry in some applications in a GNOME / Wayland session

In theory, using native Wayland apps instead should avoid the problem. For Firefox you can do that with:

  sudo snap remove firefox
  sudo snap install --beta firefox

summary: - [nvidia] Janky text entry in some applications in a GNOME / Wayland
- session
+ [nvidia] Janky text entry and frames appear out of order in Xwayland
+ apps
Changed in nvidia-graphics-drivers-510 (Ubuntu):
importance: Undecided → High
Changed in xwayland (Ubuntu):
importance: Undecided → High
Changed in nvidia-graphics-drivers-510 (Ubuntu):
status: New → Confirmed
Changed in xwayland (Ubuntu):
status: New → Confirmed
Changed in xorg-server:
status: Unknown → New
Revision history for this message
Robert Carroll (robswc) wrote (last edit ):

I'm experiencing this too. No idea how to replicate it as it seems pretty random. Were you able to find a solution?

I find it happens on almost any "Chromium-based" application like Discord and Brave Browser.

*Edit*

Upgrading drivers to 525 seems to have made the problem go away :)

Changed in nvidia-graphics-drivers-525 (Ubuntu):
status: New → Confirmed
importance: Undecided → High
Revision history for this message
George Salukvadze (giosal90) wrote (last edit ):

I'm experiencing similar issues, but I'm unable to switch desktop manager to Xorg as I don't have such option on login screen. I have tried to switch the session type to XOrg by modifying /etc/gdm3/custom.conf and setting WaylandEnable=false as suggested on several websites.
However, when restarting gdm3 or the system, this leads to system hanging and displaying a white cursor (underline) on black screen without any response to keyboard input. I have then to go to recovery mode, login as root and modify the file back to use Wayland...

Revision history for this message
Giovanni Panaro (gpanaro) wrote :

Bug is still present with 535 drivers

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Sounds like:

> Xwayland does not provide a suitable mechanism for our driver to synchronize application
> rendering with presentation, which can cause visual corruption in some circumstances.

from http://us.download.nvidia.com/XFree86/Linux-x86_64/535.54.03/README/wayland-issues.html

Changed in nvidia-graphics-drivers-535 (Ubuntu):
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nvidia-graphics-drivers-535 (Ubuntu):
status: New → Confirmed
Revision history for this message
Francois Thirioux (fthx) wrote :

Is there any progress on this?
Nvidia Wayland session is unusable because of this.

no longer affects: nvidia-graphics-drivers-510 (Ubuntu)
no longer affects: nvidia-graphics-drivers-525 (Ubuntu)
no longer affects: nvidia-graphics-drivers-535 (Ubuntu)
Changed in xwayland (Ubuntu):
milestone: jammy-updates → none
status: Confirmed → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.