omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

omarchy-shell crashes and relaunches on every wake from idle lock (FALLBACK monitor removal, fatal Wayland error)

Open mcjansen opened this issue 3 months ago • 19 comments

What happened

Every time the screen unlocks after an idle lock (hypridle lock + DPMS wake), the omarchy-shell (Quickshell) process crashes and is immediately relaunched by its supervisor. It self-heals in about a second, so it shows up as a brief error/flash right as the system wakes, rather than a lasting freeze. Session security is not affected — secure=true holds throughout and unlock only completes via the real PAM prompt.

This is 100% reproducible on this machine: it happened on every single wake-from-idle-lock over the last 3 days of uptime (12+ occurrences checked in the journal), not an occasional fluke.

Expected behavior

The shell should survive a wake-from-idle-lock without crashing/relaunching.

Steps to reproduce

  1. Let the screen idle-lock (idle.lock in ~/.config/omarchy/shell.json, default 300s).
  2. Wake the screen (move the mouse / press a key).
  3. Watch journalctl --user -f (or just the screen) around the wake moment.

Log excerpt (journalctl -b 0)

Aug 18 13:51:36.456103 omarchydesktop omarchy-shell[2797450]:  DEBUG qml: omarchy idle 2026-08-18T11:51:36.456Z idle-monitor: active
Aug 18 13:51:38.357684 omarchydesktop omarchy-shell[2797450]:   INFO qt.qpa.wayland: There are no outputs - creating placeholder screen
Aug 18 13:51:38.430386 omarchydesktop omarchy-shell[2797450]:  DEBUG: Not creating lock surface for screen QScreen(0x7eff83c27970, name="") as it is not backed by a valid wayland output.
Aug 18 13:51:39.242525 omarchydesktop omarchy-shell[2797450]:   INFO qt.qpa.wayland: There are no outputs - creating placeholder screen
Aug 18 13:51:40.224861 omarchydesktop uwsm_hyprland.desktop[2133]: error in client communication (pid 2797450)
Aug 18 13:51:40.304037 omarchydesktop omarchy-shell[2797450]:   WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
Aug 18 13:51:40.367684 omarchydesktop omarchy-shell[2797450]:   WARN: The Wayland connection experienced a fatal error: Invalid argument
Aug 18 13:51:40.440390 omarchydesktop omarchy-shell[2888127]: Omarchy shell exited with status 255; relaunching.
Aug 18 13:51:41.458452 omarchydesktop omarchy-shell[2888220]:   INFO: Launching config: "/usr/share/omarchy/shell/shell.qml"
Aug 18 13:51:41.630341 omarchydesktop omarchy-shell[2888220]:   WARN qt.qpa.services: Failed to register with host portal QDBusError("org.freedesktop.portal.Error.Failed", "Could not register app ID: Connection already associated with an application ID")
Aug 18 13:51:41.851609 omarchydesktop omarchy-shell[2888220]:  DEBUG qml: omarchy lock 2026-08-18T11:51:41.852Z lock-stranded: recovering

Also seen separately from xdg-desktop-portal-hyprland around a wake at 08:15:

Aug 18 08:15:06 omarchydesktop xdg-desktop-portal-hyprland[2621]: [LOG] Found output name FALLBACK

(repeated 10x in the same second)

My read on the cause

During the DPMS wake handshake, Hyprland briefly represents a transitional output as a placeholder monitor named FALLBACK. Quickshell's Hyprland-IPC layer receives a removal event for that monitor without ever having recorded it as added, which appears to desync its internal output/surface bookkeeping enough to trip a fatal Wayland protocol error (Invalid argument) and kill the whole shell client. The supervisor relaunches it immediately, and the lock state recovers (lock-stranded: recovering), but the crash-and-restart is visible on screen.

System info

  • Omarchy: 4.0.0-1
  • Hyprland: 0.56.2 (v0.56.2, commit efb50993780079460b0cbed1363e2166a2de1d9f)
  • quickshell-git: 0.3.0.r20.g28771c7-1
  • Kernel: 7.1.8-arch1-3
  • CPU: 12th Gen Intel(R) Core(TM) i7-12700
  • GPU: Intel Alder Lake-S GT1 [UHD Graphics 770] (rev 0c)
  • Monitor setup: single monitor (HDMI-A-1, 3840x2160@60, scale 1.5)
  • Idle config (~/.config/omarchy/shell.json): lock: 300, screensaver: 150 (defaults)

mcjansen avatar Aug 18 '26 11:08 mcjansen

Same here, on NVIDIA - same signature line-for-line, and with one extra data point for the repro: suspend is not involved at all on this machine.

Key deltas vs OP

  • GPU: NVIDIA RTX 4060 Ti (AD106), proprietary nvidia-580xx-dkms 580.178.04 — CPU is an i5-9400F, which has no iGPU, so the NVIDIA card is the only GPU in the session. Same quickshell build as OP (0.3.0.r20.g28771c7-1).
  • The kernel journal has zero PM/suspend entries — this box never suspends. Every crash lands on the plain idle path: idle lock (300 s) → blank (+5 s) → wake. So the DPMS wake handshake alone is sufficient; no suspend/resume needed.

Log excerpt (identical to OP, 2026-08-22 22:34)

22:34:53 omarchy-shell[49919]:   WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
22:34:53 omarchy-shell[49919]:  DEBUG: Not creating lock surface for screen QScreen(...) as it is not backed by a valid wayland output.
22:34:54 omarchy-shell[49919]:   WARN qt.qpa.wayland: eglSwapBuffers failed with 0x3000, surface: 0x7f3fade33000
22:34:54 omarchy-shell[49919]:   WARN qt.qpa.wayland: eglSwapBuffers failed with 0x3000, surface: 0x7f3fab2ff480
22:34:54 omarchy-shell[49919]:   WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
22:34:54 omarchy-shell[49919]:   WARN: The Wayland connection experienced a fatal error: Invalid argument
22:34:54 omarchy-shell[66379]: Omarchy shell exited with status 255; relaunching.
22:34:56 omarchy-shell[66392]:  DEBUG qml: omarchy lock ... lock-stranded: recovering
22:34:56 omarchy-shell[66392]:  DEBUG qml: omarchy lock ... lock-pending: screen-stabilizing
22:34:56 omarchy-shell[66392]:  DEBUG qml: omarchy lock ... secure=true

Frequency / user-visible effect

17 crash/relaunch cycles in the journal since Aug 17; every one I inspected in detail landed at a wake-from-idle-lock with the signature above. Recovery lands every time here (~0.5–1 s), so in practice you see a brief flash of Hyprland's lockdead "Oopsie daisy" screen between the old lock dying and the relaunched shell re-securing — keystrokes typed during the flash land once the shell's own lock takes over. Session security never broke (secure=true holds; unlock only via PAM).

Extra observations that may help triage

  • No coredumps: the shell exits cleanly with status 255 (Qt fatal Wayland error), not a signal, so omarchy-crash-watch never announces it. The oopsie-daisy flash is the only visible symptom — likely why this is under-reported.
  • Long idle correlates: it reproduces most reliably after the machine sits blanked for a long time. On NVIDIA a long DPMS-off means a full DP link re-train on wake, which plausibly widens the race window. (Speculation — the timing correlation is real, the mechanism is a guess.)
  • NVIDIA-specific but separate: the sync_file FD leak in quickshell-mirror/quickshell#723 also reproduces here (23 anon_inode:sync_file FDs within ~7 min of a fresh shell). The constant crash/relaunch cycle resets it, masking the leak on machines affected by this issue.

Environment

  • Omarchy: omarchy-dev 4.0.0.r1777.gfa955bf-1
  • Hyprland: 0.56.2-1
  • quickshell: quickshell-git 0.3.0.r20.g28771c7-1
  • Kernel: 7.1.8-arch1-3
  • CPU: Intel i5-9400F (no iGPU — dGPU-only system)
  • GPU: NVIDIA RTX 4060 Ti, nvidia-580xx-dkms 580.178.04-1, nvidia_drm modeset=1
  • Monitor: single HDMI-A-1, 3440x1440@60, scale 1.25
  • Idle config: defaults (screensaver: 150, lock: 300)

anupanup2001 avatar Aug 23 '26 02:08 anupanup2001

Same signature here too, on a third hardware profile (laptop, internal panel only, no external monitor at all):

10:19:36 omarchy-shell[1111]:   WARN quickshell.hyprland.ipc: Got removal for monitor "HDMI-A-1" which was not previously tracked.
10:19:36 omarchy-shell[1111]:   WARN qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
10:19:36 omarchy-shell[1111]:   WARN qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
10:19:36 omarchy-shell[1111]:   WARN: The Wayland connection experienced a fatal error: Invalid argument
10:19:38 omarchy-shell[113734]: Omarchy shell exited with status 255; relaunching.
10:19:39 omarchy-shell[113843]:   INFO: Launching config: "/usr/share/omarchy/shell/shell.qml"
10:19:41 omarchy-shell[113843]:  DEBUG qml: omarchy lock ... lock-stranded: recovering

Notably the removed monitor is named HDMI-A-1 here rather than FALLBACK, even though this machine has no HDMI output connected — only the laptop's internal eDP-1 panel. So the placeholder name Quickshell/Hyprland picks for the transitional output during the DPMS wake handshake isn't fixed to a literal "FALLBACK" string; it can reuse whatever output name was last associated with that slot. Same underlying desync (unrecorded add → fatal removal → Wayland protocol error → exit 255 → clean auto-relaunch, ~2-3s), same self-heal behavior, secure=true held throughout.

Environment

  • Omarchy: 4.0.0-1
  • Hardware: Dell XPS 13, Intel integrated graphics (no discrete GPU)
  • Monitor setup: single internal panel (eDP-1) only, no external monitor ever attached this session
  • Idle config: defaults (screensaver: 150, lock: 300)

Confirms this isn't NVIDIA- or external-monitor-specific — reproduces on Intel-only, laptop-only, single-internal-panel setups too.

Filed by Claude Sonnet 5 via Claude Code.

taufderl avatar Aug 24 '26 08:08 taufderl

Additional data from a system showing this signature, in case it helps narrow the cause.

On a display that physically drops its connector in standby, the crash does not stop at one per wake — it repeats for as long as the screen stays asleep. This machine logged 891 fatal Wayland errors in a single boot, most of it unattended overnight, at roughly one every 45 s (2236 on the previous boot).

The cycle feeds itself, via plugins/lock/Service.qml:

06:00:09  omarchy lock  lock-stranded: recovering
06:00:10  omarchy lock  secure=true
   +5s    idleBlankTimer -> blankProcess -> omarchy-brightness-display off
          -> hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })'
   +~30s  monitor powers down its HDMI input, connector drops
06:00:47  There are no outputs - creating placeholder screen
06:00:53  Got removal for monitor "FALLBACK" which was not previously tracked
06:00:53  The Wayland connection experienced a fatal error: Invalid argument
06:00:55  Omarchy shell exited with status 255; relaunching.
          -> first line again

checkStrandedLock() recovers the orphaned lock, but beginLock() then calls armBlankTimer(), so 5 s later the shell turns DPMS back off — the same condition that killed the previous one.

The relaunch budget does not catch this. omarchy-launch-shell gives up after 5 relaunches in 60 s, but a cycle takes ~47 s, so it sits at ~1.3/min and the loop runs unbounded. The guard covers fast crash loops; this one is paced by the monitor's standby timer.

A possible explanation for differing reports. The loop requires the connector to actually disappear, not just a dark panel. Sampling every 3 s through a sustained DPMS-off:

t+30s   connected     modes=2560x1440   monitors=HDMI-A-1
t+33s   disconnected  modes=(empty)     monitors=FALLBACK
t+36s   connected     modes=2560x1440   monitors=HDMI-A-1     <- monitor-watch reload
t+75s   disconnected  modes=(empty)     monitors=FALLBACK

status reads disconnected and the mode list empties — the panel stops answering EDID. omarchy-hyprland-monitor-watch recovers it with hyprctl reload, so while unlocked this is only a flap; locked, every flap kills the shell. A display that keeps its link alive in standby would presumably only show the single crash per wake reported here.

Workaround, outside Omarchy: forcing the connector on at the kernel level with a cached EDID, so it never disappears while the panel sleeps. With that in place, a locked session held 1 m 45 s produced 0 fatal errors and 0 relaunches, against 891 on the previous boot — which supports the connector vanishing being what drives the loop, rather than DPMS-off on its own.

System: Omarchy 4.0.0.r1827.gb86d450-1, kernel 7.1.9-arch1-2, Hyprland 0.56.2, Quickshell 0.3.1-1, Intel N95 / Alder Lake-N UHD Graphics (i915), MSI MD272QXP 2560x1440@60 over HDMI.


Diagnostics gathered and written up with AI assistance (Claude). All log excerpts and measurements above are captured from the affected machine.

ledubois avatar Aug 25 '26 18:08 ledubois

Confirming this exact failure on NVIDIA/DisplayPort with Omarchy 4.0.1.

Environment:

  • Omarchy 4.0.1-1
  • Hyprland 0.56.2-1
  • Quickshell 0.3.1
  • NVIDIA RTX 4080 SUPER, driver 610.57.04
  • ASUS PG279Q connected as DP-2 at 2560x1440@144
  • Kernel 7.1.8-arch1-3

This occurrence was an idle-lock/DPMS wake.

Relevant sequence:

12:00:15 kernel: nvidia-modeset: GPU:0: ... ROG PG279Q (DP-2): Failed to initialize G-SYNC 12:00:15 kernel: nvidia-modeset: GPU:0: ... ROG PG279Q (DP-2): Failed to initialize G-SYNC 12:00:16 omarchy-shell: There are no outputs - creating placeholder screen 12:00:16 omarchy-shell: Not creating lock surface ... not backed by a valid wayland output 12:00:18 Hyprland: error in client communication (old shell PID) 12:00:18 omarchy-shell: Got removal for monitor "FALLBACK" which was not previously tracked 12:00:18 omarchy-shell: The Wayland connection experienced a fatal error: Invalid argument 12:00:19 omarchy-shell relaunched under a new PID 12:00:20 omarchy-shell: lock-stranded: recovering 12:00:20 omarchy-shell: secure=true 12:00:25 PAM password authentication succeeded

Hyprland remained alive and no coredump was generated. Only omarchy-shell/Quickshell exited and relaunched.

The additional clue on this machine is that nvidia-modeset reports two G-SYNC initialization failures immediately before Wayland temporarily has no outputs. That suggests the FALLBACK/no-output transition is being triggered by the NVIDIA DisplayPort wake handshake here.

0x4A756E65 avatar Aug 26 '26 16:08 0x4A756E65

Tested the "pin a cached EDID via drm.edid_firmware=" mitigation implied by the connector-drop theory above. Result: no effect — same crash, same signature, same rough frequency.

Setup:

  • Dumped the live EDID (/sys/class/drm/card1-HDMI-A-1/edid, 256 bytes) and forced it via kernel cmdline: drm.edid_firmware=HDMI-A-1:edid/sceptre-f27.bin, baked into the UKI (Limine) and confirmed active post-reboot via /proc/cmdline.
  • Single external monitor, HDMI-A-1, Sceptre F27 1920x1080@60.

Result after reboot, first idle cycle (~6 min in, matches lock: 300):

15:34:17 omarchy-shell[1022]: INFO qt.qpa.wayland: There are no outputs - creating placeholder screen
15:34:18 omarchy-shell[1022]: WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
15:34:20 omarchy-shell[1022]: WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
15:34:35 uwsm_hyprland.desktop[958]: error in client communication (pid 1022)
15:34:35 omarchy-shell[1022]: WARN: The Wayland connection experienced a fatal error: Invalid argument
15:34:35 omarchy-shell[5964]: Omarchy shell exited with status 255; relaunching.

4 crashes logged in the first few minutes post-boot, same FALLBACK placeholder pattern as before the override. Connector currently reads status: connected, 256-byte EDID — override is active, made no measurable difference.

One new detail: this batch fired at initial idle-lock entry, not only on wake-from-lock as in the reports above — so the trigger isn't limited to the wake path either.

Combined with taufderl's eDP-laptop report (no physical connector to ever drop), this points away from "the connector actually disconnects" and toward a race purely inside Hyprland/quickshell's own output add/remove handling around the DPMS-off dispatch, independent of real EDID/hotplug state.

Environment: Omarchy 4.0.1-1, Hyprland 0.56.2-1, quickshell 0.3.1-1, kernel 7.1.9-arch1-2, Intel Alder Lake-N UHD Graphics (i915) — same GPU family as ledubois's report above.

Filed by Claude Sonnet 5 via Claude Code.

0utrider avatar Aug 26 '26 21:08 0utrider

Confirming on another hardware profile — AMD Barcelo iGPU, single LG 4K over HDMI — with a data point I haven't seen in this thread yet: a 1:1 DRM-level correlation between the crash and a real kernel connector drop, plus a clean before/after across the Quattro migration on otherwise identical hardware.

Environment

  • Omarchy 4.0.1-1 (from 4.0.0-1 on 2026-08-25)
  • Hyprland 0.56.2-1, aquamarine 0.14.0-2
  • quickshell 0.3.1-1 (repo package, not -git)
  • qt6-base 6.11.2-2, Linux 7.1.9-arch1-2
  • AMD Barcelo APU (amdgpu) — the only GPU in the session
  • Single monitor: LG HDR 4K on HDMI-A-1, 3840x2160@60, scale 1.666667
  • No suspend involved — zero PM/suspend entries this boot. Pure idle → lock → blank → wake.

1:1 correlation over one boot

Counted across 2026-08-25 21:45 → 2026-08-27 16:17:

signal source count
drm: Connector HDMI-A-1 disconnected hyprland.log 5
qt.qpa.wayland: There are no outputs - creating placeholder screen journal 10 (2 per event)
error in client communication (pid …) Hyprland 5
The Wayland connection experienced a fatal error: Invalid argument shell 5
Omarchy shell exited with status 255; relaunching. supervisor 5
lock-stranded: recovering lock plugin 5

Every lock cycle this boot ended this way — no misses, no extras. Previous boot: 8 crashes, 18 FALLBACK removal warnings.

What aquamarine sees

The OP theorised a transitional placeholder output. On this machine it is a genuine kernel hotplug: the panel de-asserts HPD across the DPMS cycle, and since it is the only output, Hyprland falls back to headless.

drm: Got a hotplug event for /dev/dri/card1
drm: Connector 109 connection state: 2
drm: Connector HDMI-A-1 disconnected
drm: Disabling output HDMI-A-1
drm: Connector HDMI-A-1 enabledState changed true -> false
drm: HDMI-A-1 is not connected, clearing stale crtc 95
GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] …   <- headless FALLBACK
...
drm: Connector 109 connection state: 1
drm: Connector HDMI-A-1 connected
drm: Mode 0: [email protected]  (preferred)

FALLBACK is only ever visible to the shell over the Hyprland IPC — never as a wl_output. That is precisely why Qt reports "no outputs" and quickshell is left with zero surfaces to attach the lock to:

15:47:43.821  INFO qt.qpa.wayland: There are no outputs - creating placeholder screen
15:47:43.987  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
15:47:43.988  DEBUG: Not creating lock surface for screen QScreen(0x7f47bc3a95d0, name="") as it is not backed by a valid wayland output.
15:47:44.463  INFO qt.qpa.wayland: There are no outputs - creating placeholder screen
15:47:45.207  DEBUG: Not creating lock surface for screen QScreen(0x7f478d9c3770, name="") …
15:47:46.109  uwsm_hyprland.desktop[2378]: error in client communication (pid 1396700)
15:47:46.190  WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
15:47:46.268  WARN: The Wayland connection experienced a fatal error: Invalid argument
15:47:46.470  Omarchy shell exited with status 255; relaunching.
15:47:47.530  INFO: Launching config: "/usr/share/omarchy/shell/shell.qml"
15:47:48.982  DEBUG qml: omarchy lock … lock-stranded: recovering

Note the ~2.1s window between the first declined lock surface and Hyprland's protocol kill — the client holds ext_session_lock_v1 with zero lock surfaces for that entire span.

Clean before/after at the Quattro migration

This box ran Omarchy 3.x with hyprlock/hypridle until 2026-08-22. From pacman.log:

2026-08-22 14:39:30  installed omarchy (4.0.0-1)
2026-08-22 14:41:17  removed hyprlock (0.9.6-2)
2026-08-22 14:41:17  removed hypridle (0.1.8-1)

Crashes per boot (exited with status 255):

boot period lock stack crashes
-4, -3 → 2026-08-14 hyprlock (3.x) 0
-2 Aug 14 → Aug 22 15:10 hyprlock (3.x); migration landed in this boot's tail, session not restarted 0
-1 Aug 22 15:11 → Aug 25 21:45 Quattro / quickshell lock 8
0 Aug 25 21:45 → Aug 27 16:17 Quattro / quickshell lock (4.0.1) 5

Same monitor, same cable, same GPU, same kernel series throughout. The regression tracks the lock implementation, not the hardware.

Trigger

shell/plugins/lock/Service.qml:410 → omarchy-brightness-display off → hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })', armed unconditionally 5s after every lock by idleBlankTimer (:415). With no opt-out (#7507) there is no user-side mitigation short of patching the packaged file, which every upgrade reverts.

Side note: the crash wall is sticky

grep -rn clear_crashed_lockscreen /usr/share/omarchy/ returns nothing. The supervisor relaunches in ~1.3s and the lock plugin retakes the lock (secure=true ~3s after the crash), but Hyprland keeps painting the crashed-lockscreen wall over what is by then a working lock screen. It is typeable-through — PAM authenticated 11s after one of today's crashes and the session unlocked normally — but nothing on screen tells the user that, and the wall's own advice (killall -9 hyprlock) is a dead end on Quattro, as #6684 noted. Possibly worth pairing with #6888.

idr4n avatar Aug 27 '26 13:08 idr4n

Worth checking before touching anything: the monitor's own power menu.

Mine (MSI MD272QXP) offers Off and Standby under Power. It was on Off — the panel drops its link when it blanks, which is what makes the connector vanish. Switched to Standby, the failure stopped: 5 h 58 blanked overnight, 4 lock cycles, connector connected throughout, 0 crashes. Same machine logged 878 the day before. No kernel parameters, stock Omarchy.

Only applies where the connector actually drops and the display has such a setting — no help for the internal-panel case above.

ledubois avatar Aug 30 '26 12:08 ledubois

I’m seeing the same FALLBACK-monitor crash pattern on NVIDIA, but with a fully recorded SIGABRT showing Qt Quick’s OpenGL backend failure.

Environment:

  • Omarchy 4.0.1-1
  • Quickshell 0.3.1-1
  • Qt 6.11.2
  • Hyprland 0.56.2-1
  • Linux 7.1.9.arch1-2
  • NVIDIA 580.178.04 (nvidia-drm, GPU PCI ID 10de:1cb6)

This is recurrent: coredumpctl recorded nine Quickshell SIGABRT crashes across August 30–31, including rapid restart loops.

The latest incident occurred during a no-output transition:

qt.qpa.wayland: There are no outputs - creating placeholder screen
quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
QWaylandGLContext::makeCurrent: eglError: 0x3003
QRhiGles2: Failed to make context current.
Failed to create RHI (backend 2)
FATAL: Failed to initialize graphics backend for OpenGL.

The core shows Qt deliberately aborting through QMessageLogger::fatal, with the failing path running through libQt6Quick, QWindow::event, QWaylandWindow::sendExposeEvent, and QWaylandWindow::updateExposure.

An earlier burst was directly correlated with the idle lock:

lock-system: lock-timeout
process-start: lock omarchy-system-lock
lock-requested
lock-pending: screen-stabilizing
QWaylandGLContext::makeCurrent: eglError: 0x3003
FATAL: Failed to initialize graphics backend for OpenGL.

There was no OOM kill and ample available RAM/swap. NVIDIA DRM subsequently logged Failed to allocate NVKMS memory for GEM object, although those messages occurred after the latest abort and therefore do not by themselves establish the driver as the root cause.

This suggests the same output/DPMS transition can fail through an EGL/OpenGL allocation path on NVIDIA, rather than only producing the fatal Wayland protocol error originally reported.

Filed by GPT-5 via Codex.

jvdeepak avatar Aug 31 '26 11:08 jvdeepak

Additional security-impact data point: desktop contents briefly visible

I can reproduce the same crash/recovery signature during S3 suspend/resume, but the visible effect is not limited to a bar flicker or the "Oopsie daisy" screen.

On resume, my external DisplayPort monitor briefly showed the actual desktop and open application contents for approximately 100 ms before the password prompt appeared. The Oopsie-daisy screen was also visible very briefly during recovery.

The journal still indicates that the compositor-held session lock remained active and authentication was not bypassed:

13:25:42.308  omarchy lock: lock-requested
13:25:42.844  omarchy lock: secure=true
13:25:42.918  kernel: PM: suspend entry (deep)
13:26:02.976  kernel: PM: suspend exit
13:26:04.535  qt.qpa.wayland: There are no outputs - creating placeholder screen
13:26:04.739  Not creating lock surface ... not backed by a valid wayland output
13:26:07.453  quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked
13:26:07.657  The Wayland connection experienced a fatal error: Invalid argument
13:26:07.856  Omarchy shell exited with status 255; relaunching
13:26:09.704  omarchy lock: lock-stranded: recovering
13:26:10.310  omarchy lock: secure=true
13:26:13.192  PAM: Authenticated successfully
13:26:13.194  omarchy lock: secure=false / unlocked

There is no secure=false or unlock event before successful PAM authentication, so I have no evidence that input reached the applications. However, displaying application contents while the session is still locked is a visual confidentiality leak. The journal cannot identify which pixels were scanned out, but the desktop-content flash was directly observed.

This may be a stale framebuffer being scanned out while the external output reconnects, or a short interval where the output is active without a valid lock surface. One notable timing detail is that suspend begins only about 74 ms after secure=true.

Environment

  • Omarchy 4.0.2-1
  • Hyprland 0.56.2-1
  • Quickshell 0.3.1-1
  • Aquamarine 0.14.0-2
  • Kernel 7.1.9-arch1-2
  • AMD Custom APU 0932 / AMD Sephiroth GPU
  • Only active display: external LG HDR 4K on DP-1, 3840x2160@60, scale 1.5
  • Internal eDP-1 panel disabled

This system also has misc:allow_session_lock_restore = true; the stranded lock successfully recovers and still requires the password.

nickgardos avatar Sep 03 '26 10:09 nickgardos

Confirmed, still unfixed on current quattro, and this thread is the consolidation point for a family of reports. shell/plugins/lock/Service.qml, shell/plugins/services/idle/Service.qml and bin/omarchy-launch-shell are byte-identical between v4.0.0, v4.0.1, v4.0.2 and quattro HEAD, so nothing has landed against this since the release.

What is Omarchy's and what is not. The fatal error itself is upstream: when the last real wl_output goes away, Qt's Wayland plugin creates a placeholder screen, quickshell declines to back a lock surface with it (Not creating lock surface ... not backed by a valid wayland output), and the connection dies with Invalid argument while the client still holds ext_session_lock_v1 and its layer surfaces. Hyprland logs error in client communication first, so the compositor is the side that terminates it, and the offending request is not in this repository. What this repository owns is the trigger and the loop.

The trigger is omarchy-brightness-display off → hyprctl dispatch 'hl.dsp.dpms({ action = "disable" })' (bin/omarchy-brightness-display:62-64), armed unconditionally five seconds after every lock by idleBlankTimer (shell/plugins/lock/Service.qml:414-432, blankProcess at :409-412).

The loop @ledubois described reads straight off the source. checkStrandedLock (:82-92) asks omarchy-hyprland-session-locked, which reports locked because Hyprland's LOCK blocker survives the client's abnormal exit — that is exactly what the comment in bin/omarchy-hyprland-session-locked says it is there to detect. recoverStrandedLock (:94-100) then calls beginLock, and beginLock calls armBlankTimer (:136), so five seconds after recovering the orphaned lock the fresh shell re-issues the DPMS-off that killed its predecessor. Nothing carries forward the fact that the previous shell died doing this.

The relaunch budget cannot catch it, by arithmetic. bin/omarchy-launch-shell:79-87 resets attempts to zero whenever more than 60 s has elapsed since the window opened, and only then increments. At @ledubois's ~47 s cadence the counter is back at 1 before every reset; at the ~12-13 s cadence in #9843 it reaches at most 4. Anything slower than roughly 12 s between crashes runs unbounded — which is why the loops in this family are measured in hours. The cadence itself comes from the display's standby timing, not from anything in this repo; the only intervals here are the 5 s blank, the 500 ms × 20 stranded-lock probe and the 1 s launcher backoff.

Also worth recording: realScreenCount() cannot help here. It accepts any screen with a name and positive dimensions (:40-50), so it is a guard on taking a lock, not on keeping one — an already-created lock surface whose output disappears is outside what it can see.

Two comments in this thread rule out the obvious explanation. @taufderl's eDP-only laptop has no connector to drop, and @0utrider pinned a cached EDID with drm.edid_firmware= and still crashed. "The physical link goes away" is one way to get here, not the requirement — the output disappearing inside the compositor is enough, however it got there. @idr4n's before/after across the Quattro migration (0 crashes on hyprlock, then 8 and 5 on the quickshell lock, same hardware and cable) is the strongest evidence in the thread that the exposure arrived with the new lock stack.

Same defect, different reports: #9843 (idle-lock DPMS toggle and hibernate resume, loops up to ~50 minutes), #9156 (suspend/resume), #9549 (NVIDIA triple-DP, monitors coming back EDID-dead afterwards), #9745 (the same loop, with leftover quickshell/by-id log directories filling $XDG_RUNTIME_DIR as a second-order consequence — PR #9847 addresses that half). #9262 was closed by its reporter after a mode-pinning workaround, not because the defect was fixed.

Not reproduced, and here is exactly how far the attempt got. On a clean 4.0.2 VM with the session locked and secure=true, a 45-second DPMS-off/on cycle left the shell alive with the output still enabled, and adding then removing a headless output while locked was also handled cleanly. Hyprland will not drop the VM's only DRM output, so the state the crash needs — no real outputs at all, Qt on a placeholder screen — is not reachable there. Everything above is established from the source in this repository and from the logs in this thread.

Reviewed by Claude Opus 5 in Claude Code, with an independent second opinion from Codex (gpt-5.6-sol) at xhigh reasoning, which agreed on the division of responsibility and on the launcher arithmetic. This is waiting on a maintainer decision, because the candidate mitigations change behaviour rather than correct a defect: not re-arming the blank after a stranded-lock recovery, blanking without withdrawing the outputs a lock surface is attached to, and making the relaunch budget recognise a slow loop.

omarchybot avatar Sep 03 '26 12:09 omarchybot

Same signature, but a new trigger: an undock event (USB-C dock/hub), not idle-timer DPMS wake or suspend/resume.

Repro

Laptop was already idle-locked and blanked (screen dark, well past the idle timeout). I unplugged a USB-C dock. The screen came back on into the crash/relaunch flicker described in this issue (crash screen ↔ normal lockscreen, a few cycles over ~2-3s) before settling on a stable lockscreen. Password entry worked normally afterward; secure=true held throughout, session was never left unlocked.

Log excerpt:

10:18:56 kernel: thinkpad_acpi: undocked from hotplug port replicator 10:18:56 kernel: xhci_hcd 0000:3b:00.0: xHC error in resume, USBSTS 0x401, Reinit 10:19:01 kernel: usb usb3: root hub lost power or was reset 10:19:01 kernel: usb usb4: root hub lost power or was reset 10:18:57 omarchy-shell[433298]: INFO qt.qpa.wayland: There are no outputs - creating placeholder screen 10:18:58 omarchy-shell[433298]: WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick. 10:18:58 omarchy-shell[433298]: DEBUG: Not creating lock surface for screen QScreen(0x7fadb1fbee10, name="") as it is not backed by a valid wayland output. (repeats for a second placeholder screen at 10:19:00-10:19:02) 10:19:03 uwsm_hyprland.desktop[1278]: error in client communication (pid 433298) 10:19:03 omarchy-shell[433298]: WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked. 10:19:03 omarchy-shell[433298]: WARN: The Wayland connection experienced a fatal error: Invalid argument 10:19:04 omarchy-shell[653477]: Omarchy shell exited with status 255; relaunching. 10:19:05 omarchy-shell[653687]: INFO: Launching config: "/home/a/devel/omarchy/shell/shell.qml" 10:19:07 omarchy-shell[653687]: DEBUG qml: omarchy lock ... lock-stranded: recovering 10:19:08 omarchy-shell[653687]: DEBUG qml: omarchy lock ... secure=true 10:19:12 omarchy-shell[655124]: quickshell.service.pam.subprocess: Authenticated successfully.

Only one external device was actually involved — no monitor was attached to the dock — so the "no outputs" state and the untracked FALLBACK removal were purely transient/phantom, not a real display loss. The xHC error in resume ... Reinit / root hub lost power or was reset lines land in the same ~5s window, which may be worth a look: on this hardware the USB controller itself glitches during the physical undock, and that could plausibly be what knocks Hyprland's output enumeration out of sync long enough to hit the same untracked-removal race already described in this issue. Speculation on mechanism — the timing correlation is what I can confirm.

Environment

  • Omarchy: dev (47b8e729)
  • Hyprland: 0.56.2-1
  • quickshell: 0.3.1-1
  • Kernel: 7.1.9-arch1-2
  • Hardware: ThinkPad X1 Carbon 6th, undocked from a ThinkPad hotplug port replicator / USB-C dock (no monitor attached to the dock)
  • Idle config: defaults

No coredump — clean exit(255), matches the "self-heals via stranded-lock recovery" behavior already reported here.

— Claude, on behalf of e2jk

e2jk avatar Sep 04 '26 08:09 e2jk

Same signature as the OP, and not a new trigger — but a consequence of the loop that this thread has not recorded yet: while the loop runs, it kills unrelated GTK4 applications with memory-corruption crashes. Four nautilus SIGSEGVs here, three of them at one identical instruction, each landing within milliseconds of a wl_output removal.

This is worth separating from the security note in the comment above: the thread currently reads as "self-heals in about a second", and on this machine the loop ran unattended for 7h44m (~1,600 cycles at a ~17.2 s cadence) and took a file manager with it.

The loop here

Standard signature, AMD APU over HDMI, cadence ~17.2 s. One cycle:

18:00:00.397  lock-stranded: recovering / lock-requested / lock-pending: screen-stabilizing
18:00:00.918  secure=true
18:00:06.278  kernel: amdgpu [drm] REG_WAIT timeout 1us * 100 tries - dcn31_program_compbuf_size line:142
18:00:15.089  INFO qt.qpa.wayland: There are no outputs - creating placeholder screen
18:00:15.215  WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked
18:00:15.727  WARN qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
18:00:15.728  WARN qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
18:00:15.732  WARN: The Wayland connection experienced a fatal error: Invalid argument
18:00:15.802  Omarchy shell exited with status 255; relaunching.
18:00:15.906  xdg-desktop-portal-hyprland: Found output name HDMI-A-1 / HDMI-A-2 / FALLBACK   <- outputs return

Ran 16:32:36 Sep 10 → ~00:16 Sep 11, ending only at reboot; 1,660 REG_WAIT/dcn31 entries in that boot. The 5 s gap from secure=true to the amdgpu timeout is idleBlankTimer → omarchy-brightness-display off → hl.dsp.dpms disable, as already established in this thread and #8863.

What it does to other clients

Every cycle removes and re-adds the wl_output globals for all clients, not just quickshell. GTK4 has a use-after-free in its GDK Wayland output-teardown path, and that churn walks straight into it.

Four nautilus SIGSEGVs, all in the same GDK Wayland dispatch path:

g_main_context_iteration → GDK Wayland event source
  → wl_display_dispatch_queue_pending → libffi (wl listener dispatch)
    → libgtk-4.so.1.2200.4  💥

Timing against the nearest output-removal event:

nautilus SIGSEGV output-removal event gap
Aug 27 18:38:53.327 18:38:53.336 9 ms
Aug 30 17:16:02.515 17:16:02.519 4 ms
Sep 10 16:34:59.627 16:34:59.559 68 ms

Aug 27 and Aug 30 faulted at the identical address, libgtk-4.so.1.2200.4+0x4c2c46, on faulting addresses 0x558f59180008 and 0x7fef0c00d008 — a page-aligned base plus 8, i.e. a freed pointer. That offset disassembles to a teardown sequence dereferencing the pointer it just unlinked:

mov  0x28(%rdi),%rbx        ; rbx = obj->field_28
movq $0x0,0x28(%rdi)        ; obj->field_28 = NULL
test %rbx,%rbx
je   ...
mov  0x8(%rbx),%rdi         ; <-- faults; rbx already freed
call *...                   ; then destroys it

The Sep 10 crash is the same corruption caught one step later, in calloc under g_malloc0 from a Wayland listener callback. rax held exactly fault_addr >> 12, which is glibc's safe-linking REVEAL_PTR — so the pointer came off a poisoned tcache freelist rather than being a bad dereference at the crash site. The fault address sat 4.1 MiB into a 192 MiB unmapped hole at the 64 MiB-aligned 0x7faa54000000. Heap corruption from the earlier teardown, tripped by the next allocation.

Attribution, to be clear

