Please note the workaround for Spotify or other apps using hardware
acceleration:
Workaround: Disable GPU acceleration for Spotify snap
The crash can be avoided by forcing Spotify to use software rendering
instead of the NVIDIA GPU.
Prerequisites
• Spotify installed as a snap (snap list spotify)
• Desktop file located at
/var/lib/snapd/desktop/applications/spotify_spotify.desktop
Steps
1. Create a local override of the Spotify desktop launcher:
cp /var/lib/snapd/desktop/applications/spotify_spotify.desktop
~/.local/share/applications/spotify_spotify.desktop
2. Modify the Exec line to disable GPU acceleration:
sed -i 's|Exec=/snap/bin/spotify %U|Exec=env
LIBGL_ALWAYS_SOFTWARE=1 /snap/bin/spotify --disable-gpu --disable-gpu-
compositing --disable-software-rasterizer %U|'
~/.local/share/applications/spotify_spotify.desktop
3. Refresh the desktop file database:
update-desktop-database ~/.local/share/applications/
4. Launch Spotify from the application menu. It should now start without
crashing gnome-shell.
Verification
Confirm Spotify is running with GPU disabled:
pgrep -a spotify | grep disable-gpu
The main process should show --disable-gpu --disable-gpu-compositing in
its arguments and the gpu-process child should show --use-gl=disabled.
Notes
• The local desktop file in ~/.local/share/applications/ takes precedence over
the snap's file in /var/lib/snapd/desktop/applications/.
• Snap updates will not overwrite the local copy, but if a future Spotify
update changes the desktop file format, the override may need to be re-applied.
• To revert, simply remove the local override:
rm ~/.local/share/applications/spotify_spotify.desktop
update-desktop-database ~/.local/share/applications/
** Description changed:
Title: gnome-shell crashes (SIGTRAP in mutter-mtk) when launching
Spotify snap with NVIDIA 595.58.03 on hybrid GPU
Description:
Launching the Spotify snap (v1.2.84.475, Chromium/CEF-based) while
Google Chrome is running causes gnome-shell to crash with SIGTRAP,
resulting in a GDM logout. This is a regression — the same configuration
worked without issue on NVIDIA driver 580.142.
Steps to reproduce:
- 1. Boot Ubuntu 24.04 with NVIDIA driver 595.58.03 (open kernel module) on a
hybrid Intel/NVIDIA GPU laptop
+ 1. Boot Ubuntu 24.04 with NVIDIA driver 595.58.03 (proprietary) on a hybrid
Intel/NVIDIA GPU laptop
2. Log into a GNOME session
3. Open Google Chrome
4. Launch the Spotify snap from the app menu
Expected: Spotify opens normally alongside Chrome.
Actual: gnome-shell crashes immediately. GDM restarts and the user is
logged out. Crash reports are generated for both /usr/bin/gnome-shell
and /opt/google/chrome/chrome.
Crash details from /var/crash/_usr_bin_gnome-shell.1000.crash:
• Signal: 5 (SIGTRAP)
• Stack trace top: g_log_structured_array() → g_log_default_handler() →
g_logv() → g_log() → ?? () from libmutter-mtk-14.so.0
• Prior X error in journal: gnome-shell: Received an X Window System error:
BadMatch (invalid parameter attributes) on MIT-SHM minor_code 4
Workaround: Launching Spotify with --disable-gpu --disable-gpu-
compositing and LIBGL_ALWAYS_SOFTWARE=1 prevents the crash.
Environment:
• Ubuntu 24.04 LTS (Noble), fresh install
• Kernel: 6.17.0-23-generic
- • NVIDIA driver: 595.58.03-0ubuntu0.24.04.1 (open kernel module, DKMS)
+ • NVIDIA driver: 595.58.03-0ubuntu0.24.04.1 (proprietary, DKMS)
• GPU: NVIDIA GeForce RTX 4070 Max-Q (AD106M) + Intel Raptor Lake UHD
(hybrid)
• gnome-shell: 46.0-0ubuntu6~24.04.14
• mutter: 46.2-1ubuntu0.24.04.15
• Spotify snap: 1.2.84.475 (rev 93, Chromium 144.0.7559.97)
• Previous driver (working): nvidia-driver-580 (580.142)
Regression: Upgrading from nvidia-driver-580 (580.142) to nvidia-
driver-595 (595.58.03) introduced this crash. No other system changes
were made.
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: nvidia-driver-595 595.58.03-0ubuntu0.24.04.1
ProcVersionSignature: Ubuntu 6.17.0-23.23~24.04.1-generic 6.17.13
Uname: Linux 6.17.0-23-generic x86_64
NonfreeKernelModules: nvidia_modeset nvidia
ApportVersion: 2.28.1-0ubuntu3.8
Architecture: amd64
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri May 8 12:12:02 2026
InstallationDate: Installed on 2026-01-03 (125 days ago)
InstallationMedia: Ubuntu 24.04.3 LTS "Noble Numbat" - Release amd64
(20250805.1)
ProcEnviron:
- LANG=en_US.UTF-8
- PATH=(custom, no user)
- SHELL=/bin/bash
- TERM=xterm-256color
- XDG_RUNTIME_DIR=<set>
+ LANG=en_US.UTF-8
+ PATH=(custom, no user)
+ SHELL=/bin/bash
+ TERM=xterm-256color
+ XDG_RUNTIME_DIR=<set>
SourcePackage: nvidia-graphics-drivers-595
UpgradeStatus: No upgrade log present (probably fresh install)
** Tags added: multigpu nvidia regression-release
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2151859
Title:
With Hardware acceleration enabled dGPU causes GDM Crash.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-595/+bug/2151859/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs