Repository navigation
Conversation
[Medium impact] The changes appear safe to merge. SummaryThe PR skips lock-wallpaper preloading for placeholder screens and calls the update’s sleep helper through
Reviews (4) · Last reviewed commit: "update: use OMARCHY_PATH for stay-awake ..." · Reviewed by Greptile |
fba1980 to
b654945
Compare
…n DPMS Quickshell crashes observed as SIGSEGV in libgdk-3 -> libwayland-client -> libjemalloc (coredump 2240185, 3538603) when displays go through DPMS/monitor hotplug. Hyprland emits monitorremoved/monitoradded with a placeholder FALLBACK or QScreen(name="") while the lock's WlSessionLockSurface and wallpaper Variants still decode. GDK is in the process via QT_QPA_PLATFORMTHEME=gtk3 and its Wayland monitor handling (gtk#692439ec, not yet released) can free-then-reuse the output name. Mitigate in Omarchy's lock: treat FALLBACK and empty-name screens as non-real (isRealScreen) and skip Variants image decoding for them. Reduces the window where a dangling output is touched during idle.screensaver/lock. Related: omacom#11824 omacom#15004 omacom#17221
b654945 to
0ff8d9b
Compare
|
Thanks for digging into this, @qualvey. I reviewed it and found a regression in the lock. I also don't think the change reaches the crash. Details below. The lock no longer engages when FALLBACK is the only output. When the last display goes away, Hyprland's FALLBACK output reaches the shell as a named 1920x1080 screen.
On a machine that loses its last display, for example a closed laptop unplugged from its monitor, the machine would suspend unlocked. The change doesn't reach the crash. The stack in #18494 is in GDK's own Wayland connection ( On #15717 is an older pull request for the same crash. It starts the shell with The I pushed nothing: the lock regression comes from the approach itself, and the cause is handled elsewhere. Second opinion: Codex Medium and muse-wonder via pi (thinking high). Both said this change does not touch GDK's connection, and both preferred #15717 for the cause. They could read this review in progress, so that agreement is not guaranteed independent. Both also flagged the FALLBACK path through This now waits on the maintainer, to decide between this, #15717, and whether either is still needed after #18325. |
|
Tested this on real hardware where the monitor actually drops HDMI hotplug in standby, not with Setup: Omarchy 4.5.0-3, Hyprland 0.56.2, quickshell 0.3.2.r7.g2b4501a-1, x86, one monitor on HDMI-A-1 that drops its link on DPMS off. I applied only the Patched shell, about 2 min locked:
Unpatched 4.5.0 on the same machine, earlier today: 155 exits with status 255 over about 5 hours of lock cycles, with the same sequence. The crash I see is not a signal. Qt calls The patch may still prevent the GDK SIGSEGV from #18494, which I did not hit in either run. I could not confirm that. Separately, this PR also changes Tested with help from Claude Code (Opus 5.5). |
Fixes #18494
Quickshell SIGSEGVs in libgdk-3 -> libwayland -> jemalloc when the session goes through DPMS/idle lock (coredump 2240185). Hyprland emits a placeholder FALLBACK/QScreen(name="") while the lock's WlSessionLockSurface and wallpaper Variants decode - GDK is in the shell via QT_QPA_PLATFORMTHEME=gtk3 and its zxdg_output handling (gtk 3.24.52, fixed in 692439ec not yet released) then use-after-frees.
Mitigate on Omarchy side: treat FALLBACK and empty-name screens as non-real (
isRealScreen) and skip Variants image source for them. Narrows the window where a dangling output is touched. Reproduced withhyprctl monitor disabledmock - samedangling screen objectwarnings as crash, now filtered.Related: #11824 #15004 #17221
Test:
hyprctl eval 'hl.monitor({output="HDMI-A-1", disabled=true/false})'no longer decodes wallpaper for FALLBACK; journal no longer shows Variants load for it. Shell auto-restarts still work if crash does occur.Filed by Muse Spark 1.2 Contributor via opencode.