The use-after-free is GTK4's, not Omarchy's — it wants a GNOME/GTK report, and I am not claiming otherwise. Two things make it relevant here:

  • This repo owns the trigger and the repetition. A single output flap might never lose the race; ~1,600 of them unattended is a different proposition. The Aug 15 crash on this machine has the same faulting offset but predates omarchy-shell in that boot entirely (zero omarchy-shell journal lines), so the GTK bug is reachable from ordinary output churn too — the loop just supplies it in bulk.
  • It changes the blast radius of this issue. Any long-lived GTK4 client is exposed for as long as the loop runs, and the failure mode is heap corruption, which does not always present as a clean crash.

Caveat on the evidence: Arch's debuginfod returns 404 for both gtk4 (477f17f7cd58ab318122235231ef03fd75e5c520) and nautilus (154032690c375968d9732a711b2e6674ca392ec7) at these builds, so the GTK frames are offset-level only. I have not named the GDK function and am not going to guess at it; the nearest exported symbols in that region are unrelated statics and would be misleading.

Environment

  • Omarchy 4.0.2-1, Hyprland 0.56.2-1, quickshell 0.3.1-1
  • gtk4 1:4.22.4-1, nautilus 50.2.2-1, glib2 2.88.3-1, mesa 1:26.2.1-1
  • Kernel 7.1.9-arch1-2
  • AMD Ryzen 7 8745HS / Radeon 780M — HawkPoint1 [1002:1900] (rev b3), same GPU family as #8863
  • Two Sceptre F24 on HDMI-A-1 and HDMI-A-2, 1920x1080@60, scale 1
  • Idle config: defaults

Not reproducible on demand — it needs the loop running and a GTK4 client to lose the race; nautilus survived roughly nine cycles before dying. No user data was lost in any of the four crashes.

Filed by Claude Opus 5 via Claude Code, on behalf of the machine's owner.

jbellars avatar Sep 11 '26 11:09 jbellars

Another confirmed instance, on AMD Picasso/Raven2 hardware via plain S3 suspend — adding mainly as another data point for the hardware/trigger spread already documented here.

19:15:32  omarchy lock: lock-requested / secure=true
19:15:35  kernel: PM: suspend entry (deep)
01:11:04  kernel: PM: suspend exit
01:11:05  INFO qt.qpa.wayland: There are no outputs - creating placeholder screen
01:11:05  DEBUG: Not creating lock surface for screen ... not backed by a valid wayland output.
01:11:08  WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
01:11:08  WARN: The Wayland connection experienced a fatal error: Invalid argument
01:11:08  Omarchy shell exited with status 255; relaunching.
01:11:09  INFO: Launching config: "/usr/share/omarchy/shell/shell.qml"
01:11:11  DEBUG qml: omarchy lock: lock-stranded: recovering

Self-healed in ~2s after relaunch, secure=true held throughout, no unauthenticated access observed.

Environment: Omarchy 4.0.3-1, Hyprland 0.56.2-2, kernel 7.2.3-arch1-3, AMD Picasso/Raven2 APU (Radeon Vega), single internal panel laptop, no external monitors.

Filed by Claude Sonnet 5 via Claude Code.

srince77 avatar Sep 12 '26 20:09 srince77

Also reproducing on Omarchy 4.0.3-1, Hyprland 0.56.2-2, Quickshell 0.3.1-1 and Qt Wayland 6.11.2-1 with a Samsung monitor. Logs show “There are no outputs”, followed by a fatal Wayland “Invalid argument” error. The shell exits with status 255, relaunches, and reports “lock-stranded: recovering”. The password prompt returns within a few seconds. Repeated several times in one session.

davidjpramsay avatar Sep 13 '26 13:09 davidjpramsay

Another failure mode from the same no-output/session-lock transition, this time with a symbolized SIGSEGV core rather than the usual clean exit 255.

Environment:

  • Omarchy 4.0.3-1
  • Hyprland 0.56.2-2
  • Quickshell 0.3.1-1
  • Qt 6.11.2
  • Intel i915

Timeline for PID 35545:

22:09:57  monitorremoved>>DP-1
22:09:57  focusedmon>>FALLBACK,3
22:09:57  monitoradded>>FALLBACK
22:09:57  qt.qpa.wayland: There are no outputs - creating placeholder screen
22:09:57  Not creating lock surface ... not backed by a valid wayland output
22:09:58  QML IPC handlers begin deregistering
22:09:58  quickshell receives SIGSEGV

Arch debuginfod resolves the relevant stack to:

QQmlContextData::~QQmlContextData()
QQmlVMEMetaObject::~QQmlVMEMetaObject()
QObjectPrivate::deleteChildren()
...
Reloadable::~Reloadable()
  quickshell/src/core/reload.hpp:15
WlSessionLockSurface::~WlSessionLockSurface()
  quickshell/src/wayland/session_lock.cpp:216

Quickshell’s crash-handler frames above the original fault are omitted.

This establishes that the same DP-1 removal → FALLBACK → zero real wl_output state can also crash while destroying the session-lock surface/QML context, before reaching the fatal-Wayland-error path documented elsewhere in this thread. It does not establish the exact invalid pointer or whether the underlying lifetime defect is in Qt QML or Quickshell.

This was not an OOM kill. The supervisor restarted the shell and no user data was lost. coredumpctl currently contains 35 Quickshell SIGSEGV records on this machine, although I have only established this exact stack for PID 35545 and am not claiming all 35 share it.

Filed by GPT-5 via Codex.

xkubush avatar Sep 14 '26 06:09 xkubush

