Spotify is oversized on mixed-DPI setups: ship spotify-flags.conf with --ozone-platform=wayland
Summary
Spotify runs on XWayland, so it gets one global scale for every monitor. On a mixed-DPI
setup there's no correct value. Here the laptop wants 1.6 and the two externals want 1.0,
so Spotify is oversized on the externals no matter what GDK_SCALE is set to. Native
Wayland apps don't have this problem — they get each output's scale and re-render when
you drag them across.
Spotify is the app Omarchy installs that's still on XWayland. Chrome and Chromium already
ship --ozone-platform=wayland in their default flags files; Spotify doesn't.
System details
- Omarchy 4.0.3-1, Arch, kernel 6.19.8-arch1-3-surface
- Hyprland 0.56.2-2, UWSM 0.26.7-1
- Spotify 1:1.2.96.518-2 (CEF/Chromium 146), on XWayland
- eDP-1 2400x1600 at scale 1.6; DP-4 and DP-5 both 1920x1080 at scale 1
Reproduction
- Attach a 1x monitor to a machine whose laptop panel is at 1.6.
- Launch Spotify (SUPER+SHIFT+M) and drag it between the two.
- It stays one fixed size. Sized right for one monitor, wrong for the other.
hyprctl clients -jshows"xwayland": true.
Fix
Ship a default spotify-flags.conf, same as the existing chrome-flags.conf and
chromium-flags.conf:
--ozone-platform=wayland
--enable-features=WaylandWindowDecorations,WaylandFractionalScaleV1
omarchy-install-service-spotify currently just runs omarchy-pkg-add spotify, so
Spotify keeps its upstream X11 default (its GPU process runs --ozone-platform=x11).
Tested here: hyprctl clients -j shows "xwayland": false and Spotify resizes correctly
moving between the 1.6 laptop and the 1.0 externals.
One thing that comes with it: the window class changes from Spotify to spotify, so
anything matching the old capitalised class breaks — see #7700, #7154, #9544.
Side note
Related but separate, and it only matters while Spotify is still on XWayland:
bin/omarchy-hyprland-monitor-scaling:92-94 rounds GDK_SCALE to the nearest integer,
which is correct for GTK but not for Chromium, which reads it as a float. At monitor
scale 1.6 that's 2, so CEF apps come out 25% large; at 1.25 it rounds to 1 and they come
out 20% small. Worth a separate issue if you want it fixed for other XWayland apps, but
moving Spotify to Wayland sidesteps it here.
I can send a PR if this looks like the right approach.
Good solution. I had the same problem.
Confirming this reproduces, with a case that widens the trigger beyond mixed-DPI — and a fix that doesn't require switching off XWayland.
This isn't limited to mixed-DPI setups. It reproduces on a machine where both monitors resolve to scale: 1:
DP-1 HP Z24u G3 1920x1200 scale 1
HDMI-A-1 Acer R221Q 1920x1080 scale 1
The mechanism appears to be that omarchy_gdk_scale and omarchy_monitor_scale are independent in config/hypr/monitors.lua:
local omarchy_gdk_scale = 2 -- hardcoded
local omarchy_monitor_scale = "auto"
Whenever auto resolves to 1 (i.e. any 1x display — which is most non-HiDPI machines), the compositor runs at 1x while CEF apps are explicitly told to render at 2x. xwayland:force_zero_scaling = true (default/hypr/envs.lua) then removes the X11-side scaling that would otherwise have compensated, so GDK_SCALE is the only thing determining apparent size. That would suggest the trigger is "any 1x display" rather than a DPI mismatch, which also covers #7021 and #7676.
Symptom is clipping, not just oversized. From the UI's perspective the elements are 2x (so "oversized" fits), but Spotify also allocates its surface at 2x inside an unscaled XWayland window. In my case the window was 941x568 and only the top-left quadrant of the UI rendered — the rest was cut off. Worth noting because the two failure modes need different framing in the fix.
A fix that stays on XWayland. --ozone-platform=wayland (as proposed here) works, but isn't necessary. Stripping GDK_SCALE and pinning the CEF scale factor is enough:
# ~/.local/share/applications/spotify.desktop
[Desktop Entry]
Type=Application
Name=Spotify
Exec=env -u GDK_SCALE spotify --force-device-scale-factor=1 --uri=%u
Icon=spotify-client
TryExec=spotify
Terminal=false
MimeType=x-scheme-handler/spotify;
Categories=Audio;Music;Player;AudioVideo;
StartupWMClass=spotify
Verified: renders correctly, playback unaffected, and a user-level Exec override survives package updates. This keeps GDK_SCALE=2 for GTK apps, which is presumably why it's there in the first place.
More generally, since the env var can't be scoped to "GTK apps only", every CEF/Electron app in the session needs the same treatment. That's the part that seems worth solving once in Omarchy rather than per-app.
System details
Omarchy 4.0.4-1
Kernel 7.2.5-3-omarchy
Hyprland 0.15 (ABI efb50993...)
GPU Intel TigerLake-LP GT2 [Iris Xe]
Spotify 1.2.96.518.g366879e1 (spotify 1:1.2.96.518-3, AUR)
Session GDK_SCALE=2, xwayland force_zero_scaling=true
Spotify runs under XWayland (--ozone-platform=x11)
Spotify 1.3.4.258 now crashes on startup under --ozone-platform=x11, so this is no longer only a scaling issue.
Since spotify 1:1.3.4.258-1 (Chromium 151 / CEF), every launch on this machine kills the GPU process with SIGSEGV within ~3 s. Seven GPU-process cores since the update on 2026-10-13 (including deliberate reproductions); none on 1.2.96.518.
spotify --type=gpu-process --ozone-platform=x11 ...
#0 pthread_mutex_lock (libc.so.6)
#1 wl_proxy_create_wrapper (libwayland-client.so.0)
#2 libEGL_mesa.so.0 + 0x24490
...
#5 libcef.so + 0x4050263
The GPU process is on X11 but ends up in an EGL Wayland platform path with no valid wl_display. This is not vendor-specific: the same frame appears via libnvidia-egl-wayland2.so when NVIDIA userspace is present (the #8856 situation), and via libEGL_mesa.so with __EGL_VENDOR_LIBRARY_FILENAMES=.../50_mesa.json. So removing nvidia-utils does not avoid it.
| Launch | GPU process | Result |
|---|---|---|
spotify (default) |
ozone-platform=x11 |
SIGSEGV, 2/2 |
env -u OZONE_PLATFORM spotify |
x11 |
SIGSEGV |
spotify --ozone-platform=wayland |
wayland |
no crash over 40 s, native Wayland window |
The root cause is likely upstream in Spotify/CEF, but shipping --ozone-platform=wayland in spotify-flags.conf as proposed here avoids it entirely.
System: Omarchy 4.0.4-1, kernel 7.2.5-3-omarchy, AMD RX 6650 XT (amdgpu, Mesa 26.2.2), no NVIDIA hardware, Hyprland 0.56.2.
Filed by Claude Opus 5.5 via Claude Code.
Diagnostic note from another affected machine (AMD Radeon 680M, Mesa 26.2.5)
Same GPU-process SIGSEGV on the first launch of Spotify 1.3.4.258 under XWayland. On this machine, without the flag, the GPU process really does crash; the browser process survives and Chromium respawns the helper. After adding --ozone-platform=wayland, the same machine launched without a crash.
System
- Omarchy:
4.0.0.r7049.g0c93f61-1(omarchy version→4.0.0.r7049.g0c93f61-1;omarchy-dev/omarchy-settings-dev, commit0c93f61) - Kernel:
7.2.11-arch1-1(stock Arch kernel;linux-omarchy 7.2.8-9is installed but was not running) - Hyprland:
0.56.2-4, commitefb50993780079460b0cbed1363e2166a2de1d9f - XWayland:
xorg-xwayland 24.1.14-1 - GPU: AMD Radeon 680M (Rembrandt), amdgpu
- Mesa:
1:26.2.5-1; libglvnd1.7.0-3; wayland/libwayland1.26.0-1 - Spotify:
1:1.3.4.258-1from the omarchy repo
Crash without the flag
- 2026-10-18 16:45:17 CEST, PID 15441,
--type=gpu-process --no-sandbox --ozone-platform=x11, user agentChrome/151.0.7922.138 Spotify/1.3.4.258 - Launched from the desktop entry at 16:45:07; SIGSEGV /
SEGV_MAPERRabout 10 seconds later - Symbolized with Arch debug symbols:
#0 pthread_mutex_lock (mutex=0x133) libc.so.6
#1 wl_proxy_create_wrapper (proxy=0x56464b332890) libwayland-client 1.26.0, wayland-client.c:2801
#2 dri2_initialize_wayland_drm libEGL_mesa 26.2.5, platform_wayland.c:2694
#3 dri2_initialize_wayland platform_wayland.c:3303
#4 dri2_initialize egl_dri2.c:911
#5 eglInitialize libEGL_mesa
#6 ?? libcef.so + 0x4050263
In the core, disp->Platform == _EGL_PLATFORM_WAYLAND and disp->PlatformDisplay == 0x56464b332890. That address is an X11 Display (fd=23, display_name=":0", proto_major_version=11, vendor="The X.Org Foundation"), not a wl_display. Libwayland read the X11 protocol-major-version field (11) as the display pointer and tried to lock a mutex at 0x133, which is unmapped.
Where the bug is
- The invalid pairing is already present at the EGL boundary: the display was created with
EGL_PLATFORM_WAYLANDbut with an X11Display*as its native display. That is the value Spotify's bundledlibcef.sosupplied; Mesa did not choose it. - In the backtrace,
#0is the faulting call and each higher number is its caller:#2–#5are Mesa following the request made by#6(libcef.so). These are stack-frame numbers, not issue references. Mesa's Wayland driver assumesPlatformDisplayis awl_display, and libwayland then dereferences the X11 struct. - So the real bug is in the library Spotify ships and links —
libcef.so(Chromium 151 / CEF) — not in Hyprland, Mesa, or libwayland. Mesa could arguably reject the mismatched handle instead of crashing, but the bad platform/display pairing comes from CEF. - The proper fix belongs upstream in Spotify/CEF.
--ozone-platform=waylandonly avoids the broken XWayland path.
Impact on this system
- The core belongs to the GPU helper only (default XWayland path). The browser process (PID 15368) stayed alive, a replacement GPU helper (PID 16579) started about 90 seconds later, and Spotify continued until it was closed around 16:50. The app is not killed here, but the GPU process does crash.
- This was the first launch of 1.3.4.258 on this machine (last launch was 1.2.96.518 on 11 Oct; 1.3.4.258 was installed on 13 Oct).
coredumpctlhas no earlier Spotify cores, and there was no OOM or memory pressure.
After --ozone-platform=wayland
- Added the flag to
~/.config/spotify-flags.confand relaunched at 17:00:02 CEST. It did not crash. - The GPU helper (PID 79225) runs with
--ozone-platform=wayland, andhyprctl clients -jreports{"class":"spotify","xwayland":false}, i.e. a native Wayland window. coredumpctl list spotifystill shows only the 16:45:19 core. At 17:03:11 CEST Spotify had been up about 3 minutes with no new core, and the GPU helper was still running; I will follow up if a later one appears.- As noted in the issue, the window class changed to lowercase
spotify(fromSpotify), which affects title/class matching.
This is the same signature reported above and supports the flags-file approach in #15803 as a workaround, while the underlying defect remains in Spotify's bundled CEF.
Confirming on a single-display machine, with another symptom: interactive resizing makes the window balloon.
On XWayland, resizing Spotify with Super + right-drag made the window grow far past the cursor, and I had to shrink it back with keyboard shortcuts. After adding --ozone-platform=wayland to ~/.config/spotify-flags.conf, Spotify runs natively ("class": "spotify", "xwayland": false) and Super + right-drag resizes normally. Super+Shift+M still finds and focuses the running window after the class change.
Before the switch I also saw colour artefacts in the homepage video previews (possibly the same thing as #14146). I haven't been able to retest that since, because the homepage hasn't had a video.
No Spotify core dumps on this machine, so I wasn't hitting the GPU-process crash reported above.
+1 for shipping the flags file (#15803).
System
- Razer Blade 18 (2023): i9-13950HX, Intel UHD + RTX 4080 Laptop (hybrid; Spotify renders on the Intel GPU, NVIDIA stays runtime-suspended)
- eDP-2 2560x1600@240, scale 1.6,
GDK_SCALE=2,xwayland:force_zero_scaling = true - Omarchy 4.0.6-1, linux-omarchy 7.2.8, Hyprland 0.56.2-4, xorg-xwayland 24.1.14-1
- spotify 1:1.3.4.258-1, nvidia-open-dkms 615.78.08
I can confirm this GPU-process crash on Omarchy 4.0.6-1 with Spotify 1:1.3.4.258-1 running under XWayland.
In my case, Spotify crashed consistently between songs, shortly after the next queued song started playing, triggering a process-crash notification on the Omarchy desktop. The crash logs showed a segmentation fault (SIGSEGV) in the GPU process, with a stack involving wl_proxy_create_wrapper, Mesa EGL, and libcef.so. The GPU process was running with --ozone-platform=x11.
Workaround
Launching Spotify with native Wayland flags stopped the crashes during my testing:
/usr/bin/spotify \
--enable-features=UseOzonePlatform,WaylandWindowDecorations \
--ozone-platform=wayland
I made these flags persistent by adding them to ~/.config/spotify-flags.conf:
--enable-features=UseOzonePlatform,WaylandWindowDecorations
--ozone-platform=wayland
Since applying this change, Spotify has continued running without reproducing the crashes. I cannot yet confirm whether this resolves every instance of the issue.
System
- Omarchy:
4.0.6-1 - Kernel:
7.2.8-9-omarchy - Hyprland:
0.56.2 - XWayland:
24.1.14-1 - GPU: AMD Radeon Vega (integrated),
amdgpu - Mesa:
26.2.5-1 - Spotify:
1:1.3.4.258-1
Still reproduces on the current Spotify 1:1.3.8.620-1 (Chrome/151.0.7922.138). All reports above are on 1.3.4.258, so the update didn't fix it upstream.
Intel Iris Xe (Raptor Lake-P), Mesa 26.2.5, Omarchy 4.5.0-3, kernel 7.2.15-1-omarchy, no NVIDIA hardware. Under the default --ozone-platform=x11, the GPU process crashed 21 times in three days. Stray NVIDIA userspace (#12392) was installed at first, so the crash went through libnvidia-egl-wayland2. After removing it, the crash stayed the same and went through libEGL_mesa instead, which fits this being Spotify/CEF and not a driver issue. The pointer handed to wl_proxy_create_wrapper is an Xlib Display (fd=23, proto_major_version=11, vendor "The X.Org Foundation"), as described above.
With --ozone-platform=wayland in ~/.config/spotify-flags.conf: no crashes over 33 minutes of playback, where X11 mode had crashed every 3–8 minutes that morning.
With #15803 closed, nothing open ships this flag except #11758.
Filed by Claude Opus 5.5 via Claude Code.
Another data point on 1.3.8.620, with a more severe symptom: playback stops working entirely.
After the GPU process crashed (twice within ~80 s of launch), the UI still responded, but pressing Play did nothing. MPRIS reported Paused and Spotify never opened a PipeWire stream. The queued item was a video podcast. Adding --ozone-platform=wayland to ~/.config/spotify-flags.conf and restarting fixed playback immediately. So on this path the user-visible failure can be "Spotify doesn't play", not just a recovered helper crash. That seems relevant to whether the flag should ship as a default.
Install method: stock. spotify comes from the omarchy repo (Packager: Omarchy <[email protected]>). It was originally installed by the Omarchy installer as part of the default package set and updated to 1.3.8.620 through normal system updates. Before the crashes started I reinstalled the same version via Omarchy menu → Install → Package, with no version change. No AUR, no custom flags: ~/.config/spotify-flags.conf didn't exist before the workaround.
Wed 2026-11-18 21:46:00 EET SIGSEGV /opt/spotify/spotify (gpu-process, --ozone-platform=x11)
Wed 2026-11-18 21:46:26 EET SIGSEGV /opt/spotify/spotify
Thu 2026-11-19 10:04:39 EET SIGSEGV /opt/spotify/spotify (~3 s after launch)
Thu 2026-11-19 10:05:58 EET SIGSEGV /opt/spotify/spotify
Same top frames as above: pthread_mutex_lock ← wl_proxy_create_wrapper ← libEGL_mesa.so.0+0x24490 ← libcef.so+0x4050263.
System: Omarchy 4.5.0-3, kernel 7.2.15-1-omarchy, AMD Radeon 780M (Phoenix, amdgpu), Mesa 26.2.5, wayland 1.26.0, xorg-xwayland 24.1.14, Hyprland 0.56.2-4.
Filed by Claude Opus 5.5 via Claude Code.
Could you run spotify --disable-accelerated-video-decode without a flags file and play a few tracks with Canvas? I'd like to know if the crashes stop and the video shows on your GPU.