omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Quickshell's PluginRegistry.qml leaks inotifywait watchers on every shell reload, eventually exhausting inotify instances system-wide

Open gardensazurescens opened this issue 3 months ago • 15 comments

What happened

localPluginWatcher in /usr/share/omarchy/shell/services/PluginRegistry.qml spawns an inotifywait -m -r -q -e close_write,create,delete,move --format %w%f <pluginsDir> process to watch ~/.config/omarchy/plugins. On each Quickshell restart/reload (e.g. after a config or theme change), a new inotifywait is spawned, but the previous one is not terminated. It gets orphaned and reparented to the user's systemd (--user) instance rather than being killed.

Over time these accumulate. On my system I found 1002 leaked inotifywait processes, some running 9+ hours, all watching the same plugins directory:

$ ps -eo pid,etimes,cmd | grep inotifywait | grep -v grep | sort -k2 -rn | head -5
  21023   60818 /usr/bin/inotifywait -m -r -q -e close_write,create,delete,move --format %w%f /home/<user>/.config/omarchy/plugins
  28068   60165 /usr/bin/inotifywait -m -r -q -e close_write,create,delete,move --format %w%f /home/<user>/.config/omarchy/plugins
  ...

None of these belonged to the currently-running Quickshell process (its actual children were only the clipboard wl-paste watchers) — confirming they're orphans left behind by earlier Quickshell instances.

Since fs.inotify.max_user_instances defaults to 1024, this eventually exhausts nearly the entire per-user inotify instance quota. When it does, any other application that needs an inotify watcher fails — in my case, Obsidian failed to open a vault with:

An error occurred while loading Obsidian. Error: EMFILE: too many open files, watch '/home/<user>/Cathedral/'

Expected behavior

Quickshell should terminate the previous localPluginWatcher process before/when spawning a new one on reload, or at minimum kill it on shell exit, so inotifywait processes don't accumulate indefinitely.

Steps to reproduce

  1. Use Omarchy with the default Quickshell bar for an extended period, reloading Quickshell periodically (config edits, theme changes, etc. — anything that restarts the shell).
  2. Check pgrep -af inotifywait — count of processes watching ~/.config/omarchy/plugins grows with each reload and never decreases.
  3. Eventually another application needing inotify (e.g. Obsidian, VS Code, any file watcher) fails with EMFILE: too many open files.

System details

$ omarchy version
4.0.0-1
$ pacman -Q quickshell omarchy
quickshell-git 0.3.0.r20.g28771c7-1
omarchy 4.0.0-1

Workaround

pkill -f "inotifywait -m -r -q -e close_write,create,delete,move --format %w%f .*/omarchy/plugins" frees the leaked instances immediately without needing to restart Quickshell.


Filed by Claude Sonnet 5 via Claude Code.

gardensazurescens avatar Aug 16 '26 16:08 gardensazurescens

Independent reproduction, with a driver that makes this considerably worse than "accumulates after config or theme changes".

System: Omarchy 4.0.1-1, quickshell 0.3.1-1, Hyprland 0.56.2, inotify-tools 4.25.9.0-1, kernel 7.1.9-arch1-2, AMD Ryzen 7 8745HS / Radeon 780M (amdgpu), dual HDMI.

What I found: 983 orphaned inotifywait processes, all watching ~/.config/omarchy/plugins, all reparented to systemd --user (ppid 1352), accumulated over ~14 hours in a single session. fs.inotify.max_user_instances is 1024, and the user total had reached 1022:

983  inotifywait     ← all watching the same (empty) plugins dir
 11  quickshell
  6  junie
  4  oudedetai
  3  wireplumber
  2  Hyprland

The driver isn't manual reloads. I never touched a theme or a config that day. The shell was crash-looping, and omarchy-launch-shell's supervisor faithfully relaunched it each time — 1079 times:

$ journalctl --user --since today -t omarchy-shell | grep -c "exited with status"
1079
$ journalctl --user --since today -t omarchy-shell | grep -oE "exited with status [0-9]+" | sort | uniq -c
   1079 exited with status 255

Relaunch intervals: min 16s, median 31s, mean 37.5s — ~96 relaunches/hour, sustained for 14 hours. One orphan per relaunch is enough to consume the entire 1024-instance quota in well under a day, with no user interaction at all. Crash signature, ~1:1 with the relaunches:

1077  WARN: The Wayland connection experienced a fatal error: Invalid argument
1072  WARN qt.qpa.wayland: Could not create EGL surface (EGL error 0x3000)
1072  WARN qt.qpa.wayland: eglSwapBuffers failed with 0x300d, surface: 0x0
3717  INFO qt.qpa.wayland: There are no outputs - creating placeholder screen
2635  WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked

That looks like #7380, and shares the EGL-surface failure with #7478. Whatever the crash's own cause, it turns this leak from a slow drip into quota exhaustion within a single session.

Negative control — the graceful path does not leak. I restarted the shell deliberately and watched the watcher:

BEFORE   quickshell 135015   watcher 195430
AFTER    quickshell 235047   watcher 235118   ppid=235047   ← live child
         old watcher 195430: reaped

omarchy-restart-shell uses quickshell kill -p "$CONFIG_DIR" --any-display, and that shuts down cleanly and takes the watcher with it. The leak is specific to abnormal exits — and omarchy-launch-shell's own comment describes exactly why cleanup never runs on that path:

Quickshell relaunches itself from its signal handlers, but Qt leaves through _exit() when the Wayland connection fails, raising no signal: no crash report, no relaunch, no bar.

A process leaving through _exit() cannot reap anything, so Process cleanup in PluginRegistry.qml can't be the whole fix. It may be worth having the supervisor reap strays before starting a replacement, or giving the watcher a die-with-parent guarantee (PR_SET_PDEATHSIG, or a process group the supervisor tears down) so it cannot outlive the instance that spawned it regardless of how that instance dies. Confirming this: none of the 983 were children of the live quickshell — no signal was involved, and coredumpctl list --since today shows no coredumps at all, consistent with _exit() rather than a crash.

Downstream impact, concretely. This is the "any other application that needs an inotify watch" harm in the original report, observed in the wild. An unrelated third-party app (a curses TUI installer) died at startup with:

File "inotify/adapters.py", line 57, in __init__
File "inotify/calls.py", line 50, in _check_nonnegative
inotify.calls.InotifyError: Call failed (should not be -1): (-1) ERRNO=(24) [Too many open files]

Its own inotify use was 4 instances; it simply asked for one while the table was full. That failure was silent from Omarchy's side — nothing in the desktop reported being at the limit, and the only symptom was an unrelated program breaking in a way that pointed at itself. Diagnosing it meant counting inotify fds across /proc.

pkill -f 'inotifywait.*omarchy/plugins' cleared all 983 immediately and the shell respawned exactly one; the user total went 1022 → 41.

jbellars avatar Aug 30 '26 05:08 jbellars

@jbellars' reproduction settles the question this issue had been stuck on, and it changes the severity rather than the mechanism. Re-measured today on a disposable Omarchy worker VM (quickshell 0.3.1-1, inotify-tools 4.25.9.0-1 — the same versions).

The trigger is neither reload nor filesystem activity

The title says "on every shell reload". That is the one path that does not leak: omarchy-restart-shell:66 kills through quickshell kill -p ... --any-display, which is an orderly QML teardown, and Quickshell's Process destructor reaps the child. @jbellars' negative control shows the same thing.

It is also not a leak per filesystem event, which was the other obvious candidate. Tracing it: PluginRegistry.qml:648-652 sends each event to localPluginChanged; its only consumer is shell.qml:761-765, which restarts a 150ms debounce and calls reloadPlugins() (shell.qml:739); that ends in pluginRegistry.rescan(), which spawns a short-lived bash scan and never touches the watcher. ensureUserDir() runs once, from Component.onCompleted at PluginRegistry.qml:715, and pluginRegistry is a ShellRoot property (shell.qml:18) that no reload destroys. One watcher, for the life of the process.

It is one orphan per abandoned shell generation that got as far as starting its watcher — which under a crash loop means roughly one per relaunch. Stating it that way rather than "per abnormal death" matters, because three cases leave none: a generation that dies before its watcher starts, a generation started once the quota is already full (the new watcher fails immediately), and the crash handler's in-place execve(), which abandons the QML generation without the process ever dying.

The supervisor will run that loop indefinitely

bin/omarchy-launch-shell:79-87 gives up after more than five relaunches inside a 60-second window, but the window resets whenever a gap exceeds 60s, and there is no long-window, consecutive-failure or lifetime ceiling. Six deaths need five gaps, so at @jbellars' minimum 16s spacing they span 80s and the window has already reset; at the 31s median the counter reaches two. The breaker cannot trip at any cadence slower than roughly one death every twelve seconds, which is why the loop ran unattended instead of stopping itself.

The exit status corroborates the path: Qt's Wayland fatal-error handler calls _exit(-1), and a parent sees the low eight bits of that as 255 — exactly the status logged 1079 times. _exit() raises no signal and runs no destructors, which is also why coredumpctl had nothing to show.

Measured, five SIGKILLs spaced 20s apart under a real supervisor on the worker:

ROUND 1  ORPHAN_COUNT=1   INOTIFY_INSTANCES=33
ROUND 2  ORPHAN_COUNT=2   INOTIFY_INSTANCES=34
ROUND 3  ORPHAN_COUNT=3   INOTIFY_INSTANCES=35
ROUND 4  ORPHAN_COUNT=4   INOTIFY_INSTANCES=36
ROUND 5  ORPHAN_COUNT=5   INOTIFY_INSTANCES=37
relaunch log lines: 5   gave up: 0   supervisor still alive

Every orphan reparented to systemd --user, and instance usage rose exactly 1:1. The log line counted there is bin/omarchy-launch-shell:89 — the same string @jbellars grepped.

The downstream failure is confirmed, and it is the instance limit

With fs.inotify.max_user_instances set equal to current usage on the worker, an unrelated program asking for one instance gets:

inotify_init1 FAILED errno=24 (Too many open files)
Couldn't initialize inotify: Too many open files
Try increasing the value of /proc/sys/fs/inotify/max_user_instances

EMFILE from inotify_init1 is specifically the max_user_instances failure; max_user_watches exhaustion returns ENOSPC, and cannot be the cause of an inotify_init1 failure at all because no watch has been added yet. So @jbellars' curses installer and the original report's Obsidian EMFILE are this bug's signature rather than a coincidence — with the honest caveat that EMFILE can also mean an application hit its own fd limit, so it is the 1022-of-1024 instance count measured alongside it that makes the attribution solid. Each orphan holds one instance and the quota is per UID, not per process, so a program using four of its own still fails. Against a ~40 idle baseline that is roughly 985 orphans to saturation, about ten to thirteen hours at the reported cadence.

Worth noting for whoever fixes this: Omarchy already ships etc/sysctl.d/90-omarchy-file-watchers.conf, which raises fs.inotify.max_user_watches to 524288 so editors and bundlers do not hit the default — but it leaves max_user_instances at the kernel's 1024, and that is the ceiling this bug actually reaches. Raising it would postpone the symptom rather than remove it, so it is a mitigation and not a fix, but it explains why the limit that broke was the one nobody had looked at.

Nothing in Omarchy reports being at the limit. A watcher that fails to start just schedules the 1s retry at PluginRegistry.qml:654-659, silently, so the first visible symptom is some other application failing in a way that points at itself.

What makes it accumulate is a quiet plugins directory

This inverts the intuition, so it is worth recording precisely. The orphan sits blocked on its inotify fd with no parent watching it and no timer. It only stirs when a matching event arrives — and then it formats a line and writes to a stdout pipe whose reader died with its shell, so the write fails and it goes away. It therefore survives exactly as long as nothing happens in ~/.config/omarchy/plugins, which is the normal state for anyone with no third-party plugins: both reporters here, and the directory is empty in both cases.

Measured: four accumulated orphans (all reparented to pid 1), then one new file created in that directory:

orphans before: 4
creating a file in ~/.config/omarchy/plugins ...
orphans after: 0         (only the live shell's watcher survives)

Two qualifications, because the details decide whether a fix works. It has to be a matching event: the mask at PluginRegistry.qml:639-646 is close_write,create,delete,move, so creating, deleting or moving a file drains the backlog, while touching a file that already exists only produces ATTRIB and leaves it alive. And the measurement shows the orphans die, not how — a default SIGPIPE and an EPIPE return that the process exits on look identical from outside. Distinguishing them needs strace or WTERMSIG on an orphan, which was not run.

This is why a plugin author editing that directory all day never sees this, why #7124's harness orphans clear themselves when the fixture is rm -rf'd, and why a fix that leans on the failed write would pass those tests and still leak on a quiet machine.

PR #7230 does not fix this

Saying it plainly because the PR carries Fixes #7150, so merging it would close this issue while leaving the leak entirely in place. Component.onDestruction runs only during orderly QML destruction — exactly the path where the Process destructor already reaps the watcher. On the paths that actually leak, no destructor runs at all: SIGKILL runs no handler by definition, and Qt's _exit() runs none either, which is @jbellars' path — no signal raised, no coredump written. Measured on the patched branch, SIGTERM and SIGKILL both still orphan the watcher, and the IPC kill was already clean without the patch. It is a no-op against this bug rather than a partial fix. Its own new assertion fails on its own branch; that has now been measured five times across three VMs and is written up on the PR itself.

Where a fix would have to go

This turned out to be the most useful thing the review found, so it goes first: Omarchy has already solved this exact problem, one directory away. shell/plugins/clipboard/Clipboard.qml runs long-lived wl-paste --watch children with precisely the lifetime problem described here, and handles it in two parts (Clipboard.qml:261-296):

// Reap watchers left behind by a previous shell instance, then start our
// own. The pdeathsig on the watchers makes the kernel kill them whenever
// the shell exits, however it exits, so no further lifecycle management.
Process {
  id: initProc
  command: ["pkill", "-f", "wl-paste .*--watch .*/shell/plugins/clipboard/capture\\.sh"]
  ...
}
Process {
  id: textWatchProc
  command: ["setpriv", "--pdeathsig", "TERM", "wl-paste", ...]
  onExited: watchRestartTimer.restart()
}

That is the same shape as PluginRegistry: an init Process that chains into starting a watcher, a watcher with onExited into a restart timer. It has the two protections the registry lacks — a narrowly scoped reaper for strays from a previous instance, and setpriv --pdeathsig, which makes the kernel do the killing however the shell dies, including _exit() and SIGKILL. There is even a lifecycle test for it at test/shell.d/clipboard-test.sh:439-464, which starts a watcher under setpriv, kills the owner, and asserts the watcher is gone. So this reads less like a design question and more like one of two call sites having been missed when 60e0a2a0 did the clipboard.

Honest limits on that, none of them fatal:

  • It prevents new orphans; it does not clear the ~1000 already reparented. That is what the scoped pkill half is for, and it must stay scoped — a blanket pkill inotifywait would take out unrelated user processes.
  • PDEATHSIG keys on the death of the thread that spawned the child, not the process. If Quickshell spawns from a transient thread this could fire early — though the existing 1s restart timer at PluginRegistry.qml:654-659 absorbs that, and the clipboard watchers have evidently not suffered from it.
  • It does not cover the crash handler's in-place execve(), where the pid never dies, so the stale watcher stays a direct child of the new engine while that engine starts another.
  • TERM is deliverable rather than unignorable; KILL would be stronger.

The alternatives are worse than they look. A process group is not equivalent — creating one does not kill it when the leader dies, something still has to signal it. And replacing the subprocess with an in-process watch is the cleanest design but is not a drop-in: Quickshell 0.3.1 exposes FileView.watchChanges for individual paths and no public recursive directory watcher.

Two things sit outside this bug but next to it. The crash loop is the driver rather than the defect — the signature @jbellars posted matches #7380 and #7478 — so fixing that removes the amplifier but not the leak, and fixing the leak removes the quota exhaustion but not the crash loop; they want independent fixes. And the supervisor's missing long-horizon circuit breaker is worth having on its own merits, because it bounds how bad any future crash loop gets whatever causes it.

One caveat on the numbers, so nobody re-derives it later and assumes it was missed: 1079 relaunches at a 37.5s mean is about 11 hours rather than 14, and 96/hour across 14 hours would be nearer 1344. Those cannot all describe one uninterrupted stretch — a quiet gap reconciles them easily — but nothing above depends on which is right.

Diagnosed by Claude Opus 5 in Claude Code with a second opinion from Codex at xhigh reasoning, which earned its keep here rather than just agreeing: the setpriv --pdeathsig precedent in the clipboard plugin, the max_user_instances gap in the shipped sysctl file, the Qt _exit(-1)-to-255 mapping, and the correction that an ATTRIB-only touch would not drain the backlog are all its findings, each verified against the source before being repeated here. Where it merely agreed with a conclusion already reached, note that its independence is not guaranteed. The measurements are from a throwaway worker VM, destroyed afterwards, since none of this can be run where the bot lives.

omarchybot avatar Aug 30 '26 13:08 omarchybot

Still present in Omarchy 4.0.4-1 (quickshell 0.3.1-1, inotify-tools 4.25.9.0-1, Hyprland 0.56.2, 2x Radeon HD 7870 XT).

After 2 days in one session, I had 1002 orphaned watchers on ~/.config/omarchy/plugins, all with systemd --user as parent. The user total was 1025 of 1024 inotify instances. Alacritty then failed at start with Unable to watch config file: Too many open files (os error 24).

The trigger on my system is a shell crash loop. The journal shows 3456 exits with status 255 in 2 days, about 72 each hour. Almost all of them log The Wayland connection experienced a fatal error: Invalid argument just before the exit. That matches #13927 and #11213 (FALLBACK output removed). Each crash leaks one watcher, so a crash loop fills the limit in hours, not weeks.

The workaround below cleared the leak. The running shell started its own watcher again after 1 second:

pkill -f '^/usr/bin/inotifywait -m -r -q -e close_write,create,delete,move --format %w%f /home/[^/]+/.config/omarchy/plugins$'

+1 for #11385. A pdeathsig on the watcher covers the crash path, which an in-process cleanup cannot do.

delisma avatar Oct 06 '26 15:10 delisma

Re-checked against quattro at 902fd8ae after @delisma's report on 4.0.4-1. The leak is still there: shell/services/PluginRegistry.qml:663 still starts a bare inotifywait with no die-with-parent guard and no reaper for strays, so every shell generation that leaves through _exit() or SIGKILL still orphans one watcher. The crash-loop cause matches #13927 and #11213, as @delisma says. Those need their own fix.

The open fix is #11385. It starts the watcher under setpriv --pdeathsig TERM, the same guard shell/plugins/clipboard/Clipboard.qml:283 already uses, so the kernel kills it however the shell dies. It is the only open pull request that changes this watcher. #7230 and #10177 tried this earlier and are closed. #13006 touches the same watcher for a different reason. Its notes for whoever picks it up:

  • It now conflicts with quattro, in test/shell.d/plugins-test.sh only.
  • It prevents new orphans but does not clear ones already leaked. The clipboard precedent also runs a scoped pkill of strays at startup, which #11385 does not. Until the next reboot, the pkill workaround above is still needed.
  • Its test checks the command text, not that the watcher dies with the shell. test/shell.d/clipboard-test.sh has a behavioural owner-death test it could mirror.

I tried to link #11385 to this issue so that merging it closes this one, but the bot refused: #11385's own classification is still unsettled. The link waits on that. Nothing was run on a worker this time, since the mechanism was already measured on a worker in the comment above and the fix is reviewed as its own item.

Second opinion from Codex Medium: it agreed the leak is present on quattro and that #11385 fixes the crash path. Independently, it added that the clipboard watcher has a startup reaper and a behavioural test this pull request lacks. It also pointed out that PDEATHSIG does not cover an in-place re-exec of the shell, or a shell that dies before setpriv arms the signal. Where it only agreed, its independence is not guaranteed. This now waits on the maintainer, for #11385.

omarchybot avatar Oct 08 '26 07:10 omarchybot

System details: Intel Core i9-9900T, Intel UHD 630 + AMD Radeon RX 550/560, Omarchy 4.0.6-1 (quickshell 0.3.2.r7.g2b4501a-1, inotify-tools 4.26.270-1, Hyprland 0.56.2)

Still present in 4.0.6-1. quattro at 58858aec still starts a bare inotifywait (shell/services/PluginRegistry.qml:716). Here is some new data, since the last checks here were on 4.0.4 and quickshell 0.3.1.

No crash loop needed. In this boot the shell was relaunched only four times. Each was logged by omarchy-launch-shell as exited with status 137 (Oct 24 at 02:11:09, 02:11:50 and 03:28:30, and Oct 26 at 09:43:01). No OOM kill or suspend was logged around them, so I don't know what sent the SIGKILLs. Next to the live shell's watcher I found four orphaned watchers, with parent systemd --user, started Oct 23 to 25. A quiet plugins folder never drains them (as explained above), so each kill leaves one behind for days.

Each orphan holds a watch on every folder in the plugins tree. Here that's 155 watches per watcher. 145 of them are inside the plugins' .git folders, whose events localPluginIdForPath drops anyway (see #10702 and #10705).

Plugins copy this watcher, and then the watch limit runs out. A local plugin here used the same shape: a recursive inotifywait -m -r in a Process, with the onExited restart timer. It leaked hundreds of recursive watchers and used up fs.inotify.max_user_watches (524288). From Oct 24 02:30 to Oct 26 12:34, systemd --user logged 996 lines like Failed to add control inotify watch descriptor for control group …: No space left on device. dbus-broker couldn't add its directory watch either, so an accessibility bus didn't start. The registry's own four orphans held only about 620 watches, so that exhaustion was the plugin's doing, and it is being fixed in the plugin. But plugin authors copy the shell's watchers, so they're the example that matters. A line in the plugin docs about setpriv --pdeathsig for long-running children would help too.

The fix in #11385 (setpriv --pdeathsig TERM) still works on quickshell 0.3.2.r7. I tested a throwaway Quickshell instance (offscreen, its own config folder) with the same Process and restart Timer, stopping it three ways:

Shell stopped by Bare inotifywait With setpriv --pdeathsig TERM --
quickshell kill (IPC) exits exits
SIGTERM (status 143) orphaned to systemd --user exits
SIGKILL (status 137) orphaned to systemd --user exits

#11385 now conflicts with quattro. Underneath, this is a Quickshell limit: Process kills its child only in its destructor (src/io/process.cpp:31-39 at 2b4501a) and never sets PR_SET_PDEATHSIG. So its note that the process "will be killed when quickshell dies" holds only for a clean quit. A fix there would cover every Process in the shell and in plugins, but the guard in Omarchy works today.

Measured and written up with Claude Code.

jeremy-robotsson avatar Oct 26 '26 12:10 jeremy-robotsson

Two things this thread doesn't have yet, from omarchy 4.0.6-1 / quickshell 0.3.2.r7.g2b4501a-1 / inotify-tools 4.26.270-1, kernel 7.2.8.

1. A third per-UID quota runs out: pipe buffer pages. It breaks apps far from the shell. Each orphan keeps its three stdio pipes (fd 0/1/2). With 264 orphans plus a rootless podman container (passt holds ~8,200 pages in enlarged pipes), my user reached 16,772 pipe pages, above fs.pipe-user-pages-soft = 16384. Past that limit the kernel creates every new pipe at 2 pages (8 KiB) instead of 64 KiB. fcntl(F_GETPIPE_SZ) on a fresh pipe returned 8192.

The first victim was the SimpleX Chat Flatpak (7.0.4). Its jpackage launcher serializes a JvmlLauncherData buffer through a pipe from a forked child. With JPACKAGE_DEBUG=true it logs Need 9548 bytes for JvmlLauncherData buffer. The parent receives a truncated buffer: the classpath is cut mid-string and jli args 3–8 come back empty. It then calls setenv() on an unrelocated pointer and crashes with SIGSEGV at jvmLauncherStartJvm+232. The fault address 0xfffffffffffe27a0 is the same on every launch. That makes the crash deterministic, and it looks like a SimpleX bug unless you count pipe pages across /proc. The same failure should hit any jpackage-built Java app. The orphans are the part that grows without bound, so this is the same leak with a new symptom, not a separate issue.

2. Here the graceful restart path leaks too. This thread says omarchy-restart-shell (quickshell kill -p … --any-display) reaps the watcher. On this machine it did not. On 2026-10-26 the shell journal has 169 Configuration Loaded, 166 Exiting due to IPC request, and only 3 abnormal exits (2× status 255, 1× 137). That day left 151 orphaned inotifywait … ~/.config/omarchy/plugins processes, all with ppid = systemd --user. 150 of them started 15–40 s after a Configuration Loaded, which matches the watcher start time of each new generation. Almost every shell generation that ended through the IPC kill left its watcher behind.

The setup is different from the clean negative control above: about 15 local plugins in ~/.config/omarchy/plugins (one with deep qml/ subtrees), with plugin edits and restarts all day. I have not isolated why the orderly teardown skips the Process destructor here. A slow teardown with many plugins is my guess, not something I measured. Either way, it supports setpriv --pdeathsig TERM (#11385) plus a startup reaper over any fix that relies on teardown.

Workaround that brings everything back: pkill -P "$(pgrep -xo -u "$USER" systemd)" -f 'inotifywait .*/\.config/omarchy/plugins$'. It kills only the orphans (children of systemd --user) and leaves the live shell's watcher running.

Filed by Claude Opus 5.5 via Claude Code.

austrasien avatar Oct 27 '26 08:10 austrasien

Re-checked against quattro at e2c7007c after the two 4.0.6-1 reports from @jeremy-robotsson and @austrasien. The accumulation is fixed on quattro, but no stable release has the fix yet. It is 47e86a27 (#15299, merged 2026-10-14). That commit is in v4.5.0-rc1 and rc2 and in no 4.0.x tag, so 4.0.6, the version both new reports came from, does not have it.

What changed: at startup, before it starts its own watcher, the shell now stops every plugin-directory inotifywait whose parent is not a running quickshell (shell/services/PluginRegistry.qml:694-716). Orphans are reaped by who their parent is, not by how their shell died, so this also covers the IPC-kill leak @austrasien measured, whatever caused it. The watcher's command line is the same in 4.0.6 and on quattro, so the first 4.5 shell on an upgraded machine reaps orphans that 4.0.x left behind.

Measured on a disposable Omarchy worker (quickshell 0.3.2.r7.g2b4501a-5, inotify-tools 4.26.270-1). The test starts the shell from a given tree, waits for its watcher, SIGKILLs it, and repeats four times:

After round v4.0.6 orphans quattro orphans
1 1 1
2 2 1
3 3 1
4 4 1
next shell start 4 still there 0

Every orphan was reparented to pid 1. test/shell.d/plugin-watcher-reap-test.sh passed on the same worker (4 passed, 0 failed). On quattro there is still at most one orphan, from the moment a shell dies until the next one starts, because the watcher still has no die-with-parent guard. #11385 (setpriv --pdeathsig TERM) closes that window. It is still open, conflicts with quattro, and is being reviewed as its own item.

Two gaps remain that the reaper does not cover. Neither was reproduced here:

  • Quickshell's in-place crash recovery. On a handled fatal signal such as SIGSEGV, Quickshell's crash handler execve()s a fresh shell into the same pid (src/crash/handler.cpp at 2b4501a, as Omarchy's own bin/omarchy-launch-shell comment describes). The old watcher stays a child of a process named quickshell, so the reaper spares it, and the new engine starts another one. Repeated recoveries add one each until that pid finally exits. PDEATHSIG does not help here either, because nothing died. This is from reading the source, not a measurement.
  • The input-device watcher. shell/Commons/InputDevices.qml:37-42 runs a second long-lived inotifywait (on /dev/input, /dev and the udev data directory). It is new since 4.0.6, has no reaper and no PDEATHSIG, and the default bar uses it through the keyboard-layout widget. Each abnormal shell death can still leave one of these behind. #16154 is open for it.

Second opinion from Codex Medium and muse-wonder (via pi, thinking high). Both agreed the reaper stops the restart-by-restart accumulation reported here. Independently, they raised the in-place re-exec gap and the InputDevices watcher above, and asked for the cross-version command-line check, which matched. Where they only agreed, their independence is not guaranteed.

This now waits on the maintainer. It is their call whether to close this as fixed by #15299 once 4.5.0 ships, or keep it open for #11385 and the re-exec gap. Until then, 4.0.x users still need @austrasien's orphans-only pkill workaround above.

omarchybot avatar Nov 01 '26 22:11 omarchybot

Same leak, second watcher: on Omarchy 4.5.0-3 the one in shell/Commons/InputDevices.qml also orphans, and it is now the main source here.

System: Omarchy 4.5.0-3, Arch, Hyprland, quickshell as shipped.

Faulty site (/usr/share/omarchy/shell/Commons/InputDevices.qml, Process { id: watcher ... }, about lines 36-42): it starts

exec inotifywait -m -q -e create,delete,delete_self,moved_to --format '%w|%e|%f' /dev /dev/input /run/udev/data

and its only lifecycle handling is onExited (restart timer) plus watcher.running = false when /dev/input is re-created. Nothing guarantees the child dies when the shell itself exits abnormally (no PR_SET_PDEATHSIG, no process group torn down by the supervisor, no reaping of strays before a relaunch). So each shell exit that bypasses a clean shutdown leaves one live inotifywait, reparented to systemd --user.

Observed:

  • 329 orphaned inotifywait (about 672 MB RSS) over one day, then 49 more in 45 minutes (roughly one per 15-20 s). The only legitimate one has the shell as parent.
  • Same day: journalctl --user -t omarchy-shell | grep -c "exited with status" gives 180 shell exits, which matches the relaunch-loop driver described above in this issue.
  • Negative control: a graceful restart does not leave one behind.

Check:

ps -eo pid=,ppid=,etime=,args= | awk '$4=="inotifywait"'

Orphans have the systemd --user PID as parent and the /dev /dev/input /run/udev/data arguments.

Workaround: kill the orphaned inotifywait processes whose parent is not the shell.

Probable cause: as already analysed above, the shell leaves through _exit() and cannot reap its children. A die-with-parent guarantee for every inotifywait the shell spawns (this one and PluginRegistry.qml) would fix both at once.

Filed by Claude Sonnet 5.5 via Claude Code.

SiriusRak avatar Nov 19 '26 13:11 SiriusRak

@SiriusRak, I reproduced the input-device watcher leak on a disposable Omarchy worker with quickshell 0.3.2.r7.g2b4501a-11 and inotify-tools 4.26.282-1. The InputDevices.qml module is unchanged between v4.5.0 and current quattro (c38c3624827493ffea3fb7d5aa043877a3ce37b0). Killing its owner with SIGKILL left the watcher alive under PID 1, still holding one inotify instance. Using that module from #16154 at 1a6f1cd19ddbccf1b1e55aec0984aa5cc1a1634f made the watcher exit with its owner; returning to the base module reproduced the orphan again. The worker was destroyed afterwards.

The plugin-directory reaper from #15299 does not cover this watcher: it matches a different command, event mask and directory. #16154 adds setpriv --pdeathsig TERM to the input-device watcher and covers the owner-death path measured here. It does not remove already orphaned watchers. I did not reproduce the cause of your shell exits, the reported memory usage, or Quickshell's same-PID crash recovery.

I checked this in Codex (GPT-6; reasoning effort not exposed), with second opinions from Opus 5.5 High and muse-wonder via pi, thinking high. Both agreed with the diagnosis and its limited scope; the independence of that agreement is not guaranteed.

This remains open for the maintainer, with #16154 addressing this new report's path and #11385 addressing the separate plugin-directory watcher. An automatic closing link from #16154 would also close the broader issue despite the remaining same-PID recovery gap. #16154 currently has a failing CI check and is handled in its own review.

omarchybot avatar Nov 19 '26 14:11 omarchybot

Thanks for the reproduction. I found the cause of the shell exits on my machine, which explains where the orphans come from.

Setup: Omarchy 4.5.0-3, Hyprland 0.56.2, quickshell 0.3.2.r7.g2b4501a-1, inotify-tools 4.26.270-1, one HDMI monitor (HDMI-A-1). This monitor drops its HDMI link when DPMS turns it off, so the kernel sees a real disconnect and Hyprland falls back to the headless FALLBACK output.

Sequence, the same every time (from journalctl --user):

omarchy lock ... lock-requested / session-locked=true
owed ... policy pause=1 reason=dpms-off
WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
WARN: attempted to use dangling screen object
WARN: The Wayland connection experienced a fatal error: Invalid argument
Omarchy shell exited with status 255; relaunching.

While the screen stays off, each relaunched shell hits the same output state and dies again about 15 s later. That gives bursts of exits (for example 14:37:12, 14:37:28, 14:37:44, 14:38:00, ...).

Numbers over the last 6 hours:

  • 154 Wayland connection experienced a fatal error: Invalid argument
  • 155 Omarchy shell exited with status 255; relaunching.
  • 155 orphaned inotifywait -m -q -e create,delete,delete_self,moved_to ... /dev /dev/input /run/udev/data, one per exit
  • 241 inotify instances open for the user (limit 1024) before cleanup, 86 after

A detail for the reaper/cleanup side: here the orphans were reparented to systemd --user (a subreaper), not to PID 1. A cleanup that matches ppid == 1 would miss them. I removed them by filtering on the systemd --user PID plus the exact command line.

So #16154 (setpriv --pdeathsig TERM) should stop the leak. The underlying problem is the shell exiting on a Wayland protocol error when an output is removed during DPMS-off while the session lock is active. That part is not covered yet. Hyprland also logs error in client communication at the same moments, which suggests a protocol error raised against the shell (possibly on the session-lock or layer surface bound to the removed output).

Happy to collect a WAYLAND_DEBUG=1 trace of one exit if that helps.

SiriusRak avatar Nov 20 '26 12:11 SiriusRak

@SiriusRak, yes, please attach the WAYLAND_DEBUG=1 trace you offered, covering the lock/blank cycle through the first shell exit, ending before password entry. Include the Hyprland log for the same timestamps, your monitor model and omarchy-debug output. Any wl_display.error event, including its object, error code and message, plus the preceding requests would help identify the failed operation. The current Invalid argument and error in client communication messages alone do not establish whether a lock surface, layer surface or another operation failed. Related reports #19377 and #18896 describe the same output-loss/lock/exit-255 sequence; that does not establish a shared cause yet.

PID 1 was the parent observed on yesterday's worker, rather than a requirement for the fix. The existing plugin-directory reaper checks the parent's process name, so systemd --user is covered for that watcher. #16154's input-device parent-death guard also does not depend on an orphan having PPID 1. Its scope remains preventing the watcher leak measured yesterday, separately from identifying why the shell exits.

I checked the new report, related reports and current source in Codex (GPT-6; reasoning effort not exposed). The input-device module is unchanged from yesterday's tested revision. No tests or reproduction of your HDMI disconnect ran in this follow-up. The configured second reviewer hit its weekly usage limit, confirmed by an availability check, so no second opinion on this follow-up ran. This remains open, waiting on the trace to investigate the exit.

omarchybot avatar Nov 20 '26 13:11 omarchybot

I captured a WAYLAND_DEBUG=1 trace of the shell, from launch through the lock/blank cycle to the first exit (status 255). It ends before password entry. Window titles and app ids are redacted; no keyboard events are in it.

Captured 2026-11-23, my local DPMS-off workaround disabled for the run. Lock requested at 08:06:48 UTC, shell exited at 08:07:01 UTC.

The fatal error

[08:07:01.053629] {Display Queue} wl_display#1.error(wl_display#1, 0, "invalid object 100")
WARN: The Wayland connection experienced a fatal error: Invalid argument

Object 100 is the shell's lock surface, created on the FALLBACK output while HDMI-A-1 was gone. Sequence from the trace:

08:06:58.679  wl_registry.global_remove(71)                      HDMI-A-1 removed
08:06:58.788  bind(72, "wl_output") -> wl_output#146              name("FALLBACK")
08:06:59.420  -> ext_session_lock_v1#90.get_lock_surface(new id ext_session_lock_surface_v1#100, wl_surface#107, wl_output#146)
08:06:59.730  bind(73, "wl_output") -> wl_output#121              name("HDMI-A-1"), monitor back
08:06:59.731  wl_registry.global_remove(72)                      FALLBACK removed
08:07:00.106  -> wl_output#146.release()
08:07:00.611  -> ext_session_lock_v1#90.get_lock_surface(new id ext_session_lock_surface_v1#179, wl_surface#176, wl_output#121)
08:07:00.965  -> ext_session_lock_surface_v1#100.destroy()
08:07:00.965  -> wl_surface#107.attach(nil) / commit() / destroy()
08:07:01.053  wl_display#1.error(wl_display#1, 0, "invalid object 100")

So the failing operation is the client's ext_session_lock_surface_v1#100.destroy() for the lock surface it had created on FALLBACK. The server never sent delete_id(100) for that surface before the error (the earlier delete_id(100) at 08:06:58.789 is for a previous wp_viewport#100). It looks like the compositor dropped the lock surface resource when FALLBACK was removed, instead of leaving it inert until the client destroys it, so the client's own destroy then hits an unknown id. That is my reading of the trace, not a confirmed cause.

Environment

  • Monitor: ODA 2468FZV on HDMI-A-1, 1920x1080@60. It drops its HDMI link when DPMS turns it off (drm: Connector HDMI-A-1 disconnected in the log).
  • Omarchy 4.5.0-3, hyprland 0.56.2-4, quickshell 0.3.2.r7.g2b4501a-1, kernel 7.2.15-1-omarchy
  • AMD Ryzen 5 7640HS, Radeon 760M (Phoenix1, 1002:15bf)
  • omarchy debug no longer exists in 4.5.0, so the system details above replace it.

Logs

The full client trace (3,255 lines, about 290 KB) is too large for a comment. I can share it another way if needed. Excerpts below.

Wayland trace, filtered to registry, outputs, session lock and layer surfaces, 08:06:58 to the error
[08:06:58.678958] {Default Queue}  -> wp_viewport#100.destroy()
[08:06:58.678971] {Default Queue} zwlr_layer_surface_v1#108.closed()
[08:06:58.679018] {Default Queue}  -> zwlr_layer_surface_v1#108.destroy()
[08:06:58.679082] {Default Queue} wl_registry#2.global_remove(71)
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/agents/Panel.qml[959:3]: Handler was registered but will not be used because another handler is registered for target omarchy.agents
  WARN scene: QML ShellIpc at @Ui/Panel.qml[49:3]: Handler was registered but will not be used because another handler is registered for target omarchy.audio
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/bluetooth/Panel.qml[641:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/clock/BarWidget.qml[141:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/elsewhen/Panel.qml[938:3]: Handler was registered but will not be used because another handler is registered for target omarchy.e
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/Indicators.qml[202:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/monitor/Panel.qml[222:3]: Handler was registered but will not be used because another handler is registered for target omarchy.mo
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/network/Panel.qml[213:3]: Handler was registered but will not be used because another handler is registered for target omarchy.ne
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/power/Panel.qml[184:3]: Handler was registered but will not be used because another handler is registered for target omarchy.powe
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/SystemUpdate.qml[27:3]: Handler was registered but will not be used because another handler is registered for target omarchy
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/tailscale/Panel.qml[489:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/weather/Panel.qml[527:3]: Handler was registered but will not be used because another handler is registered for target omarchy.we
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/Workspaces.qml[236:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
[08:06:58.781141] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#124, wl_surface#119, nil, 2, "omarchy-bar")
  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
[08:06:58.782118] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#131, wl_surface#128, nil, 0, "omarchy-background")
  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
[08:06:58.786662] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#138, wl_surface#135, nil, 2, "omarchy-dock")
  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
[08:06:58.787229] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#145, wl_surface#142, nil, 3, "omarchy-notifications")
[08:06:58.788623] {Default Queue}  -> zxdg_output_v1#23.destroy()
[08:06:58.788631] {Default Queue}  -> wl_output#22.release()
[08:06:58.788670] {Default Queue} wl_registry#2.global(72, "wl_output", 4)
[08:06:58.788682] {Default Queue}  -> wl_registry#2.bind(72, "wl_output", 4, new id [unknown]#146)
[08:06:58.788691] {Default Queue}  -> zxdg_output_manager_v1#12.get_xdg_output(new id zxdg_output_v1#147, wl_output#146)
[08:06:58.788842] {Default Queue} wl_registry#2.global_remove(71)
[08:06:58.788870] {Default Queue} wl_registry#2.global(72, "wl_output", 4)
[08:06:58.788880] {Default Queue}  -> wl_registry#2.bind(72, "wl_output", 2, new id [unknown]#32)
[08:06:58.788888] {Default Queue}  -> zxdg_output_manager_v1#8.get_xdg_output(new id zxdg_output_v1#33, wl_output#32)
[08:06:58.914977] {Default Queue}  -> ext_session_lock_surface_v1#111.destroy()
[08:06:59.228225] {Default Queue} wl_output#146.name("FALLBACK")
[08:06:59.228238] {Default Queue} wl_output#146.description("")
[08:06:59.228248] {Default Queue} wl_output#146.scale(1)
[08:06:59.228251] {Default Queue} wl_output#146.mode(1, 1920, 1080, 60000)
[08:06:59.228255] {Default Queue} wl_output#146.geometry(0, 0, 0, 0, 1, "", "", 0)
[08:06:59.228259] {Default Queue} wl_output#146.done()
[08:06:59.228263] {Default Queue} zxdg_output_v1#147.name("FALLBACK")
[08:06:59.228266] {Default Queue} zxdg_output_v1#147.logical_position(0, 0)
[08:06:59.228269] {Default Queue} zxdg_output_v1#147.logical_size(1920, 1080)
[08:06:59.228271] {Default Queue} wl_output#146.done()
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/agents/Panel.qml[959:3]: Handler was registered but will not be used because another handler is registered for target omarchy.agents
  WARN scene: QML ShellIpc at @Ui/Panel.qml[49:3]: Handler was registered but will not be used because another handler is registered for target omarchy.audio
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/bluetooth/Panel.qml[641:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/clock/BarWidget.qml[141:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/elsewhen/Panel.qml[938:3]: Handler was registered but will not be used because another handler is registered for target omarchy.e
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/Indicators.qml[202:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/monitor/Panel.qml[222:3]: Handler was registered but will not be used because another handler is registered for target omarchy.mo
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/network/Panel.qml[213:3]: Handler was registered but will not be used because another handler is registered for target omarchy.ne
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/power/Panel.qml[184:3]: Handler was registered but will not be used because another handler is registered for target omarchy.powe
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/SystemUpdate.qml[27:3]: Handler was registered but will not be used because another handler is registered for target omarchy
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/tailscale/Panel.qml[489:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/weather/Panel.qml[527:3]: Handler was registered but will not be used because another handler is registered for target omarchy.we
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/Workspaces.qml[236:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
[08:06:59.399038] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#96, wl_surface#45, wl_output#146, 2, "omarchy-bar")
[08:06:59.401478] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#112, wl_surface#93, wl_output#146, 0, "omarchy-background")
[08:06:59.413645] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#134, wl_surface#141, wl_output#146, 2, "omarchy-dock")
[08:06:59.415554] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#85, wl_surface#126, wl_output#146, 3, "omarchy-notifications")
  WARN: QQmlExpression: Expression qs:///usr/share/omarchy/shell/plugins/lock/Service.qml:504:17 depends on non-bindable properties:
  WARN:     WlSessionLockSurface::contentItem
  WARN: QQmlExpression: Expression qs:///usr/share/omarchy/shell/plugins/lock/Service.qml:503:17 depends on non-bindable properties:
  WARN:     WlSessionLockSurface::contentItem
[08:06:59.420348] {Default Queue}  -> wl_compositor#7.create_surface(new id wl_surface#107)
[08:06:59.420384] {Default Queue}  -> wp_fractional_scale_manager_v1#11.get_fractional_scale(new id wp_fractional_scale_v1#106, wl_surface#107)
[08:06:59.420399] {Default Queue}  -> wp_viewporter#10.get_viewport(new id wp_viewport#108, wl_surface#107)
[08:06:59.420441] {Default Queue}  -> ext_session_lock_v1#90.get_lock_surface(new id ext_session_lock_surface_v1#100, wl_surface#107, wl_output#146)
[08:06:59.420496] {Default Queue}  -> wl_surface#107.set_buffer_transform(0)
[08:06:59.441560] {Default Queue} wl_surface#119.enter(wl_output#146)
[08:06:59.456849] {Default Queue} wl_surface#128.enter(wl_output#146)
[08:06:59.459366] {Default Queue} wl_surface#135.enter(wl_output#146)
[08:06:59.462352] {Default Queue} wl_surface#142.enter(wl_output#146)
  WARN quickshell.hyprland.ipc: Got removal for monitor "FALLBACK" which was not previously tracked.
[08:06:59.730849] {Default Queue} wl_registry#2.global(73, "wl_output", 4)
[08:06:59.730878] {Default Queue}  -> wl_registry#2.bind(73, "wl_output", 4, new id [unknown]#121)
[08:06:59.730889] {Default Queue}  -> zxdg_output_manager_v1#12.get_xdg_output(new id zxdg_output_v1#46, wl_output#121)
[08:06:59.730911] {Default Queue} zxdg_output_v1#147.logical_position(0, 0)
[08:06:59.730916] {Default Queue} zxdg_output_v1#147.logical_size(1920, 1080)
[08:06:59.730920] {Default Queue} zxdg_output_v1#147.logical_position(0, 0)
[08:06:59.730923] {Default Queue} zxdg_output_v1#147.logical_size(1920, 1080)
[08:06:59.730926] {Default Queue} zwlr_layer_surface_v1#131.closed()
[08:06:59.731013] {Default Queue}  -> zwlr_layer_surface_v1#131.destroy()
[08:06:59.731174] {Default Queue} zwlr_layer_surface_v1#124.closed()
[08:06:59.731236] {Default Queue}  -> zwlr_layer_surface_v1#124.destroy()
[08:06:59.731370] {Default Queue} zwlr_layer_surface_v1#138.closed()
[08:06:59.731425] {Default Queue}  -> zwlr_layer_surface_v1#138.destroy()
[08:06:59.731530] {Default Queue} zwlr_layer_surface_v1#145.closed()
[08:06:59.731593] {Default Queue}  -> zwlr_layer_surface_v1#145.destroy()
[08:06:59.731726] {Default Queue} wl_registry#2.global_remove(72)
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/agents/Panel.qml[959:3]: Handler was registered but will not be used because another handler is registered for target omarchy.agents
  WARN scene: QML ShellIpc at @Ui/Panel.qml[49:3]: Handler was registered but will not be used because another handler is registered for target omarchy.audio
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/bluetooth/Panel.qml[641:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/clock/BarWidget.qml[141:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/elsewhen/Panel.qml[938:3]: Handler was registered but will not be used because another handler is registered for target omarchy.e
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/Indicators.qml[202:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/monitor/Panel.qml[222:3]: Handler was registered but will not be used because another handler is registered for target omarchy.mo
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/network/Panel.qml[213:3]: Handler was registered but will not be used because another handler is registered for target omarchy.ne
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/power/Panel.qml[184:3]: Handler was registered but will not be used because another handler is registered for target omarchy.powe
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/SystemUpdate.qml[27:3]: Handler was registered but will not be used because another handler is registered for target omarchy
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/tailscale/Panel.qml[489:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/weather/Panel.qml[527:3]: Handler was registered but will not be used because another handler is registered for target omarchy.we
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/Workspaces.qml[236:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
[08:07:00.067535] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#133, wl_surface#86, nil, 2, "omarchy-bar")
  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
[08:07:00.069630] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#87, wl_surface#139, nil, 0, "omarchy-background")
  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
[08:07:00.084349] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#154, wl_surface#104, nil, 2, "omarchy-dock")
  WARN: Layershell screen does not correspond to a real screen. Letting the compositor pick.
[08:07:00.087012] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#161, wl_surface#158, nil, 3, "omarchy-notifications")
[08:07:00.106786] {Default Queue}  -> zxdg_output_v1#147.destroy()
[08:07:00.106806] {Default Queue}  -> wl_output#146.release()
[08:07:00.289728] {Default Queue} wl_output#121.name("HDMI-A-1")
[08:07:00.289782] {Default Queue} wl_output#121.description("ODA 2468FZV 0x00001A0A (HDMI-A-1)")
[08:07:00.289791] {Default Queue} wl_output#121.scale(1)
[08:07:00.289795] {Default Queue} wl_output#121.mode(1, 1920, 1080, 60000)
[08:07:00.289798] {Default Queue} wl_output#121.geometry(0, 0, 520, 310, 0, "ODA", "2468FZV", 0)
[08:07:00.289803] {Default Queue} wl_output#121.done()
[08:07:00.289807] {Default Queue} zxdg_output_v1#46.name("HDMI-A-1")
[08:07:00.289811] {Default Queue} zxdg_output_v1#46.description("ODA 2468FZV 0x00001A0A (HDMI-A-1)")
[08:07:00.289814] {Default Queue} zxdg_output_v1#46.logical_position(0, 0)
[08:07:00.289816] {Default Queue} zxdg_output_v1#46.logical_size(1920, 1080)
[08:07:00.289819] {Default Queue} wl_output#121.done()
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/agents/Panel.qml[959:3]: Handler was registered but will not be used because another handler is registered for target omarchy.agents
  WARN scene: QML ShellIpc at @Ui/Panel.qml[49:3]: Handler was registered but will not be used because another handler is registered for target omarchy.audio
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/bluetooth/Panel.qml[641:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/clock/BarWidget.qml[141:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/elsewhen/Panel.qml[938:3]: Handler was registered but will not be used because another handler is registered for target omarchy.e
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/Indicators.qml[202:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/monitor/Panel.qml[222:3]: Handler was registered but will not be used because another handler is registered for target omarchy.mo
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/network/Panel.qml[213:3]: Handler was registered but will not be used because another handler is registered for target omarchy.ne
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/power/Panel.qml[184:3]: Handler was registered but will not be used because another handler is registered for target omarchy.powe
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/SystemUpdate.qml[27:3]: Handler was registered but will not be used because another handler is registered for target omarchy
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/tailscale/Panel.qml[489:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/panels/weather/Panel.qml[527:3]: Handler was registered but will not be used because another handler is registered for target omarchy.we
  WARN scene: QML ShellIpc at file:///usr/share/omarchy/shell/plugins/bar/widgets/Workspaces.qml[236:3]: Handler was registered but will not be used because another handler is registered for target omarchy.
[08:07:00.571179] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#143, wl_surface#44, wl_output#121, 2, "omarchy-bar")
  WARN: attempted to use dangling screen object
[08:07:00.577016] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#124, wl_surface#138, wl_output#121, 0, "omarchy-background")
[08:07:00.602332] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#168, wl_surface#165, wl_output#121, 2, "omarchy-dock")
[08:07:00.604930] {Default Queue}  -> zwlr_layer_shell_v1#42.get_layer_surface(new id zwlr_layer_surface_v1#175, wl_surface#172, wl_output#121, 3, "omarchy-notifications")
  WARN: attempted to use dangling screen object
  WARN: QQmlExpression: Expression qs:///usr/share/omarchy/shell/plugins/lock/Service.qml:504:17 depends on non-bindable properties:
  WARN:     WlSessionLockSurface::contentItem
  WARN: QQmlExpression: Expression qs:///usr/share/omarchy/shell/plugins/lock/Service.qml:503:17 depends on non-bindable properties:
  WARN:     WlSessionLockSurface::contentItem
[08:07:00.611451] {Default Queue}  -> ext_session_lock_v1#90.get_lock_surface(new id ext_session_lock_surface_v1#179, wl_surface#176, wl_output#121)
  WARN: attempted to use dangling screen object
  WARN: attempted to use dangling screen object
  WARN: attempted to use dangling screen object
  WARN: attempted to use dangling screen object
  WARN: attempted to use dangling screen object
[08:07:00.780245] {Default Queue} wl_surface#45.enter(wl_output#121)
[08:07:00.785085] {Default Queue} wl_surface#93.enter(wl_output#121)
[08:07:00.785816] {Default Queue} wl_surface#141.enter(wl_output#121)
[08:07:00.786498] {Default Queue} wl_surface#126.enter(wl_output#121)
[08:07:00.835688] {Default Queue} wl_surface#176.enter(wl_output#121)
[08:07:00.835697] {Default Queue} ext_session_lock_surface_v1#179.configure(9078, 1920, 1080)
[08:07:00.835700] {Default Queue}  -> ext_session_lock_surface_v1#179.ack_configure(9078)
[08:07:00.858884] {Default Queue} wl_surface#86.enter(wl_output#121)
[08:07:00.859972] {Default Queue} wl_surface#139.enter(wl_output#121)
[08:07:00.860430] {Default Queue} wl_surface#104.enter(wl_output#121)
[08:07:00.860811] {Default Queue} wl_surface#158.enter(wl_output#121)
[08:07:00.861177] {Default Queue} wl_surface#44.enter(wl_output#121)
[08:07:00.861183] {Default Queue} wl_surface#138.enter(wl_output#121)
[08:07:00.861186] {Default Queue} wl_surface#165.enter(wl_output#121)
[08:07:00.861190] {Default Queue} wl_surface#172.enter(wl_output#121)
[08:07:00.862314] {Default Queue} wl_registry#2.global(73, "wl_output", 4)
[08:07:00.862317] {Default Queue}  -> wl_registry#2.bind(73, "wl_output", 2, new id [unknown]#35)
[08:07:00.862334] {Default Queue}  -> zxdg_output_manager_v1#8.get_xdg_output(new id zxdg_output_v1#36, wl_output#35)
[08:07:00.862341] {Default Queue} wl_registry#2.global_remove(72)
[08:07:00.965592] {Default Queue}  -> ext_session_lock_surface_v1#100.destroy()
[08:07:00.965616] {Default Queue}  -> wl_surface#107.attach(nil, 0, 0)
[08:07:00.965621] {Default Queue}  -> wl_surface#107.commit()
[08:07:00.965635] {Default Queue}  -> wl_surface#107.destroy()
[08:07:01.053629] {Display Queue} wl_display#1.error(wl_display#1, 0, "invalid object 100")
Wayland trace, last 40 lines before the error, unfiltered
[08:07:01.053471]  -> wl_surface#139.frame(new id wl_callback#208)
[08:07:01.053493] {mesa egl display queue}  -> zwp_linux_dmabuf_v1#36.create_params(new id zwp_linux_buffer_params_v1#196)
[08:07:01.053526]  -> wl_surface#104.frame(new id wl_callback#215)
[08:07:01.053536] wl_callback#210.done(2333353)
[08:07:01.053557] discarded [unknown]#99.[event 0](0 fd, 8 byte)
[08:07:01.053559] discarded [unknown]#99.[event 0](0 fd, 8 byte)
[08:07:01.053561] discarded [unknown]#101.[event 0](0 fd, 8 byte)
[08:07:01.053562] discarded [unknown]#101.[event 0](0 fd, 8 byte)
[08:07:01.053564] discarded [unknown]#51.[event 0](0 fd, 8 byte)
[08:07:01.053565] discarded [unknown]#51.[event 0](0 fd, 8 byte)
[08:07:01.053567] discarded [unknown]#115.[event 0](0 fd, 8 byte)
[08:07:01.053569] discarded [unknown]#115.[event 0](0 fd, 8 byte)
[08:07:01.053571] discarded [unknown]#148.[event 0](0 fd, 8 byte)
[08:07:01.053572] discarded [unknown]#148.[event 0](0 fd, 8 byte)
[08:07:01.053573] discarded [unknown]#152.[event 0](0 fd, 8 byte)
[08:07:01.053575] discarded [unknown]#152.[event 0](0 fd, 8 byte)
[08:07:01.053576] discarded [unknown]#151.[event 0](0 fd, 8 byte)
[08:07:01.053578] discarded [unknown]#151.[event 0](0 fd, 8 byte)
[08:07:01.053579] discarded [unknown]#82.[event 0](0 fd, 8 byte)
[08:07:01.053580] discarded [unknown]#82.[event 0](0 fd, 8 byte)
[08:07:01.053584] {Display Queue} wl_display#1.delete_id(99)
[08:07:01.053588] {Display Queue} wl_display#1.delete_id(101)
[08:07:01.053590] {Display Queue} wl_display#1.delete_id(80)
[08:07:01.053592] {Display Queue} wl_display#1.delete_id(119)
[08:07:01.053594] {Display Queue} wl_display#1.delete_id(95)
[08:07:01.053600] {Display Queue} wl_display#1.delete_id(51)
[08:07:01.053601] {Display Queue} wl_display#1.delete_id(115)
[08:07:01.053604] {Display Queue} wl_display#1.delete_id(50)
[08:07:01.053606] {Display Queue} wl_display#1.delete_id(128)
[08:07:01.053608] {Display Queue} wl_display#1.delete_id(105)
[08:07:01.053610] {Display Queue} wl_display#1.delete_id(148)
[08:07:01.053612] {Display Queue} wl_display#1.delete_id(152)
[08:07:01.053614] {Display Queue} wl_display#1.delete_id(111)
[08:07:01.053616] {Display Queue} wl_display#1.delete_id(135)
[08:07:01.053617] {Display Queue} wl_display#1.delete_id(117)
[08:07:01.053619] {Display Queue} wl_display#1.delete_id(151)
[08:07:01.053621] {Display Queue} wl_display#1.delete_id(82)
[08:07:01.053623] {Display Queue} wl_display#1.delete_id(120)
[08:07:01.053625] {Display Queue} wl_display#1.delete_id(142)
[08:07:01.053627] {Display Queue} wl_display#1.delete_id(150)
[08:07:01.053629] {Display Queue} wl_display#1.error(wl_display#1, 0, "invalid object 100")
  WARN: The Wayland connection experienced a fatal error: Invalid argument
Hyprland log for the same window (no per-line timestamps)
DEBUG from aquamarine ]: [libinput] Plugin:button-debounce - debounce state: DEBOUNCE_STATE_IS_UP_WAITING → DEBOUNCE_EVENT_TIMEOUT → DEBOUNCE_STATE_IS_UP
DEBUG from aquamarine ]: drm: Cursor buffer imported into KMS with id 473
DEBUG from aquamarine ]: drm: Disabling output HDMI-A-1
DEBUG from aquamarine ]: drm: Connector HDMI-A-1 enabledState changed true -> false
DEBUG from aquamarine ]: drm: Ignoring a stale pf event, flip 93747 on crtc 376
DEBUG from aquamarine ]: drm: Scanning connectors for /dev/dri/card1
DEBUG from aquamarine ]: drm: Scanning connector id 393
DEBUG from aquamarine ]: drm: Connector id 393 already initialized
DEBUG from aquamarine ]: drm: Connector 393 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 402
DEBUG from aquamarine ]: drm: Connector id 402 already initialized
DEBUG from aquamarine ]: drm: connector HDMI-A-1 crtc is incapable of vrr: props.vrr_capable -> 407, crtc->props.vrr_enabled -> 25
DEBUG from aquamarine ]: drm: Explicit sync supported
DEBUG from aquamarine ]: drm: connector HDMI-A-1 crtc supports CTM
DEBUG from aquamarine ]: drm: connector HDMI-A-1 crtc supports HDR (8)
DEBUG from aquamarine ]: drm: connector HDMI-A-1 crtc supports Colorspace (406)
DEBUG from aquamarine ]: drm: Connector 402 connection state: 1
DEBUG from aquamarine ]: drm: Scanning connector id 410
DEBUG from aquamarine ]: drm: Connector id 410 already initialized
DEBUG from aquamarine ]: drm: Connector 410 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 416
DEBUG from aquamarine ]: drm: Connector id 416 already initialized
DEBUG from aquamarine ]: drm: Connector 416 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 422
DEBUG from aquamarine ]: drm: Connector id 422 already initialized
DEBUG from aquamarine ]: drm: Connector 422 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 428
DEBUG from aquamarine ]: drm: Connector id 428 already initialized
DEBUG from aquamarine ]: drm: Connector 428 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 434
DEBUG from aquamarine ]: drm: Connector id 434 already initialized
DEBUG from aquamarine ]: drm: Connector 434 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 440
DEBUG from aquamarine ]: drm: Connector id 440 already initialized
DEBUG from aquamarine ]: drm: Connector 440 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 446
DEBUG from aquamarine ]: drm: Connector id 446 already initialized
DEBUG from aquamarine ]: drm: Connector 446 connection state: 2
DEBUG from aquamarine ]: drm: Rechecking CRTCs
DEBUG from aquamarine ]: drm: connector DP-1, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: HDMI-A-1 is disabled, releasing crtc 376
DEBUG from aquamarine ]: drm: connector HDMI-A-1, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-2, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-3, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-4, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-5, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-6, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-7, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-8, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: slot 0 crtc 376 unassigned
DEBUG from aquamarine ]: drm: slot 1 crtc 381 unassigned
DEBUG from aquamarine ]: drm: slot 2 crtc 386 unassigned
DEBUG from aquamarine ]: drm: slot 3 crtc 391 unassigned
DEBUG from aquamarine ]: drm: backup slot 0 crtc 376 assigned to disabled HDMI-A-1
DEBUG from aquamarine ]: udev: new udev change event for card1
DEBUG from aquamarine ]: udev: DRM device card1 changed
DEBUG from aquamarine ]: drm: Got a hotplug event for /dev/dri/card1
DEBUG from aquamarine ]: drm: Scanning connectors for /dev/dri/card1
DEBUG from aquamarine ]: drm: Scanning connector id 393
DEBUG from aquamarine ]: drm: Connector id 393 already initialized
DEBUG from aquamarine ]: drm: Connector 393 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 402
DEBUG from aquamarine ]: drm: Connector id 402 already initialized
DEBUG from aquamarine ]: drm: connector HDMI-A-1 crtc is incapable of vrr: props.vrr_capable -> 407, crtc->props.vrr_enabled -> 25
DEBUG from aquamarine ]: drm: Explicit sync supported
DEBUG from aquamarine ]: drm: connector HDMI-A-1 crtc supports CTM
DEBUG from aquamarine ]: drm: connector HDMI-A-1 crtc supports HDR (8)
DEBUG from aquamarine ]: drm: connector HDMI-A-1 crtc supports Colorspace (406)
DEBUG from aquamarine ]: drm: Connector 402 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 410
DEBUG from aquamarine ]: drm: Connector id 410 already initialized
DEBUG from aquamarine ]: drm: Connector 410 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 416
DEBUG from aquamarine ]: drm: Connector id 416 already initialized
DEBUG from aquamarine ]: drm: Connector 416 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 422
DEBUG from aquamarine ]: drm: Connector id 422 already initialized
DEBUG from aquamarine ]: drm: Connector 422 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 428
DEBUG from aquamarine ]: drm: Connector id 428 already initialized
DEBUG from aquamarine ]: drm: Connector 428 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 434
DEBUG from aquamarine ]: drm: Connector id 434 already initialized
DEBUG from aquamarine ]: drm: Connector 434 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 440
DEBUG from aquamarine ]: drm: Connector id 440 already initialized
DEBUG from aquamarine ]: drm: Connector 440 connection state: 2
DEBUG from aquamarine ]: drm: Scanning connector id 446
DEBUG from aquamarine ]: drm: Connector id 446 already initialized
DEBUG from aquamarine ]: drm: Connector 446 connection state: 2
DEBUG from aquamarine ]: drm: Connector HDMI-A-1 disconnected
ERR from aquamarine ]: drm: Cannot commit a disconnected output
DEBUG from aquamarine ]: drm: Rechecking CRTCs
DEBUG from aquamarine ]: drm: connector DP-1, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector HDMI-A-1, has crtc 376, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-2, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-3, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-4, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-5, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-6, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-7, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: connector DP-8, has crtc -1, will be rechecked
DEBUG from aquamarine ]: drm: slot 0 crtc 376 unassigned
DEBUG from aquamarine ]: drm: slot 1 crtc 381 unassigned
DEBUG from aquamarine ]: drm: slot 2 crtc 386 unassigned
DEBUG from aquamarine ]: drm: slot 3 crtc 391 unassigned
DEBUG from aquamarine ]: drm: HDMI-A-1 is not connected, clearing stale crtc 376
DEBUG from aquamarine ]: GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier 0x20000001046bb04 : GFX11,64KB_R_X,PIPE_XOR_BITS=2,PACKERS=2,DCC,DCC_MAX_COMPRESSED_BLOCK=128B,DCC_INDEPENDENT_128B,DCC_PIPE_ALIGN
DEBUG from aquamarine ]: GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier 0x20000001046bb04 : GFX11,64KB_R_X,PIPE_XOR_BITS=2,PACKERS=2,DCC,DCC_MAX_COMPRESSED_BLOCK=128B,DCC_INDEPENDENT_128B,DCC_PIPE_ALIGN
DEBUG from aquamarine ]: GBM: Allocated a new buffer with size [Vector2D: x: 1920, y: 1080] and format XR24 with modifier 0x20000001046bb04 : GFX11,64KB_R_X,PIPE_XOR_BITS=2,PACKERS=2,DCC,DCC_MAX_COMPRESSED_BLOCK=128B,DCC_INDEPENDENT_128B,DCC_PIPE_ALIGN
DEBUG from aquamarine ]: Swapchain: Reconfigured a swapchain to [Vector2D: x: 1920, y: 1080] XR24 of length 3
DEBUG from aquamarine ]: udev: new udev change event for card1
DEBUG from aquamarine ]: udev: DRM device card1 changed
DEBUG from aquamarine ]: drm: Got a hotplug event for /dev/dri/card1
DEBUG from aquamarine ]: drm: Scanning connectors for /dev/dri/card1
hyprctl monitors after recovery
Monitor HDMI-A-1 (ID 1):
	[email protected] at 0x0
	description: ODA 2468FZV 0x00001A0A
	make: ODA
	model: 2468FZV
	physical size (mm): 520x310
	serial: 0x00001A0A
	active workspace: 4 (4)
	special workspace: -98 (special:scratchpad)
	reserved: 0 0 0 0
	scale: 1
	transform: 0
	focused: yes
	dpmsStatus: 1
	vrr: false
	solitary: 0
	solitaryBlockedBy: session lock,windowed mode,special workspace,missing candidate
	activelyTearing: false
	tearingBlockedBy: next frame is not torn,user settings,missing candidate,hw cursor
	directScanoutTo: 0
	directScanoutBlockedBy: user settings,missing candidate
	disabled: false
	currentFormat: XRGB8888
	mirrorOf: none
	availableModes: [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] 
	colorManagementPreset: srgb
	sdrBrightness: 1
	sdrSaturation: 1
	sdrMinLuminance: 0.2
	sdrMaxLuminance: 80
	hardwareCursorsInUse: true

SiriusRak avatar Nov 23 '26 08:11 SiriusRak

@SiriusRak, the trace narrows the fatal error to the FALLBACK lock-surface object 100: the server reports invalid_object after the client sends its destroy request. It does not yet establish that the server first created that resource and then removed it. In Hyprland v0.56.2's onGetLockSurface, an output or monitor disappearing can make the handler return before creating the requested object. That could also produce this error. The excerpt shows a configure event for replacement surface 179, but none for 100; the complete trace is needed to check that difference.

Please attach the complete client trace you saved, plus the matching Hyprland log around 08:06:58–08:07:01 including SessionLock messages as well as aquamarine. In particular, look for New sessionLockSurface with id 100, onGetLockSurface: monitor is gone for output resource or onGetLockSurface: invalid output resource. Please also include the full hyprctl version output so the source check can be matched to your build. This would distinguish an object never created from one destroyed prematurely.

The existing watcher fixes #16154 and #11385 remain separate from finding the cause of this exit. No new tests or reproduction of the physical HDMI disconnect ran in this follow-up. Codex (GPT-6; reasoning effort not exposed) checked the trace, current Omarchy source and upstream protocol/source. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the same evidence and agreed with these limits; reviewer independence is not guaranteed. This remains open, waiting on the complete trace and matching compositor evidence.

omarchybot avatar Nov 23 '26 08:11 omarchybot

Thanks. I re-captured with Hyprland file logging enabled (debug:disable_logs = false; it was at its default true in my first capture, which is why that log only had aquamarine lines). Same symptom, shell exits 255, this time on object 141 instead of 100. The compositor log confirms the "never created" branch.

Hyprland log (no timestamps, debug:disable_time is default; order is what matters):

494:  [FallbackStateKeeper] Monitor HDMI-A-1 removed, entering fallback
513:  [CMonitorStateTracker] New monitor: FALLBACK
888:  drm: Connector HDMI-A-1 connected
940:  [CMonitorStateTracker] New monitor: HDMI-A-1
991:  [FallbackStateKeeper] Monitor HDMI-A-1 added, leaving fallback
1051: [CSessionLockProtocol] New sessionLockSurface with id 141
1052: ERR [.../src/protocols/SessionLock.cpp:214] onGetLockSurface: monitor is gone for output resource
1444: [CSessionLockProtocol] New sessionLockSurface with id 179
1609: WARN [.../src/protocols/SessionLock.cpp:50] SessionLockSurface object remains but surface is being destroyed???

Client trace (WAYLAND_DEBUG, same run):

09:15:49.926872  wl_output#134.name("FALLBACK")
09:15:50.140206  -> ext_session_lock_v1#92.get_lock_surface(new id ext_session_lock_surface_v1#141, wl_surface#138, wl_output#134)
09:15:50.316586  wl_registry#2.global_remove(76)          <- FALLBACK global removed only now
09:15:50.737090  -> wl_output#134.release()
09:15:51.064929  -> ext_session_lock_v1#92.get_lock_surface(new id ext_session_lock_surface_v1#179, wl_surface#176, wl_output#146)
09:15:51.171197  ext_session_lock_surface_v1#179.configure(28200, 1920, 1080)
09:15:51.241520  -> ext_session_lock_surface_v1#141.destroy()
09:15:51.348274  wl_display#1.error(wl_display#1, 0, "invalid object 141")

Reading:

  1. Hyprland already left fallback (line 991) when the client sent get_lock_surface on the FALLBACK wl_output. From the client's side that output was still valid: its global_remove arrived about 176 ms after the request.
  2. onGetLockSurface hit "monitor is gone for output resource" and returned without creating id 141. No configure was ever sent for 141, while 179 on the new HDMI-A-1 output got one in about 106 ms.
  3. When the shell later destroyed 141, Hyprland had no such object, hence the fatal invalid object 141.

So this is an object that was never created, not one destroyed prematurely. My earlier hypothesis was wrong. The first capture (object 100) fits the same pattern: request on FALLBACK, no configure, destroy, fatal error. It just lacks the compositor lines.

Since the client cannot know about the removal before global_remove, this looks like a Hyprland issue: per Wayland conventions, a request against an output that is going away should still create an inert resource (and could be sent finished) rather than skip it. Omarchy can only work around it on the shell side, for example by not requesting a lock surface on FALLBACK, or by deferring creation until the output is stable. That would also explain why filtering FALLBACK in #18495 did not fully help on my machine if the filter runs after the request was sent.

Files (window titles redacted, key events stripped), on this release:

Build: Omarchy 4.5.0-3, Hyprland 0.56.2 (commit efb50993, clean), Aquamarine 0.15.1, quickshell 0.3.2.r7.g2b4501a, kernel 7.2.15-1-omarchy, AMD Radeon 760M (Phoenix1).

