Stranded-lock recovery never completes: requestSessionLock() early-returns on sessionLock.secure, so the session stays on "lockscreen app died" forever
System details
Lenovo Yoga C640 laptop, single internal display, Arch, # omarchy-dev 4.0.0.r1744.gf002044-1, quickshell-git 0.3.0.r20.g28771c7-1, # hyprland 0.56.2-1
What's wrong?
Summary. If the shell reloads its QML while the session is locked, the lock surface
is destroyed and the session is left on Hyprland's "lockscreen app died" wall. The
shell notices this and starts its own recovery — lock-stranded: recovering — but
the recovery then stalls permanently, so the user still needs a TTY. The recovery path
is one early-return away from working.
Deterministic reproducer (no display flakiness or idle timing needed):
- Lock the session (
omarchy system lock). - From another machine over SSH, or a TTY, write any file into a plugin folder the
shell has loaded — e.g.
touch ~/.config/omarchy/plugins/<your-plugin>/Foo.qml. Anything that triggersLocal plugin changed, reloading:will do. - Return to the machine: "Oopsie daisy, it looks like you locked your screen but the lockscreen app died", and it never resolves.
Hit on 2026-08-14 by a routine install.sh that copies plugin folders — the session
happened to be locked at the time.
What the log shows. quickshell never dies here; only the lock does:
14:59:16 omarchy-shell[143971]: DEBUG qml: Local plugin changed, reloading: yoda.emojis
14:59:16 omarchy-shell[143971]: DEBUG qml: omarchy lock … lock-stranded: recovering
14:59:16 omarchy-shell[143971]: DEBUG qml: omarchy lock … lock-requested
14:59:16 omarchy-shell[143971]: DEBUG qml: omarchy lock … lock-pending: screen-stabilizing
(nothing further — the session stayed this way until a TTY login 34 s later)
Where it stalls — shell/plugins/lock/Service.qml:
recoverStrandedLock() (L94) correctly calls beginLock() (L128), which sets
lockRequested = true, logs lock-requested, and calls queueSessionLock() (L56).
pendingSessionLockTimer (L441, interval: 100, repeat: true) then retries
requestSessionLock() (L63) ten times a second — forever, silently:
function requestSessionLock() {
if (!lockRequested || sessionLock.locked || sessionLock.secure) return // L64
if (sessionLockStabilizeTimer.running) return // L65
if (!hasRealScreen()) {
… logEvent("lock-pending: no-real-screen") // L68
return
}
…
sessionLock.locked = true // L76
}
The log proves it returns at L64, not later: the last event is
lock-pending: screen-stabilizing, and lock-pending: no-real-screen is never emitted
even though L68's condition would have logged it (lastEvent differs). So execution
never reaches L67 — it exits on sessionLock.locked || sessionLock.secure.
That is the trap: a stranded lock means the compositor's ext-session-lock is still
held, so sessionLock.secure is already true. The shell therefore concludes a lock
is in place and declines to create one — while no client is drawing anything. The
retry timer spins at 10 Hz achieving nothing, and because logEvent() (L110) only
records state changes, the spin leaves no trace.
locked (L37) is defined as lockRequested || sessionLock.locked || sessionLock.secure,
so the same secure flag also makes recoverStrandedLock()'s own guard (L95,
if (… || locked || …) return) treat the orphan as a healthy lock on any later attempt.
Suggested fix. Recovery has to release the orphaned lock before requesting a new
one — the internal equivalent of hl.clear_crashed_lockscreen() — rather than treating
secure as proof that a working lock exists. Distinguishing "the compositor is secured
by a surface this shell owns" from "the compositor is secured by a dead client"
would make the existing lock-stranded: recovering path complete on its own. A bounded
retry that gives up loudly (instead of an unbounded silent 10 Hz spin) would also have
made this obvious from the log.
Aggravating detail. Hyprland's on-screen recovery text advises killall -9 hyprlock,
but hyprlock is not installed on Quattro — the lock is the omarchy.lock Quickshell
plugin, so following that advice literally leads nowhere. The actual recovery is
hyprctl eval 'hl.clear_crashed_lockscreen()' from a TTY or another machine.
Related but distinct: the shell exiting on a screen with no valid Wayland output (reported separately). Here the shell survives the whole time — only the lock is lost — so any watchdog that keys on "is quickshell running" will not notice this one.
Workaround in use here. A 30-second user timer that, when the shell is alive,
calls hl.clear_crashed_lockscreen() and immediately re-locks if it returns ok
(it returns ok only when the lock client is genuinely gone, and refuses while a
healthy lock exists, so polling it is safe). Plus a guard in our own installer that
refuses to write plugin files while the session is locked.
Confirming this on a second, quite different machine — and with a different trigger that reaches the identical terminal state, which I think strengthens the diagnosis here and adds one caveat for the suggested fix.
Desktop, dual DP monitors, NVIDIA RTX 3080 (nvidia 610.57.04), omarchy 4.0.0-1 (packaged, not -dev), quickshell-git 0.3.0.r20.g28771c7-1, hyprland 0.56.2-1.
No QML reload was involved here. The lock client aborted, and I have the coredump that #6628 explicitly could not get ("No coredump. … This made root-cause analysis impossible from the shell side").
The abort
omarchy-shell[1553]: FATAL: Tried to show lockscreen surfaces without active lock
coredumpctl (SIGABRT, quickshell -n -p /usr/share/omarchy/shell):
#6 abort (libc.so.6 + 0x25685)
#7 n/a (libQt6Core.so.6 + 0x98d3a)
#8 _ZN6QDebugD1Ev (libQt6Core.so.6 + 0x111d11)
#9 _ZN13WlSessionLock14updateSurfacesEbPS_ (quickshell + 0x836e1)
#10 _ZN13WlSessionLock11qt_metacallEN11QMetaObject4CallEiPPv
#11-16 … QQmlPropertyPrivate::write / QObjectWrapper::setProperty …
#30 _ZN9QQmlTimer5eventEP6QEvent (libQt6QmlMeta.so.6 + 0x20a5c)
So: a QQmlTimer fires → JS writes a property on WlSessionLock → updateSurfaces() → qFatal(). In Service.qml the timer that writes to sessionLock on a repeat is pendingSessionLockTimer (L442, interval: 100) → requestSessionLock() (L63) → L76 sessionLock.locked = true.
Why that matters for the suggested fix
The write at L76 is only reached when L64 does not early-return — i.e. on a freshly started instance, where sessionLock.secure is still false. That instance then sets locked = true while the compositor's ext-session-lock is still held by the dead client, and quickshell hard-aborts rather than returning an error.
Concretely: removing the L64 early-return on its own converts this permanent stall into a crash loop. That's not hypothetical — it is what my machine did, because quickshell's crash handler re-execs a fresh instance which then walks straight into L76:
23:16:27 service-ready → lock-stranded: recovering → lock-requested → lock-pending: screen-stabilizing
23:16:36 service-ready → lock-stranded: recovering → …
23:16:48 service-ready → lock-stranded: recovering → …
23:16:55 service-ready → lock-stranded: recovering → … FATAL + SIGABRT
23:17:05 service-ready → lock-stranded: recovering → …
23:17:36 (last event — frozen here)
A fresh service-ready every ~8–12s for ~70s. It stops only when strandedLockRetryTimer (L449) spends its budget (L453, 20 × interval: 500); the surviving instance is then left exactly as described in this issue:
{"locked":true,"requested":true,"pending":true,
"sessionLocked":false,"secure":true,
"lastEvent":"lock-pending: screen-stabilizing","lastEventAt":"2026-08-14T21:17:36.145Z"}
secure:true with sessionLocked:false — no surfaces, no prompt, and L64 now bails forever. TTY required.
This all supports the fix proposed here: recovery has to release the orphaned compositor lock first. Just relaxing the secure guard moves the failure from "stalls silently" to "aborts repeatedly", since WlSessionLock::updateSurfaces() treats "no active lock" as fatal rather than recoverable. Distinguishing "secured by a surface this shell owns" from "secured by a dead client" — as suggested above — is what both paths actually need.
Side note: the documented recovery is blocked by a guard
omarchy-restart-shell is explicitly written for this case ("a LOCK session without an active locker … a restart plus re-lock is the only way back in without a reboot"), but it refuses here. Its guard (L30-31) is:
locking=$(… omarchy-shell lock status | jq -r '.secure or .requested')
if [[ $locking == "true" ]]; then
echo "Refusing to restart Omarchy shell while the session is locked." >&2
A stranded shell reports secure:true, requested:true, so the guard mistakes the wedge for a healthy lock screen and exits 1 — the one state the script exists to fix. Adding .sessionLocked (false whenever no lock surfaces exist) would let it tell the two apart:
# treat "secure but nothing is drawing it" as stranded, not as a live locker
locking=$(… | jq -r '(.sessionLocked == true) and (.secure or .requested)')
With that distinction the sequence the script already implements — kill, relaunch via hyprctl dispatch, then relock_session() — recovered my session from a TTY without a reboot, and left it properly locked so I still authenticated normally.
Confirming the same stall on a third machine, with one extra observation for the suggested fix.
- omarchy 4.0.0-1 (packaged), quickshell-git 0.3.0.r20.g28771c7-1, hyprland 0.56.2-1
- Single internal display (eDP-1)
- Trigger: idle lock at 16:50:10 (secure=true), then saves under ~/.config/omarchy/plugins/pa.tray at 16:51:27 and 16:53:26
- Same log: Local plugin changed, reloading: pa.tray → lock-stranded: recovering → lock-requested → lock-pending: screen-stabilizing (nothing further)
- quickshell PID 48735 never died; no coredump
After the stall, omarchy-shell lock status is still:
{"locked":true,"requested":true,"pending":true,"sessionLocked":false,"secure":true,
"lastEvent":"lock-pending: screen-stabilizing"}
But Hyprland is not holding a session lock: omarchy-hyprland-session-locked exits 1, solitaryBlockedBy is WINDOWED/CANDIDATE (no LOCK), and there is no lock layer — only omarchy-bar / omarchy-background.
So recovery is stuck on sessionLock.secure even after the compositor has already released. Releasing an orphan ext-session-lock is not enough if Quickshell can keep a stale secure=true on the replacement WlSessionLock. Fingerprint PAM (omarchy-lock-fingerprint) also keeps spawning every ~30s against that ghost lock (Verification timed out / PAM code 9).
Unlocked from tty3; desktop session left with the ghost lock still asserted.
Same failure on a fourth machine, but with the two outcomes in this thread occurring in the same occurrence — which I think collapses them into one race rather than two paths. Also adding the symbolized abort site, since the stack above has offsets only.
Environment: omarchy 4.0.0-1 (packaged), quickshell-git 0.3.0.r20.g28771c7-1, hyprland 0.56.2-1, qt6-base 6.11.1-1, kernel 7.1.8-arch1-3, single internal eDP-1, Intel Alder Lake-P Iris Xe.
The plugin-save trigger and the abort are the same bug
The reproducer in the issue body (write a file into a loaded plugin folder while locked) produced a stall with no crash for @parnoldx, while @langdal's abort came with "No QML reload was involved". Here the plugin-save reload produced the abort — four times in 2.5 minutes — and then recovered on its own:
21:14:46 lock-system: lock-timeout <- ordinary idle lock
21:14:53 Local plugin changed, reloading: io.github.edwardpayne.kube-status
21:14:55 lock-stranded: recovering -> lock-requested -> lock-pending: screen-stabilizing
21:15:34 FATAL: Tried to show lockscreen surfaces without active lock <- SIGABRT, pid 230217
21:15:46 FATAL ... <- pid 231933
21:16:35 FATAL ... <- pid 234931
21:17:57 FATAL ... <- pid 240329
21:18:02 secure=true <- a relock won the race; session usable
Every reload matched a file mtime in the plugin directory to within ~1.5 s, including README.md and Model.test.js — so it really is any file, not only QML. (The last crash, 21:17:57, followed a Model.test.js save by 1.7 s — edits to the plugin continued throughout while the session sat locked.) Of roughly ten reload cycles in that window, four aborted and the rest reached secure=true.
That ratio is the point: the same trigger produces a permanent stall on one machine and a crash loop on another because it is a race on whether the pre-reload lock is still registered when the new instance asks for one. Neither outcome is a separate bug.
Symbolized abort site
quickshell-git ships debug symbols, so frame #9 resolves to src/wayland/session_lock.cpp:106, reached with updateSurfaces(show=true, old=nullptr).
The fall-through is in realizeLockTarget, L134-136:
if (!this->manager->lock()) this->lockTarget = false;
this->updateSurfaces(true, old); // runs even though lock() just failed
and then L106:
if (show) {
if (!this->manager->isLocked()) {
qFatal() << "Tried to show lockscreen surfaces without active lock";
SessionLockManager::lock() (session_lock/session_lock.cpp:27-28) returns false when SessionLockManager::sessionLocked() is true — precisely the stranded-lock case, where the process still holds the pre-reload lock. So the failure result is computed, assigned to lockTarget, and then ignored: control proceeds into updateSurfaces(true), whose first act is to abort because the lock it just failed to take is not held.
The neighbouring failure branches in realizeLockTarget and updateSurfaces (no ext-session-lock-v1 support, null surfaceComponent, surface component of the wrong type) all use qCritical/qWarning + unlock() + return. This one aborts the process instead.
So the abort itself is upstream quickshell's (git.outfoxxed.me/quickshell/quickshell), not Omarchy's — but it is exactly why the Omarchy-side fix proposed here needs to release the orphaned compositor lock rather than just relax the L64 guard, as @langdal argued. Until quickshell treats a failed lock() as recoverable, any recovery path that re-requests a lock while the orphan is still registered can abort instead of stalling.
No data loss here and no TTY needed, since the race eventually resolved on its own.
Filed by Claude Opus 5 via Claude Code.
Reproduced independently two days later, triggered by a normal idle-timeout lock (not manual plugin editing). First lock cycle logged lock-stranded: recovering and self-healed; a second idle-timeout lock ~5 min later failed completely silently — no lock-stranded log line at all, omarchy-system-lock exited 0 but the lock surface never rendered, session stayed stuck until switching to a TTY. No coredump for Hyprland/quickshell either time, consistent with this being a logic bug (early-return on stale sessionLock.secure) rather than a crash.
Filed by Claude Sonnet 5 via Claude Code (on behalf of the user who hit it).
Fifth machine, same versions (omarchy 4.0.0-1, quickshell-git 0.3.0.r20.g28771c7-1, hyprland 0.56.2-1), desktop, dual monitor (HDMI-A-1 + DP-2), NVIDIA. Trigger: pytest writing __pycache__/*.pyc under a plugin dir while the session was idle-locked — three reloads in 70 s (bin/__pycache__/*.pyc, bin/omarchy-rgb, tests/test_cli.py), each Local plugin changed, reloading: <plugin> → lock-stranded: recovering → lock-requested → lock-pending: screen-stabilizing, then nothing. Stall, no crash, quickshell PID lived the whole time; TTY + reboot.
One detail for why secure reads true on the replacement WlSessionLock — even after Hyprland has released, as @parnoldx observed: it isn't compositor state. ~QSWaylandSessionLock (src/wayland/session_lock/lock.cpp:17) calls destroy() on the wl object but never clears QSWaylandSessionLockManager::active — a process-wide static (session_lock/manager.cpp:16, session_lock.cpp:14). Consequences for the rest of the process:
SessionLockManager::sessionLocked()staystrue, soSessionLockManager::lock()(session_lock/session_lock.cpp:27) refuses — that's the branch feeding theqFatal@EdwardPayne symbolised.SessionLockManager::isSecure()→manager()->isSecure()readsactive->hasCompositorLock()on a freed object — staletrue. That's thesecure:true, sessionLocked:falsestatus everyone is seeing.
So any same-process recovery is blocked until quickshell exits; hl.clear_crashed_lockscreen() fixes Hyprland's side but not the shell's view of it. Two quickshell-side fixes: null manager->active in ~QSWaylandSessionLock, and return after a failed lock() in realizeLockTarget instead of falling into updateSurfaces(true). Omarchy-side, reloadPlugins() → unloadPluginServices() destroying omarchy.lock is what starts it (keepLoaded: true in its manifest only protects panels, not services) — deferring the plugin reload while omarchy.lock reports locked, or exempting that service from unload, avoids the whole chain.
Filed by Claude Fable 5 via Claude Code.
Additional reproduction on omarchy 4.0.0-1 / quickshell-git 0.3.0.r20.g28771c7-1 / hyprland 0.56.2-1, hybrid Intel UHD 620 + AMD RX 560 (i915 + amdgpu).
Same abort as already in this thread (FATAL: Tried to show lockscreen surfaces without active lock, WlSessionLock::updateSurfaces at session_lock.cpp:106, QML timer → sessionLock.locked = true). Three times today on this machine:
- 11:14 — write into
~/.config/omarchy/plugins/shavanced.notification-center→ plugin reload →lock-stranded: recovering→ SIGABRT (matches the plugin-save path already reported). - 11:39 — same stranded-recovery abort.
- 12:22 — different trigger: session already locked (
secure=truesince 11:39). User switched to tty3 (getty 12:21:12, login 12:22:09). Quickshell aborted at 12:22:10, one second after the TTY login. Hyprland loggedatomic drm request: Permission deniedthen laterRestoring after VT switch. Nolock-strandedline immediately before this one.
After the 12:22 abort the crash-relaunch recovered and re-locked (secure=true at 12:22:20). Coredumps: PIDs 2801368, 3252281, 4011769. Reports under ~/.cache/quickshell/crashes/.
Filed by Grok 4.6 via Grok Build.
The conflicting lock is a dangling pointer in the same process, not a dead client's lock — core-dump evidence.
Same abort as reported above, same versions (omarchy 4.0.0-1, quickshell-git 0.3.0.r20.g28771c7-1, hyprland 0.56.2-1), same trigger as @parnoldx: saves under ~/.config/omarchy/plugins/<id>/ while the session was locked. I have a core dump, and the internal state points somewhere different from the "orphaned lock held by a dead client" reading.
At the qFatal (session_lock.cpp:106), the crashing WlSessionLock has lockTarget = false and manager->mLock = nullptr. So SessionLockManager::lock() returned false — and since mLock is null, it can only have returned via the second clause, SessionLockManager::sessionLocked(), i.e. the process-global QSWaylandSessionLockManager::active != nullptr.
That global pointer is dangling. active = 0x7f4e253acf20, but the memory has been freed and reused by a QString — its vtable slot reads 0x65006e00610050, UTF-16LE text ("Pane"/"lToo"/"lTip"), not a vtable.
The cause is in session_lock/lock.cpp. unlock() clears the global at L29 (this->manager->active = nullptr), but ~QSWaylandSessionLock() (L16-21) only calls destroy() and leaves active set. A QML reload destroys the lock without unlocking — intentionally, so the compositor keeps the session locked — and thereby poisons the process permanently: isLocked() returns true forever, so no lock can ever be acquired again in that process.
Two consequences for the fixes discussed here:
- Releasing "the orphaned compositor lock" can't work, because there is no lock object left to release — only a stale pointer. The fix belongs in
~QSWaylandSessionLock(): clearmanager->activewhen the destroyed lock is the active one. - It explains the
{"secure":true,"sessionLocked":false}state in the original report.SessionLockManager::isSecure()evaluatesactive->hasCompositorLock(), reading through the freed pointer — a use-after-free whose result depends on whatever reused the heap.
Separately, the abort itself is a quickshell fall-through: realizeLockTarget() does if (!this->manager->lock()) this->lockTarget = false; and then calls updateSurfaces(true, old) unconditionally, so a failed lock always reaches the qFatal. An early return there would turn this crash into a recoverable no-op regardless of the pointer bug.
Filed by Claude Opus 5 via Claude Code.
Confirmed on current omarchy-dev, and it cost a real session today. Environment: omarchy-dev 4.0.0.r1761.g7be59e1-1, quickshell-git 0.3.0.r20.g28771c7-1, hyprland 0.56.2-1, Intel HD 630, dual DisplayPort.
I should correct myself first: while investigating #6628 I reported there that stranded-lock recovery "worked both times" on this build, implying this issue was not reproducing here. That was too confident — recovery is timing-dependent, and today it lost the race.
What it looks like
After the lock client died, the replacement shell came up and ran stranded-lock recovery, but never drew any lock surfaces. The compositor session stayed locked with nothing to authenticate against — indistinguishable from a dead compositor, and I only diagnosed it from another TTY. Hyprland itself was fine throughout (same pid, no crash report, no core dump).
omarchy-shell lock status in that state:
{"locked":true,"requested":true,"pending":true,"sessionLocked":false,"secure":true,
"realScreens":2,"lastEvent":"lock-pending: screen-stabilizing"}
It sits there indefinitely. Exactly the early-return this issue describes:
function requestSessionLock() {
if (!lockRequested || sessionLock.locked || sessionLock.secure) return
sessionLock.secure is true whenever the compositor session is locked — including when the lock is a dead predecessor's orphan, which is precisely the case recovery exists to handle. So sessionLock.locked = true is never reached, no surfaces are created, and pending never clears.
Patch that recovered the session
Dropping that one term was enough — sessionLock.locked alone already covers "we hold this lock ourselves":
if (!lockRequested || sessionLock.locked) return
After applying it and restarting the shell, the new instance took the lock over cleanly (sessionLocked: true, then secure: true), drew its surfaces, and a normal password unlock restored the session — no reboot. Worth a maintainer's eye on whether the secure term guards a case I am not seeing, but the self-held case appears fully covered by locked.
Recovery notes for anyone stuck right now
These cost me some time and may save someone a reboot:
- A running shell will not pick up
Service.qmledits. The lock service singleton stays in memory;omarchy-shell shell rescanPluginsis not enough, andomarchy restart shelldeliberately refuses while the session is locked (it checks.secure or .requested, andsecureis exactly what is stuck true). Kill thequickshellpid instead —omarchy-launch-shellsupervises it and relaunches with fresh code. - Then run
omarchy-brightness-display on. DPMS will have powered the displays down, so even once the lock is healthy the screens stay black and still look like a dead compositor. - Check
omarchy-shell lock statusfrom a TTY to tell this apart from an actual compositor crash —sessionLocked: falsewithsecure: trueand a stucklock-pendingevent is this bug.
Filed by Claude Opus 5 via Claude Code.
Hit this tonight too — 3 crashes in a row (00:13–00:21 IDT), same trigger as reported above: a local plugin file changing (Local plugin changed, reloading: ...) while the session was locked. Same signature (FATAL: Tried to show lockscreen surfaces without active lock, WlSessionLock::updateSurfaces), same quickshell-git 0.3.0.r20.g28771c7-1. Loop self-resolved after ~8 min without a reboot.
Filed by Claude Sonnet 5 via Claude Code.
Reproduced this end to end on a disposable Omarchy VM at quattro HEAD (ed7bae4a), on the same package set everyone here reports — quickshell-git 0.3.0.r20.g28771c7-1, hyprland 0.56.2-1. @boyoyooo's trigger is the whole thing, and it takes one file write:
$ omarchy-shell lock lock
ok
$ omarchy-shell lock status
{"locked":true,"requested":true,"pending":false,"sessionLocked":true,"secure":true,...,"lastEvent":"secure=true"}
$ mkdir -p ~/.config/omarchy/plugins/repro && date > ~/.config/omarchy/plugins/repro/cache.txt
$ sleep 6; omarchy-shell lock status
{"locked":true,"requested":true,"pending":true,"sessionLocked":false,"secure":true,...,"lastEvent":"lock-pending: screen-stabilizing"}
Still frozen at that same lastEventAt 33 seconds later, same quickshell pid throughout (no crash on this run), omarchy-hyprland-session-locked still exiting 0 — so the compositor lock is genuinely orphaned and there is nothing drawing a prompt. omarchy-restart-shell answers Refusing to restart Omarchy shell while the session is locked. and exits 1, which is the state it exists to fix.
The mechanism @ancelik and @Varantha describe from their core dumps is right, and it is the reason recovery cannot work here. ~QSWaylandSessionLock (session_lock/lock.cpp:16-21) destroys the protocol object without clearing QSWaylandSessionLockManager::active — only unlock() does that (lock.cpp:29) — so after the lock service is destroyed the process-global pointer dangles. sessionLocked() stays true and refuses every later lock(), and isSecure() reads through freed memory, which is why secure:true sits next to sessionLocked:false. Whether that freed byte reads true or false is what decides between the silent stall and @EdwardPayne's qFatal; they are one bug, not two.
Two things I checked that may save someone time:
- A new process recovers; the same process never can. Killing quickshell from a TTY produced
lock-stranded: recovering→secure=truewithin a second, twice. That is the path #6692 fixed, and it works precisely because a fresh process starts with a clean global. Nothing reachable from QML can reset it in-process. - Routing the local-plugin watcher through a whole-engine
Quickshell.reload()does not help. This has come up as an approach for the stale-plugin-code problem in #6981, so it is worth saying: I tried it on the same VM and got a byte-identical wedge — same pid,lock-stranded: recovering→lock-pending: screen-stabilizing, frozen. Quickshell does have a handover that would have saved the live lock (WlSessionLock::onReloadreparents the oldSessionLockManager,session_lock.cpp:25-34), but it cannot fire here: the lock service is created bycomp.createObject(serviceHost)after an async plugin scan, so it does not exist during the reload phase and getsonReload(nullptr)(core/reload.cpp:10-18), while the old generation's lock is destroyed with it. It also has a side effect nobody has mentioned: because it never callsreloadPlugins(), it bypasses the guards in all three open PRs below.
On those: #7169, #7572 and #7605 all attack this, from different angles. I tested #7572's guard on the VM — with it applied, the same plugin write while locked left the session sessionLocked:true, secure:true and drawing normally, so the deferral does hold on the file-watcher path. I am not calling which one should land; that is the maintainer's to decide, and each has open review comments on its own thread. One caveat worth carrying to whichever does: root.locked (Service.qml:37) ORs in the process-global sessionLock.secure, so in a process where that value is already stale — the state @parnoldx saw, secure:true with Hyprland having released — a guard keyed on it stays engaged forever.
The two defects behind the abort are upstream and want filing at git.outfoxxed.me/quickshell/quickshell if nobody has: ~QSWaylandSessionLock should clear manager->active, and realizeLockTarget should return after a failed lock() instead of falling into updateSurfaces(true) (session_lock.cpp:134-136).
A second opinion was taken from Codex at xhigh reasoning. It reached the Quickshell.reload() conclusion independently and added the point about root.locked staying true in an already-poisoned process. Independence is not guaranteed — it can read this session's own working notes.
Until something lands: if you are wedged right now, a TTY plus killing the quickshell pid gets you back without a reboot, and omarchy-brightness-display on afterwards if the screens stay black.
Another core dump, and it narrows where lockSurfaceOrphaned can and cannot fire.
Same package set as everyone above — omarchy 4.0.0-1, quickshell-git 0.3.0.r20.g28771c7-2, hyprland 0.56.2-1, single display. SIGABRT on 2026-08-24 11:07:30 EDT, PID 98610.
#7 abort (libc.so.6)
#8 QDebug::~QDebug (libQt6Core.so.6) <- qFatal
#9 WlSessionLock::updateSurfaces(bool, WlSessionLock*)
#10 WlSessionLock::qt_metacall
#12 QQmlPropertyPrivate::write
#13 QV4::QObjectWrapper::setProperty
#30 QQmlTimer::event
The reason I think this is worth adding rather than a fourth "me too": the backtrace pins the value of sessionLock.secure at the moment of the abort, and it is false.
The only property write that reaches updateSurfaces from a QQmlTimer is sessionLock.locked = true at Service.qml:76, driven by pendingSessionLockTimer. Reaching line 76 requires getting past line 64:
if (!lockRequested || sessionLock.locked || sessionLock.secure) return
So secure must have read false on this run, while the compositor was still holding the orphaned ext-session-lock. That is consistent with @ancelik's and @Varantha's reading that isSecure() is a read through freed memory whose result depends on heap reuse — and it is the same thing @omarchybot measured directly ("the replacement service read secure:false while the compositor still held the lock").
Consequence for #7169. Its orphan branch is gated on
readonly property bool lockSurfaceOrphaned: sessionSecured && !lockOwned
On this crash path sessionSecured is false, so lockSurfaceOrphaned is false and neither restartForOrphanedLock() nor the new requestSessionLock() guard fires — the code falls through to line 76 and aborts exactly as it does today. #7169 looks like it fixes the stall variant (where the freed byte reads true) while leaving the abort variant untouched, even though both are the same defect. @omarchybot already flagged this as "worth a look"; the core dump says it is not hypothetical.
If that reading is right, a guard derived from secure cannot be sound in a poisoned process, because secure is precisely the value that has been corrupted. The dependable signals are the ones that do not go through the dangling pointer: the compositor's own view (solitaryBlockedBy containing LOCK, which omarchy-hyprland-session-locked already reads) and sessionLock.locked.
Separate and much simpler: omarchy-restart-shell refuses in the one state it exists to fix. Replaying both predicates against captured lock status JSON (no compositor involved):
| state | sessionLocked |
secure |
requested |
.secure or .requested |
(.sessionLocked==true) and (.secure==true or .requested==true) |
|---|---|---|---|---|---|
| healthy lock | true | true | true | refuse ✓ | refuse ✓ |
| stranded (stall variant) | false | true | true | refuse ✗ | recover ✓ |
| stranded (abort variant) | false | false | true | refuse ✗ | recover ✓ |
| fresh shell, orphan held | false | false | false | recover ✓ | recover ✓ |
| mid-acquire | false | false | true | refuse ✗ | recover ✓ |
#7169's narrowed form is correct on all five. Worth noting it fixes the mid-acquire row too, which I do not think has been called out: today a restart is refused during the window after lock lock but before the surface exists.
For anyone wedged right now, the workaround that does not need a patched tree is to run the corrected guard yourself from a TTY and, if it says stranded, quickshell kill -p /usr/share/omarchy/shell --any-display followed by hyprctl dispatch 'hl.dsp.exec_cmd("omarchy-launch-shell")' — a fresh process starts with a clean global and its own #6692 recovery re-secures the session. omarchy-brightness-display on afterwards if the screens stay black.
I have not attempted a local QML fix. Per the analysis in this thread nothing reachable from QML can reset QSWaylandSessionLockManager::active, so the fix belongs in ~QSWaylandSessionLock() (clear manager->active when the destroyed lock is the active one) and in realizeLockTarget() (return after a failed lock() instead of falling into updateSurfaces(true)).
Filed by Claude Opus 5 via Claude Code. The core dump and the predicate replay are from this machine; the session_lock/lock.cpp reasoning is this thread's, not independently re-derived by me.
@NoSleepBTW is right, and so is the title — they are two different reads of the same freed byte, and reconciling them changes what the fix has to key on.
Checked against quickshell at 28771c7 (the commit everyone in this thread is running) and re-reproduced on a disposable Omarchy 4.0.0-1 VM with the same package set: quickshell-git 0.3.0.r20.g28771c7-2, hyprland 0.56.2-1.
Why recovery always starts — and this part is not the use-after-free
The replacement lock service is built by comp.createObject() in shell.qml, not by a Quickshell reload handover, so Reloadable::componentComplete defers onReload to a zero-delay timer (core/reload.cpp:10-18) that cannot fire until the event loop turns again. Every binding in the new Service.qml is therefore evaluated while WlSessionLock::manager is still nullptr, and in that state both accessors return false unconditionally — isLocked() falls back to lockTarget, and isSecure() short-circuits on manager != nullptr (session_lock.cpp:163-169). So root.locked (Service.qml:37) caches false, and it never re-evaluates afterwards: its only notifier secureStateChanged is wired solely to that instance's own SessionLockManager::locked/unlocked (session_lock.cpp:37-38), and that instance never acquires an mLock. That is why lock-stranded: recovering appears in every report here, deterministically, rather than only when the heap happens to cooperate.
Why the very next read disagrees
secure is Q_PROPERTY(bool secure READ isSecure NOTIFY secureStateChanged) (session_lock.hpp:67) with no cached member, so the imperative read at Service.qml:64 calls the getter again — and by then manager is set, so it resolves to manager()->isSecure() → active->hasCompositorLock() (session_lock/manager.cpp:21-23), through the pointer ~QSWaylandSessionLock left dangling (session_lock/lock.cpp:16-21; only unlock() clears it, lock.cpp:29). @ancelik's dump found that block reused by a UTF-16 string, which writes a zero byte at every other offset, so which way it reads is down to what reused the heap:
- true →
Service.qml:64returns, the 10 Hz timer spins silently forever. This is the stall, and it is the state the title describes. - false → falls through to
Service.qml:76→SessionLockManager::lock()refuses because the process-global is non-null (session_lock/session_lock.cpp:27-28) →realizeLockTargetrecords that inlockTargetand callsupdateSurfaces(true, old)anyway (session_lock.cpp:134-136) → line 105 tests the instance'smLock, which is null →qFatal. This is @NoSleepBTW's backtrace, and once past line 76 it is deterministic, not a race.
Both readings are correct. The title is accurate about the stall and silent about the abort, so @EdwardPayne's "one race, not two paths" is right about them being one defect, and @langdal's and @ancelik's "the guard is the problem" and "the pointer is the problem" are the same statement one level apart.
One small correction to the backtrace reading, which nothing turns on: sessionLockStabilizeTimer (Service.qml:434) is also a QQmlTimer calling requestSessionLock(), so the QQmlTimer::event frame does not single out pendingSessionLockTimer. On the timers generally — both are armed only by queueSessionLock() (Service.qml:56-61) and stopped only on a lock that succeeds or an unlock, neither of which can happen in a poisoned process; and both are children of the service Item, so nothing survives the teardown to write into a later generation.
The stall is the wedge; the abort is the recovery
@boyoyooo's loop clearing itself after ~8 minutes without a reboot is the most useful thing here, because it says what eventually fixes this. A fresh process starts with active == nullptr — the manager is a function-local static (session_lock/session_lock.cpp:14-22) — so its lock() succeeds and #6692's stranded recovery works. Measured on the VM: FATAL at 12:29:39, replacement process reporting secure=true at 12:29:41.9. Two seconds, no TTY. The loop persists only while something keeps destroying the lock service in each new process, which is what @EdwardPayne's log shows directly (every abort within ~1.5 s of a plugin file save); when the writes stop, the next process stays locked and healthy.
So the outcomes are the opposite way round from how they read: the crash variant self-heals, and the stall variant is the permanent wedge — and the stall exists only because line 64 consults a value that has been freed.
What that means for the three open PRs
Measured on the VM, at the heads listed:
- #7169 (
25ee6d2) applied whole: a plugin write while locked left the sessionsessionLocked:true secure:trueon the same pid, drawing normally. ItsunloadPluginServices()retention holds on this trigger. - #7169's
Service.qmlalone, with stockshell.qmlso the process still gets poisoned:lock-stranded: recovering→FATAL→ fresh process →secure=truetwo seconds later.lockSurfaceOrphaned: sessionSecured && !lockOwnedis built on a binding, and per the first section that binding is cached false before the manager exists, sorestartForOrphanedLock()never fires and execution reaches line 76. @NoSleepBTW predicted exactly this from the core dump; it reproduces. Note this is still better than today — a two-second supervised restart instead of a TTY — but it is not the path the PR intends to take.
Coverage of the paths that can destroy a live lock service, read off the three diffs:
| teardown path | stock | #7169 | #7572 | #7605 |
|---|---|---|---|---|
reloadPlugins() from the local-plugin watcher |
destroys | retains | defers the reload | retains |
reloadPlugins() from an explicit rescan (shell rescanPlugins) |
destroys | retains | defers | destroys |
_syncServices() drop loop (plugin disabled, removed, or an empty scan) |
destroys | destroys | retains | destroys |
whole-engine Quickshell.reload() (the candidate in #6981) |
destroys | destroys | destroys | destroys |
#7572 is the only one that covers _syncServices(); #7169 is the only one that fixes bin/omarchy-restart-shell, whose current .secure or .requested guard refuses in precisely the state the script exists for, and its narrowed predicate is correct on all five rows of @NoSleepBTW's table including the mid-acquire one. The three collide textually — all of them rewrite unloadPluginServices() or reloadPlugins() — so only one QML approach can land, and combining #7572 with #7605 would need the full-versus-local reload intent preserved through finishPluginReload, or a deferred full rescan returns as a local "keep first party" one. Which combination lands is the maintainer's call; the numbers above are what each one covers.
Whatever lands here, the two defects behind the abort are upstream at git.outfoxxed.me/quickshell/quickshell and are not reachable from QML at all: ~QSWaylandSessionLock should clear manager->active when the destroyed lock is the active one, and realizeLockTarget should return after a failed lock() instead of falling into updateSurfaces(true). There is no way to reset that process-global from the shell — only a new process does it.
If you are wedged right now, @NoSleepBTW's TTY workaround is the one that works: kill the quickshell process and let omarchy-launch-shell bring up a fresh one, then omarchy-brightness-display on if the screens stay black.
Reviewed twice: by Claude Opus 5 running the triage, and independently by Codex at xhigh reasoning. Codex disagreed usefully in three places and this comment reflects its corrections — it caught that #7169's head rewrote checkStrandedLock() and recoverStrandedLock() to key on sessionLock.locked rather than locked, so its orphan branch is reachable when the binding cached true and only dead on the cached-false branch; that the QQmlTimer frame cannot identify which of the two timers fired; and that alternation between successive ticks, which an earlier draft leaned on, is neither established nor needed. Its independence is not guaranteed, since it can read this session's working notes; the measurements above are from the VM, and the quickshell reasoning was re-derived from the source at 28771c7 rather than taken from this thread.
Reproduced on quickshell 0.3.1-1, Qt 6.11.2-2, Omarchy 4.0.1.
Trigger is not idle-lock or EGL — it is the shafayet.finder local plugin being hot-reloaded every ~7 seconds. Each reload races with lock screen initialization, reaching the same fatal path:
FATAL: Tried to show lockscreen surfaces without active lock
Same stack: QQmlTimer::event → QML property write → WlSessionLock::updateSurfaces → qFatal → abort.
Three crashes in three minutes (02:03, 02:05, 02:06), then quickshell refused to restart after crashing within 10 seconds. The lock screen state machine never recovers — secure:true with sessionLocked:false, exactly as described in this issue.
The Finder plugin also emits ReferenceError: chmodStateDirProc is not defined at Finder.qml:917 on every load, though this appears cosmetic and unrelated to the crash.
Filed by opencode/big-pickle via opencode.
@shafayetejaman — reproduced your exact package set on a clean VM. Four things are new since the last update here; the mechanism itself is unchanged and I am not restating it.
1. quickshell 0.3.1 is not a fix, and 4.0.1 is the first release to ship it. Omarchy moved from the quickshell-git build to packaged quickshell in 16264056 (#7769), which is why you are the first report on 0.3.1. Between the old build 28771c7 and tag v0.3.1 there are 11 commits and none of them touch src/wayland/session_lock.cpp, src/wayland/session_lock/, src/core/reload.cpp or src/core/generation.cpp — those trees are byte-identical. Every line cited in this thread holds unchanged on what you are running.
2. Reproduced on 0.3.1, both variants. Disposable VM, quickshell 0.3.1-1, qt6-base 6.11.2-2, omarchy 4.0.1-1, hyprland 0.56.2-1. omarchy-shell lock lock → sessionLocked:true secure:true; one date > ~/.config/omarchy/plugins/repro6888/cache.txt → sessionLocked:false secure:true pending:true, frozen at lock-pending: screen-stabilizing for 60 s, same pid. Writing that file every 2 s then produced the crash variant.
3. The crash variant ends somewhere this thread has not described: no shell at all. Three aborts in twelve seconds, each hitting two separate give-up rules:
12:36:46 FATAL: Tried to show lockscreen surfaces without active lock
12:36:46 ERROR: Quickshell crashed within 10 seconds of launching. Not restarting to avoid a crash loop.
12:36:52 FATAL: Tried to show lockscreen surfaces without active lock
12:36:52 ERROR: Quickshell crashed within 10 seconds of launching. Not restarting to avoid a crash loop.
12:36:58 FATAL: Tried to show lockscreen surfaces without active lock
12:36:58 ERROR: Quickshell crashed within 10 seconds of launching. Not restarting to avoid a crash loop.
12:36:58 Giving up on the Omarchy shell after 6 relaunches in under a minute.
That first message is your "refused to restart after crashing within 10 seconds": it is quickshell's own crash relaunch declining at src/launch/main.cpp:67-71, because each replacement instance re-locks and re-crashes before it has been alive ten seconds. Quickshell then exit(-1)s, Omarchy's supervisor sees a death and relaunches, and bin/omarchy-launch-shell:80-87 gives up after more than five relaunches in a minute — and since default/hypr/autostart.lua starts that supervisor only once, at hyprland.start, nothing brings it back. Final state on the VM: no quickshell process, no supervisor, hyprctl locked still true. So this corrects the note in the 25 Aug comment that the abort self-heals via a fresh process — it self-heals only while the trigger is slower than the relaunch budget, and a plugin that rewrites itself every few seconds is not.
One consolation, which the second reviewer caught and which is worth knowing if you are wedged now: that state is easier to get out of than the stall, not harder. omarchy-restart-shell refuses against a stalled shell because it reads .secure or .requested from it (bin/omarchy-restart-shell:29-35), but with no shell running there is no status to read, so it takes the relock path and works. From a TTY, omarchy-restart-shell is the recovery for the no-shell state; hyprctl eval 'hl.clear_crashed_lockscreen()' is still the one for the stall.
4. Upstream has fixed half of this since 0.3.1, and treats the other half as caller error. Tracked at quickshell-mirror/quickshell#296, closed completed on 25 Aug, with #962 and #975 closed against it as duplicates. Commit afb2c27 rewrites realizeLockTarget() so a failed manager->lock() warns, unlocks and returns instead of falling into updateSurfaces(true), which removes the qFatal and with it everything in point 3. It is on master only — v0.3.1 was tagged five days earlier, so no release contains it.
Clearing manager->active in ~QSWaylandSessionLock was proposed on that thread and not taken. 9f59d0a instead adds a ~WlSessionLock that warns "Session lock object was destroyed without unlocking. The session will stay locked in case this was accidental", and the header has always documented it: "If the WlSessionLock is destroyed or quickshell exits without setting locked to false, conformant compositors will leave the screen locked... The lock dying will not expose your session, but it will render it inoperable." That is the contract, not a bug. Reading master's source rather than a build of it: after an upstream bump the replacement service's lock() still fails on the stale process-global, so the session still strands — it just logs Failed to acquire session lock. instead of aborting. The stall is Omarchy's to fix, by not destroying the lock service in the first place, which is what #7169, #7572 and #7605 each do differently. Which of those lands is the maintainer's call and I am not making it here; one housekeeping note, that #7572 no longer applies to quattro — it conflicts at bin/omarchy-plugin-add, where the URL-safety check has since landed.
Until something does land, the guard from the original report still holds: do not write under ~/.config/omarchy/plugins/ while the session is locked.
Checked a second time by Codex at xhigh reasoning, reading the same two trees independently. It agreed on the version comparison, on the upstream split, and on the crash chain, and it corrected this comment on one point: I had called the no-shell state strictly worse than the stall, and it is not, for the omarchy-restart-shell reason given above.
Another confirmation on omarchy 4.0.1-1 (quickshell 0.3.1-1, qt6-base 6.11.2-2, Hyprland 0.56.2-1, Intel i915), with one detail I did not see in the thread yet: on 4.0.1 a single reload while locked survives; a burst of plugin file events does not. omarchy plugin add / omarchy plugin remove produce exactly that burst.
Timeline (today, 2026-09-03, CEST)
Crash 1, 10:30:25. Screen locked (idle). I ran omarchy plugin remove <id> --yes followed by omarchy plugin add <git-url> --yes from a terminal. The shell logged Local plugin changed, reloading: <id> 13 times within one second (the delete plus the fresh clone), then:
omarchy lock 08:30:22.034Z lock-stranded: recovering
omarchy lock 08:30:22.035Z lock-requested
omarchy lock 08:30:22.035Z lock-pending: screen-stabilizing
Local plugin changed, reloading: <id>
omarchy lock 08:30:23.136Z lock-stranded: recovering
omarchy lock 08:30:23.136Z lock-requested
omarchy lock 08:30:23.136Z lock-pending: screen-stabilizing
FATAL: Tried to show lockscreen surfaces without active lock
SIGABRT, coredump present, crash dir ya12b2skt.
Controlled repro, 10:39. Screen locked deliberately, then from a terminal:
touch <plugin>/Service.qmltwice, one second apart: two reloads, twolock-stranded: recoveringcycles, no crash. The lock UI came back each time.touch <plugin>/Service.qml13 times, 80 ms apart: 13 reloads,lock-stranded: recoveringat 08:39:44.540Z, then the same FATAL and SIGABRT at 10:39:44. Crash dirya1ny4skt.
So the abort needs a second reload to land inside the screen-stabilizing window of the recovery started by the previous one. Two reloads one second apart are far enough apart on this hardware; a burst is not.
Backtrace (both crashes identical)
abort <- QDebug::~QDebug (qFatal) <- quickshell <- QQmlPropertyPrivate::write
<- QV4::QObjectWrapper::setProperty <- ... <- QQmlBoundSignalExpression::evaluate
<- QQmlNotifier::emitNotify <- QQmlTimer::event <- QCoreApplication::exec
Outcome
The compositor lock held both times (ext-session-lock failsafe), the supervisor respawned the shell within a second, and the new instance re-adopted the lock and unlocked via PAM normally. No bypass, just the crash and a second with no locker client drawn.
Relevance to the fix
This is the unloadPluginServices() path described in #7106. With #9485 merged (lock service kept loaded across reloads) the recovery cycle should never start, which removes the burst window too. Happy to re-test the burst repro on a build that includes #9485 if that is useful. Reporting from the plugin author side: I hit this by reinstalling my own plugin while away from the machine, so any plugin's install docs currently have to say "do not run this while locked".
— Willem. Investigation, repro and write-up were done with Claude Code on my machine; I reviewed it before posting.
Another reproduction, with two details I do not see in the thread yet.
Environment: omarchy 4.0.2-1 (packaged), quickshell 0.3.1-1, qt6-base 6.11.2-2, hyprland 0.56.2-1, linux 7.1.9-arch1, AMD HawkPoint (amdgpu), single external 4K display over USB-C.
Trigger: session idle-locked overnight. At 11:45:31 a coding agent working unattended wrote one file (Service.qml) into a local plugin under ~/.config/omarchy/plugins/. One reload, then the stranded-lock sequence, then nothing:
11:45:32 omarchy-shell[27008]: DEBUG qml: Local plugin changed, reloading: craig.redfilter
11:45:33 omarchy-shell[27008]: DEBUG qml: omarchy lock ... lock-stranded: recovering
11:45:33 omarchy-shell[27008]: DEBUG qml: omarchy lock ... lock-requested
11:45:33 omarchy-shell[27008]: DEBUG qml: omarchy lock ... lock-pending: screen-stabilizing
No further lock events until the machine was rebooted at 14:37. Quickshell did not abort: PID 27008 was the same before and after, and there is no FATAL line, so this is the pure recovery-stall variant described in the issue body, not the #9441 abort.
1. A single reload is enough on 4.0.2. @WillemCR observed that on 4.0.1 a single reload survives and only a burst strands the lock. Here there was exactly one Local plugin changed line in the journal and the lock was stranded.
2. The stranded-lock escape hatch in omarchy-restart-shell does not fire in this state. That script (the block starting "Restarting a live lock client would kill the lock screen...") only allows a restart-plus-relock when omarchy-shell lock status reports neither secure nor requested. After the strand, the replacement WlSessionLock reports secure=true (the same flag that stalls requestSessionLock() at L64) and lockRequested is true from the recovery attempt. So at 11:46:44 omarchy restart shell refused:
Refusing to restart Omarchy shell while the session is locked.
leaving a TTY or a reboot as the only ways back in. Whatever fix lands for the L64 early-return, the restart guard probably needs to key on the shell actually holding a lock surface rather than on .secure or .requested, otherwise the documented recovery route stays closed in exactly the situation it was written for.
Filed by Claude Fable 5.1 via Claude Code, at the request of the machine's owner.
Second independent reproduction, with a trigger worth knowing about: Python writing __pycache__ into a plugin directory.
System: omarchy 4.0.2-1 (/usr/share/omarchy/version says 4.0.0.alpha), quickshell 0.3.1-1, hyprland 0.56.2-1, Framework 12 with two external monitors (3 outputs).
What happened. I ran a plugin's own unit tests (python3 tools/test_winplugd.py) from inside its directory under ~/.config/omarchy/plugins/. Python wrote system/__pycache__/*.pyc. The watcher fired 12 Local plugin changed events within 4 ms (one per file and per watcher, it seems), the shell rebuilt its services, and the lock service ran the recovery described above, which then hung exactly at the screen-stabilizing step:
10:09:15.734 omarchy lock lock-requested <- manual lock, 25 s earlier
10:09:16.429 omarchy lock secure=true
10:09:40.114 Local plugin changed, reloading: io.github.mechanicsunlocked.winplug (x12 within 4 ms)
10:09:40.529 omarchy idle service-ready
10:09:40.976 omarchy polkit agent registered
10:09:41.133 omarchy lock lock-stranded: recovering
10:09:41.133 omarchy lock lock-requested
10:09:41.133 omarchy lock lock-pending: screen-stabilizing
(nothing further from `omarchy lock` for the rest of the day)
Quickshell did not abort here (unlike #10322); it simply stayed on Hyprland's "lockscreen app died" wall until hyprctl --instance 0 eval 'hl.clear_crashed_lockscreen()' was run from a remote shell. No lock-pending: no-real-screen was ever logged, consistent with the early return at the sessionLock.locked || sessionLock.secure guard analysed above.
Follow-on damage (details in #10299): after the failsafe was cleared, the shell stayed latched. omarchy-shell lock isLocked printed true for the next eight hours while omarchy-hyprland-session-locked exited 1 and the user was working in a terminal; the idle-timeout locks at 14:51 and 14:56 logged lock-requested / lock-pending: screen-stabilizing and never secure=true; the machine sat unlocked and the screensaver was suppressed by the isLocked guard. Only omarchy restart shell reset it.
Two suggestions besides the recovery fix:
- The watcher should ignore
__pycache__/,.git/, dotfiles and anything that is not a manifest or QML: a test run, agit commit, or an editor swap file in a plugin directory should not rebuild the lock service. - A local plugin reload should not tear down the built-in services at all, or at least never while
sessionLock.secureis true.
For plugin authors reading this: set PYTHONDONTWRITEBYTECODE=1 in any test tooling that lives in the plugin directory, and treat every write there as a shell reload.
The trigger this issue reports no longer strands the lock on current quattro. #9485 (d3d23fddd, "Honor keepLoaded for services during plugin hot-reload") makes unloadPluginServices() keep keepLoaded services across a plugin reload (shell/shell.qml:1023-1041), and omarchy.lock declares keepLoaded: true, so a file written under ~/.config/omarchy/plugins/ no longer destroys the lock service. It first shipped in v4.0.3; every report in this thread is from 4.0.0-4.0.2.
Checked on a disposable Omarchy VM running the shell from each tree, with the same steps as the report — omarchy-shell lock lock, then one file written into a plugin folder:
7eca64e26, the commit just before #9485:sessionLocked:false secure:true pending:true, frozen atlock-pending: screen-stabilizingfor 33 seconds on the same quickshell pid. This is the stall described above.quattroat902fd8aeb:sessionLocked:true secure:true pending:falseafter the single write, after a burst of 13 writes 80 ms apart (@WillemCR's case), and after an explicitomarchy-shell shell rescanPlugins. Same pid throughout, and nolock-strandedorFATALline in the journal.
Two things from this thread are unchanged on quattro, and only matter if the lock service is destroyed some other way:
requestSessionLock()still returns onsessionLock.secure(shell/plugins/lock/Service.qml:89), so a lock service rebuilt inside the same process still cannot recover. The one remaining in-process path found is deliberate:omarchy plugin disable omarchy.lockwhile locked destroys the service through_syncServices().omarchy-restart-shellstill refuses on.secure or .requested(bin/omarchy-restart-shell:29-34), so it still declines in the stalled state. #7169 changes that guard.
Reviewed by Claude Opus 5.5 and, as a second opinion, Codex Medium. Codex reached the same conclusion about #9485 and v4.0.3 on its own and found the plugin disable path; independence is not guaranteed, since it can read this session's notes. Whether this is closed as fixed in 4.0.3 is the maintainer's call.