Comment 1 for bug 1966108

Revision history for this message
Adam Collard (adam-collard) wrote (last edit ): Re: Painfully slow startup for Chromium snap on Jammy system with NVidia GPU

This got much worse after enabling proprietary drivers and leaves me with a completely unusable Chromium (no browser chrome painted, let alone content)

$ ubuntu-drivers devices
== /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 ==
modalias : pci:v000010DEd000013C2sv00001462sd00003160bc03sc00i00
vendor : NVIDIA Corporation
model : GM204 [GeForce GTX 970]
driver : nvidia-driver-510-server - distro non-free
driver : nvidia-driver-390 - distro non-free
driver : nvidia-driver-418-server - distro non-free
driver : nvidia-driver-510 - distro non-free recommended
driver : nvidia-driver-450-server - distro non-free
driver : nvidia-driver-470 - distro non-free
driver : nvidia-driver-470-server - distro non-free
driver : xserver-xorg-video-nouveau - distro free builtin

$ ubuntu-drivers debug | grep 'installed: [^<]'
nvidia-driver-510: installed: 510.60.02-0ubuntu1 available: 510.60.02-0ubuntu1 (auto-install) [distro] non-free modalias: pci:v000010DEd000013C2sv00001462sd00003160bc03sc00i00 path: /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0 vendor: NVIDIA Corporation model: GM204 [GeForce GTX 970] support level: PB

$ snap version
snap 2.55.2+22.04.1
snapd 2.55.2+22.04.1
series 16
ubuntu 22.04
kernel 5.15.0-23-generic
$ snap list chromium
Name Version Rev Tracking Publisher Notes
chromium 100.0.4896.60 1951 latest/stable canonical✓ -

snippet from SNAPD_DEBUG=1 snap run chromium
DEBUG: requesting changing of apparmor profile on next exec to snap-update-ns.chromium
change.go:566: DEBUG: desiredIDs: map[/run/user/1000/doc:true]
change.go:567: DEBUG: reuse: map[]
change.go:320: DEBUG: mount name:"/run/user/1000/doc/by-app/snap.chromium" dir:"/run/user/1000/doc" type:"none" opts:MS_BIND unparsed:"" (error: <nil>)
DEBUG: snap-update-ns finished successfully
DEBUG: set_effective_identity uid:0 (change: no), gid:1000 (change: yes)
DEBUG: NOT preserving per-user mount namespace
DEBUG: releasing lock 7
DEBUG: sending command 0 to helper process (pid: 1601462)
DEBUG: waiting for response from helper
DEBUG: sanity timeout reset and disabled
DEBUG: helper process received command 0
DEBUG: helper process exiting
DEBUG: waiting for the helper process to exit
DEBUG: helper process exited normally
DEBUG: resetting PATH to values in sync with core snap
DEBUG: set_effective_identity uid:1000 (change: yes), gid:1000 (change: yes)
DEBUG: creating user data directory: /home/acollard/snap/chromium/1951
DEBUG: requesting changing of apparmor profile on next exec to snap.chromium.chromium
DEBUG: ruid: 1000, euid: 1000, suid: 0
DEBUG: setting capabilities bounding set
DEBUG: regaining SYS_ADMIN
DEBUG: loading bpf program for security tag snap.chromium.chromium
DEBUG: read 6520 bytes from /var/lib/snapd/seccomp/bpf//snap.chromium.chromium.bin
DEBUG: read 152 bytes from /var/lib/snapd/seccomp/bpf/global.bin
DEBUG: clearing SYS_ADMIN
DEBUG: execv(/usr/lib/snapd/snap-exec, /usr/lib/snapd/snap-exec...)
DEBUG: argv[1] = chromium
DEBUG: umask restored to 02
DEBUG: working directory restored to /home/acollard
Gtk-Message: 16:52:11.032: Failed to load module "canberra-gtk-module"
Gtk-Message: 16:52:11.033: Failed to load module "canberra-gtk-module"
MESA-LOADER: failed to retrieve device information
MESA-LOADER: failed to open nvidia-drm: /snap/chromium/1951/gnome-platform/usr/lib/x86_64-linux-gnu/dri/nvidia-drm_dri.so: cannot open shared object file: Permission denied (search paths /snap/chromium/1951/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: nvidia-drm
MESA-LOADER: failed to open kms_swrast: /snap/chromium/1951/gnome-platform/usr/lib/x86_64-linux-gnu/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /snap/chromium/1951/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast: /snap/chromium/1951/gnome-platform/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /snap/chromium/1951/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load swrast driver
[1601444:1601533:0406/165213.377095:ERROR:udev_watcher.cc(98)] Failed to begin udev enumeration.