SiriusRak avatar Nov 23 '26 09:11 SiriusRak

@SiriusRak, the complete logs establish the missing-resource path for this capture. Hyprland logs the request for object 141, then returns because its monitor is gone; in the matching 0.56.2 source, that return happens before allocating the protocol object. The client trace shows one later destroy() for 141, followed by invalid_object.

This specific path already has an upstream fix: Hyprland #16784, merged as 8b6f4329af2ec2dcd56d5eed3f50e068bfcf41a3. It creates an inert resource whose destroy request can still be handled when the monitor has disappeared. I checked the 0.57.2 release source, which contains that correction; your 0.56.2 build does not. Availability through Omarchy's supported package path has not been checked here. When a build containing the fix reaches you through normal updates, please retest the same sequence and share hyprctl version and whether the shell survives.

The filter in #18495 does not guard WlSessionLockSurface creation; its wallpaper filter therefore does not address this request path. Watcher lifetime after the shell exits remains separate, with #16154 and #11385 still open. This issue stays open for maintainer follow-up on the compositor fix and the watcher fixes.

No new worker tests or independent reproduction of the HDMI-disconnect/lock sequence ran in this follow-up. Codex (GPT-6; reasoning effort not exposed) checked the supplied complete logs, matching source and upstream fix. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the supplied evidence and agreed with this diagnosis and its limits; reviewer independence is not guaranteed.

omarchybot avatar Nov 23 '26 09:11 omarchybot