Same error in client communication / Wayland connection experienced a fatal error: Invalid argument signature, but on Apple Silicon (M1 MacBook Pro 13", Arch Linux ARM/Asahi, Omarchy 4.0.4-mac.1, Hyprland 0.56.2-3, quickshell-git 0.3.0.r20.g28771c7-2, kernel 7.1.13-3-1-ARCH), and here it takes down the whole compositor, not just the shell.

Hyprland aborted (SIGABRT) three times in one day (08:41, 15:01, 18:46), taking hyprsunset, xdg-desktop-portal-hyprland and every client with it. Hyprland then restarts in safe mode (recoverycfg.lua, "lockscreen app died" screen). Journal at each crash:

uwsm_hyprland.desktop[875]: unknown object (136), message attach(?oii)
uwsm_hyprland.desktop[875]: error in client communication (pid 6504)   # omarchy-shell
uwsm_hyprland.desktop[875]: Hyprland has crashed :(
omarchy-shell[6504]: WARN: The Wayland connection experienced a fatal error: Invalid argument

Hyprland's own crash report (only the 15:01 one was non-empty) shows the abort is an assert, not the client error itself:

assertImpl<unsigned int&, int>
Render::GL::CGLFramebuffer::internalAlloc(int, int, unsigned int)
Render::IHyprRenderer::makeSnapshotFB(CSharedPointer<CLayerSurface>)
Desktop::View::CLayerSurface::onUnmap()
Desktop::View::CLayerSurface::onDestroy()

So after the protocol error Hyprland disconnects the shell, tears down its layer surfaces, fails to allocate a snapshot framebuffer for the close animation, and asserts.

Trigger: in all three cases the crash lands in the same second as systemd-logind: Power key pressed short, with the display already awake. The session was locked for 14:58 and 18:42 (omarchy-system-lock); I couldn't verify it for 08:41. An earlier wake in the same boot without the power key did not crash. The default bind is XF86PowerOff with locked = true → omarchy-menu toggle system. I have not confirmed the power menu actually opened. As a workaround I rebound it without locked = true; untested so far.

Filed by Claude Sonnet 5 via Claude Code.

plpetkov-tech avatar Sep 19 '26 18:09 plpetkov-tech

Follow-up with one more detail from the 15:01 crash report's Log tail, which I left out above: all 36 lines are

ERR from aquamarine ]: [EGL] Command eglMakeCurrent errored out with EGL_BAD_CONTEXT (0x12294): eglMakeCurrent

So Hyprland's EGL context was already invalid when the makeSnapshotFB assert fired, which is a better explanation of the abort than my earlier "allocation fails". This is visible only for the 15:01 crash. The other two crash reports are 0 bytes, and Hyprland's log doesn't reach the journal, so I can't confirm it for them. The compositor-side assert is written up separately for Hyprland; this thread's shell-side signature is unchanged.

Filed by Claude Sonnet 5 via Claude Code.

plpetkov-tech avatar Sep 19 '26 18:09 plpetkov-tech

Not a new trigger, and not a new report of the loop — the signature here matches the OP exactly on Omarchy 4.0.4-1 / quickshell 0.3.1-1 / Hyprland 0.56.2-2 (291 relaunches in one boot, ~12.3 s apart, supervisor guard never tripped). I am adding one thing only, because I think the thread's attribution of the collateral GTK4 crash is wrong in a way that matters for the GTK report.

The nautilus crash is not in the wl_output teardown path. It is zwp_linux_dmabuf_feedback_v1.done.

Two nautilus SIGSEGVs here, both inside the loop, both at the offset already recorded in this thread — libgtk-4.so.1.2200.4+0x4c2c46:

Sep 16 13:12:22  PID 3940828
Sep 18 21:45:05  PID  375155
kernel: nautilus[375155]: segfault at 794300015008 ip 0000794316ec2c46 \
  error 4 in libgtk-4.so.1.2200.4[4c2c46,794316a89000+57c000]

wayland and glib2 do have debuginfo on Arch's server, so the dispatch frame below GTK resolves even though GTK itself does not:

#0  0x0000794316ec2c46 in ?? () from /usr/lib/libgtk-4.so.1
#3  ffi_call (...) at ../src/x86/ffi64.c:1165
#4  wl_closure_invoke (closure=0x63d68e9c8830, target=0x63d68d46ea00, opcode=0, flags=1)
      at ../wayland-1.26.0/src/connection.c:1243
#5  dispatch_event (...) at ../wayland-1.26.0/src/wayland-client.c:1732
#7  wl_display_dispatch_queue_pending (...) at ../wayland-1.26.0/src/wayland-client.c:2243

Reading the interface name straight out of the target wl_proxy, and the message out of the closure:

(gdb) x/s **(char***)0x63d68d46ea00
0x79431709bd3f: "zwp_linux_dmabuf_feedback_v1"
(gdb) print closure->message->name       $1 = "done"
(gdb) print closure->message->signature  $2 = ""
(gdb) print closure->count               $3 = 0

Object id 27, opcode 0, zero arguments — that is zwp_linux_dmabuf_feedback_v1.done, not a wl_output event. So the GTK bug sits in the linux-dmabuf feedback path, and a GTK report pointed at GDK's output teardown would be sent to the wrong place.

It is a use-after-free, and the core proves the memory was released to the kernel. The faulting instruction takes a pointer out of the object, clears the field, then dereferences the value it just unlinked — the Code: bytes on the kernel line disassemble to:

mov  rbx, [rdi+0x28]
mov  qword [rdi+0x28], 0
test rbx, rbx
je   ...
mov  rdi, [rbx+0x8]        <-- faults

with rdi=0x63d68d456af0 (the object) and rbx=0x794300015000 (the stale pointer). That address is not merely freed — it is unmapped. From info files on the core:

0x0000794300000000 - 0x0000794300015000 is load202
0x0000794300016000 - 0x0000794300063000 is load203

The page holding rbx is a hole between the two segments: malloc released it back to the OS, so the read of rbx+8 took SIGSEGV instead of silently reading recycled heap. On a run where the arena is not trimmed, the same bug corrupts memory quietly.

Why this belongs in this thread rather than only in GTK's tracker: the feedback event is re-sent when the compositor's dmabuf tranches change, which is what the output churn in this loop produces — in bulk, unattended, for every long-lived GTK4 client in the session. Inferred, not proven: I have the event identity from the core, not the GTK-side reason it frees the object. The blast-radius argument already made in this thread stands either way.

Caveats. gtk4 debuginfo is still a 404 on Arch's debuginfod at build-id 477f17f7cd58ab318122235231ef03fd75e5c520, so I have not named the GDK function and will not guess at it. nautilus 50.3.1-1 (build-id 6542cdc18c20b4f13c3f7796b77132f59820b4ad) now returns 200, which is what makes the frames below GTK readable. Versions: gtk4 1:4.22.4-1, nautilus 50.3.1-1, glib2 2.88.3-1, wayland 1.26.0-1, mesa 1:26.2.2-1, AMD GPU, single Dell U2719DX on HDMI-A-1. Not reproducible on demand — it needs the loop running and a GTK4 client to lose the race. No user data was lost in either crash.

Filed by Claude Opus 5 via Claude Code.

qaz027 avatar Sep 20 '26 02:09 qaz027

Automated duplication check: this issue looks similar to #6628, which covers the same lock shell dies on output loss. I keep that one open and close this one to keep the discussion in one place.

If you feel this is the wrong decision, please open the issue again with a note on the difference.

bjarneo avatar Sep 21 '26 09:09 bjarneo