** Description changed:

- After an update, papers crashes upon launch when nvidia drivers are
- installed in 25.10, with the following errors (in the terminal):
+ [ Impact ]
+ 
+ On dual-GPU systems where the primary GPU is NVIDIA and the secondary is
+ Intel or AMD, Papers crashes upon launch when nvidia drivers are
+ installed with the following errors (in the terminal):
  
  MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support 
more multi-planar formats with DRM modifiers
  MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support 
YUV colorspace with DRM format modifiers
  Gdk-Message: 18:41:44.758: Error 71 (Errore di protocollo) dispatching to 
Wayland display.
  
  The nvidia version is nvidia-driver-580-open. The bug disappears if
- xserver-xorg-video-nouveau is used instead, but the computer graphics is
- hardly usable with the open source driver.
+ nouveau is used instead, but the computer graphics is hardly usable with
+ the open source driver.
+ 
+ The bug originates by apparmor blocking access to the NVIDIA driver.
+ 
+ There is a weird interaction where after Papers fails to open the NVIDIA 
device
+ and falls-back to the secondary (mesa) GPU, Mutter raises a Wayland protocol
+ error when it fails to import the dmabuf associated with the toplevel surface.
+ 
+ This is fixed by allowing Papers to use the NVIDIA GPU.
+ The patch not only allows GPU rendering on NVIDIA, but it is also necessary
+ for running Papers at all on dual-GPU systems where the NVIDIA GPU is primary
+ (such as desktop systems).
+ 
+ This fixes a regression introduced by allowing GPU rendering on Intel and AMD 
GPUs.
+ The bug was not triggered when Intel/AMD GPU was also blocked by apparmor, as 
the software-rendering fallback was working.
+ 
+ [ Test Plan A ]
+ 
+ 1. Set up Ubuntu Desktop on a Desktop machine with an integrated Intel/AMD 
GPU and a dedicated NVIDIA GPU
+ 1. Launch the "Document Viewer" app
+ 1. Verify that the app launched correctly
+ 
+ [ Test Plan B ]
+ 
+ 1. Set up Ubuntu Desktop on a Laptop machine with an integrated Intel/AMD GPU 
and a dedicated NVIDIA GPU
+ 1. Launch the "Document Viewer" app
+ 1. Verify that the app launched correctly
+ 
+ [ Where things could go wrong ]
+ 
+ The patch relaxes the apparmor confinement, and thus it extends the attack 
surface for malicious document files.
+ No regression is expected when poking a hole for NVIDIA GPUs in the apparmor 
profile for papers.
+ 
+ [ Other info ]
  
  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: papers 48.0-1ubuntu1.25.10.2
  ProcVersionSignature: Ubuntu 6.17.0-7.7-generic 6.17.2
  Uname: Linux 6.17.0-7-generic x86_64
  ApportVersion: 2.33.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Dec  8 18:39:08 2025
  InstallationDate: Installed on 2025-11-10 (28 days ago)
  InstallationMedia: Ubuntu 25.10 "Questing Quokka" - Release amd64 (20251007)
  ProcEnviron:
   LANG=it_IT.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
  SourcePackage: papers
  UpgradeStatus: No upgrade log present (probably fresh install)

** Summary changed:

- Gnome Papers crashes upon launch in Ubuntu 25.10
+ Gnome Papers crashes upon launch with NVIDIA drivers

** Description changed:

  [ Impact ]
  
- On dual-GPU systems where the primary GPU is NVIDIA and the secondary is
- Intel or AMD, Papers crashes upon launch when nvidia drivers are
- installed with the following errors (in the terminal):
+ On dual-GPU systems where the primary GPU is NVIDIA (generally the case
+ on Desktop class machines) and the secondary is Intel or AMD, Papers
+ crashes upon launch when nvidia drivers are installed with the following
+ errors (in the terminal):
  
  MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:981: FINISHME: support 
more multi-planar formats with DRM modifiers
  MESA-INTEL: warning: ../src/intel/vulkan/anv_formats.c:949: FINISHME: support 
YUV colorspace with DRM format modifiers
  Gdk-Message: 18:41:44.758: Error 71 (Errore di protocollo) dispatching to 
Wayland display.
  
  The nvidia version is nvidia-driver-580-open. The bug disappears if
  nouveau is used instead, but the computer graphics is hardly usable with
  the open source driver.
  
  The bug originates by apparmor blocking access to the NVIDIA driver.
  
  There is a weird interaction where after Papers fails to open the NVIDIA 
device
  and falls-back to the secondary (mesa) GPU, Mutter raises a Wayland protocol
  error when it fails to import the dmabuf associated with the toplevel surface.
  
  This is fixed by allowing Papers to use the NVIDIA GPU.
  The patch not only allows GPU rendering on NVIDIA, but it is also necessary
  for running Papers at all on dual-GPU systems where the NVIDIA GPU is primary
  (such as desktop systems).
  
  This fixes a regression introduced by allowing GPU rendering on Intel and AMD 
GPUs.
  The bug was not triggered when Intel/AMD GPU was also blocked by apparmor, as 
the software-rendering fallback was working.
  
  [ Test Plan A ]
  
  1. Set up Ubuntu Desktop on a Desktop machine with an integrated Intel/AMD 
GPU and a dedicated NVIDIA GPU
  1. Launch the "Document Viewer" app
  1. Verify that the app launched correctly
  
  [ Test Plan B ]
  
  1. Set up Ubuntu Desktop on a Laptop machine with an integrated Intel/AMD GPU 
and a dedicated NVIDIA GPU
  1. Launch the "Document Viewer" app
  1. Verify that the app launched correctly
  
  [ Where things could go wrong ]
  
  The patch relaxes the apparmor confinement, and thus it extends the attack 
surface for malicious document files.
  No regression is expected when poking a hole for NVIDIA GPUs in the apparmor 
profile for papers.
  
  [ Other info ]
  
  ProblemType: Bug
  DistroRelease: Ubuntu 25.10
  Package: papers 48.0-1ubuntu1.25.10.2
  ProcVersionSignature: Ubuntu 6.17.0-7.7-generic 6.17.2
  Uname: Linux 6.17.0-7-generic x86_64
  ApportVersion: 2.33.1-0ubuntu3
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Dec  8 18:39:08 2025
  InstallationDate: Installed on 2025-11-10 (28 days ago)
  InstallationMedia: Ubuntu 25.10 "Questing Quokka" - Release amd64 (20251007)
  ProcEnviron:
   LANG=it_IT.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
  SourcePackage: papers
  UpgradeStatus: No upgrade log present (probably fresh install)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2134437

Title:
  Gnome Papers crashes upon launch with NVIDIA drivers

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/papers/+bug/2134437/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to