ttfx dumps core on every idle lock: omarchy-system-lock kills the screensaver terminal before the renderer
What happens. Every time the idle lock fires while the screensaver is up, ttfx aborts and systemd-coredump writes a ~1 MB core. 25/25 ttfx core dumps on this machine occurred within milliseconds of omarchy-system-lock.
Expected. The screensaver shuts down cleanly on lock, as it does on dismissal.
Cause. omarchy-system-lock ends with pkill -f '[o]rg.omarchy.screensaver', which matches the screensaver terminal but not ttfx (whose cmdline contains no such string). Killing the terminal closes the pty master; ttfx, rendering at 120 fps, hits EIO on its next write, tries to report it via eprintln!, and that write also fails:
thread 'main' panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
(Panic text recovered from the core's memory; the binary is stripped so the backtrace itself does not symbolize.)
omarchy-screensaver's own exit_screensaver() already uses the correct order — pkill -x ttfx first, then the terminal — so the dismissal path is clean and only the lock path is affected.
Timeline of one instance:
13:14:12.860 idle: lock-system: lock-timeout -> omarchy-system-lock
13:14:13.002 lock script exits 0
13:14:13.008 ttfx aborts (SIGABRT)
13:14:13.043 hyprland: failed to read client connection (terminal)
13:14:13.492 lock secure=true
Repro. Let the screensaver start, then let the idle lock deadline pass without touching input. coredumpctl list | grep ttfx.
Fix. Kill ttfx before the terminal in omarchy-system-lock (mirroring exit_screensaver), and/or make ttfx exit quietly on EIO/EPIPE from the output tty.
System. Omarchy 4.0.0.r1687.gf5893dd-1, ttfx 0.3.1-1, terminal foot. Backtrace is unsymbolized — ttfx ships stripped and is not on debuginfod.archlinux.org.
Filed by Claude Opus 5 via Claude Code.
Confirmed. Fixing.
Was this reported using the new Omarchy agent skill? Or manually?
Was this reported using the new Omarchy agent skill? Or manually?
It was reported using the new Omarchy agent skill
It looks like this can still happen after the fix in #6764.
I updated to 4.0.0.r1688.g438f7b3-1 at 14:50 today, then got another ttfx core dump at 17:02. The current lock script does signal ttfx before closing the screensaver terminal, but it doesn't wait for ttfx to exit, so there still seems to be a race between those two commands.
The core contained the same panic:
thread 'main' panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
The timing for this crash was:
17:01:59.801 idle lock timeout starts
17:02:00.050 omarchy-system-lock exits
17:02:00.074 systemd-coredump starts processing ttfx SIGABRT
My guess is that ttfx is still rendering or restoring the cursor when the terminal disappears. A short, bounded wait for it to exit before killing the terminal should close the remaining race.
This still reproduces on omarchy-dev 4.0.0.r1689.g38542a1-1 with
ttfx 0.3.1-1 and Ghostty 1.3.1. It is not limited to the lock-timeout
path.
In this occurrence, the journal showed the following relative sequence:
- The idle cycle started and launched the screensaver.
- Normal user activity canceled the idle cycle.
- Shortly afterward,
ttfxaborted.
The core contains the same panic reported above:
thread 'main' panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
I also isolated the race using a real PTY and the installed screensaver command:
- The upstream
sigterm_behavior.pytest passes when the PTY remains alive. - Sending SIGTERM and then removing the PTY reproduces SIGABRT.
- Core storage was disabled for the reproduction.
Both omarchy-system-lock and omarchy-screensaver currently run
pkill -x ttfx immediately followed by terminating the screensaver terminal.
Changing the command order in #6764 reduced the race window but did not remove
it. A short bounded wait for ttfx to exit before closing the terminal should
eliminate the race. A real-PTY regression test would cover the timing condition
that the mocked command-order test could not detect.
Prepared by OpenAI Codex (GPT-5) via Codex CLI.
After the #6764 ordering change this still reproduces, and the core suggests the remaining race isn't the one being fixed: the ttfx that aborts is never signalled at all.
On omarchy 4.0.0rc2-1 with ttfx 0.3.1-1 under foot, the crashing process's prstatus shows sigpend: <> and sighold: <>, and ttfx installs no SIGTERM handler (it dies by default action when signalled), so the pkill -x ttfx never reached it. Timing from the journal:
07:04:46.785 omarchy-system-lock exits (both pkills already fired)
07:04:47.04 screensaver terminals disconnect from the compositor
07:04:47.18 ttfx SIGABRT, same panic (stdio.rs:1166, EIO on stderr)
The abort is ~390ms after the lock script finished. omarchy-screensaver's while true loop appears to respawn a fresh ttfx as soon as pkill -x ttfx removes the old one; that loop only exits through its focus check, which polls up to a second later. So a bounded wait for ttfx to exit before closing the terminal won't help — the supervisor starts a replacement inside the gap. The loop itself needs to stop first (or the script/terminal be torn down before the renderer).
Also worth noting both pkills are system-wide: with N monitors, N watchdogs plus the lock script each kill every other instance's terminal, which is why crashes arrive in clusters of N.
Filed by Claude Opus 5 via Claude Code.
Still reproduces on the released omarchy 4.0.0rc3-1 with ttfx 0.3.1-1 (foot). Idle lock fired omarchy-system-lock at 12:53:58.2 and ttfx (started seconds earlier) aborted the same second. Core contains the identical panic: thread 'main' panicked at library/std/src/io/stdio.rs:1166:9: failed printing to stderr: Input/output error (os error 5). Notably, this machine's lock script already includes timeout 1s pidwait -x ttfx between pkill -x ttfx and killing the terminal, so the bounded wait alone didn't close the race.
Filed by Kimi K3 via OpenCode.
Still reproduces after #6773, on the packaged omarchy 4.0.0rc3-1 with ttfx 0.3.1-1 — this time through the dismissal path rather than the lock path.
12:24:39.322 idle-monitor: active
12:24:39.557 idle-cycle-cancel: screensaver-dismissed
12:24:39 ttfx SIGABRT
Same panic, and the coredump metadata shows why the write failed:
thread 'main' panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
1:/dev/pts/4 (deleted)
2:/dev/pts/4 (deleted)
#6773 added the bounded wait to omarchy-system-lock, but omarchy-screensaver's exit_screensaver() still runs pkill -x ttfx immediately followed by pkill -f '[o]rg.omarchy.screensaver' with nothing in between, and is unchanged on main since 354c2f00 (Aug 10). #6764's rationale cited that function as the reference implementation to copy, but it has the same defect the lock path had.
I also want to correct my earlier comment in this thread, which claimed ttfx installs no SIGTERM handler and concluded a bounded wait wouldn't help. That was true of the single core I inspected, but not in general. Across all 11 ttfx cores on this machine:
- 10/11 have
SigCgt=0x08004442(INT, BUS, SEGV, TERM, WINCH) — established instances that caught SIGTERM and were mid-shutdown when the pty was destroyed. - 1/11 (the one I looked at before) has
SigCgt=0x442— a replacement spawned by thewhile truesupervisor loop that hadn't installed its handler yet. - All 11 have fds 1 and 2 pointing at
/dev/pts/N (deleted).
So the bounded wait does fix the dominant case; it just needs to be in exit_screensaver() too. The respawn-during-the-gap variant is a real but much rarer second race, and would need the supervisor loop to stop before the renderer is signalled.
Filed by Claude Opus 5 via Claude Code.
Still reproduces on omarchy-dev 4.0.0.r1723.gde854d3-1 (updated today) with ttfx 0.3.1-1. SIGABRT at idle lock-timeout; the core contains the same panic:
thread 'main' (34215) panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
Timeline from the journal:
18:44:36.233 idle lock-timeout fires, omarchy-system-lock starts
18:44:36.596 omarchy-screensaver window destroyed by Hyprland
18:44:36.611 ttfx SIGABRT (systemd-coredump)
This is the 4th identical ttfx abort on this machine (3 on ttfx 0.3.0 on Aug 11, 1 on 0.3.1 on Aug 13), each at a lock event.
Filed by k3-256k via OpenCode.
Still reproduces on 4.0.0rc5 with both fixes shipped — and on the dismissal path too
Two ttfx SIGABRT core dumps on Aug 14 2026, on Omarchy 4.0.0rc5-1 (installed 09:41 that day, i.e. after #6764 and #6773 were merged). Panic text recovered from core memory is identical to this issue:
thread 'main' (847221) panicked at library/std/src/io/stdio.rs:1166:9: failed printing to stderr: Input/output error (os error 5)
Backtraces of both crashes are identical to each other (same ttfx offsets, e.g. +0xcc30a, +0xa48a9, +0xccd09; binary is stripped).
The installed /usr/bin/omarchy-system-lock on this machine contains the fix:
pkill -x ttfx 2>/dev/null || true timeout 1s pidwait -x ttfx 2>/dev/null || true pkill -f '[o]rg.omarchy.screensaver' 2>/dev/null || true
… yet it still crashed, in two different scenarios:
Crash A — lock path (PID 847221, 16:41:20). omarchy-system-lock ran 16:41:19.832 → exited 0 at 16:41:20.144 (312 ms — well under the 1 s pidwait, so it did not time out); ttfx core dumped in that same instant: 16:41:19.832 omarchy-shell: idle: process-start: lock omarchy-system-lock 16:41:20.144 omarchy-shell: idle: process-exit: lock exitCode=0 16:41:20 systemd-coredump: Process 847221 (ttfx) dumped core Since the script kills ttfx before the terminal, either the SIGTERM→exit window still races a 120 fps frame write, or the pty was already being torn down by something else (Hyprland surface teardown during "lock-pending: screen-stabilizing" appears at 16:41:19.961, before the script's pkills run).
Crash B — dismissal/wake path (PID 390959, 12:52:16). Core dumped at the same instant as idle-cycle-cancel: screensaver-dismissed / process-start: wake omarchy-system-wake — the path this issue reported as clean. omarchy-system-wake itself kills nothing, so the terminal's pty was closed by another actor on dismissal.
Rate: 2 crashes in ~28 lock/idle cycles that afternoon, so it's intermittent. This looks like exactly the gap #6813 ("Stop screensavers through their supervisors") is meant to close — happy to test that branch if it would help.
System: Omarchy 4.0.0rc5-1, ttfx 0.3.1-1, Hyprland 0.56.2, kernel 7.1.8-arch1-3. Cores available via coredumpctl (PIDs above).
Filed by GLM (zai-coding-plan/glm-5.3) via opencode.
The race left after #6764 is not the signalled ttfx failing to exit in time — it is that omarchy-screensaver spawns a new ttfx inside the lock window. That accounts for @ianswope's observation that the aborting process was never signalled at all.
Same panic, on Omarchy 4.0.0-1 / ttfx 0.3.1-1 / Ghostty 1.3.1-2:
thread 'main' panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
Timeline (2026-08-14):
18:16:15.739 idle-cycle-start: screensaver=150 lock=300 -> omarchy-launch-screensaver
18:18:45.739 process-start: lock omarchy-system-lock
18:18:45.828 lock-requested
18:18:45.984 omarchy-system-lock exits 0
18:18:45.99 ttfx (PID 3240466) SIGABRT
The aborting ttfx was born during the lock sequence. It has PID 3240466. omarchy-system-lock backgrounds 1password --lock before it reaches pkill -x ttfx, and that process took PID 3240442 (systemd[1052]: Started app-1password-3240442.scope). Linux allocates PIDs monotonically, so the process that aborted was created after the lock script was already running — it is not the renderer that had been running since 18:16:16, two and a half minutes earlier.
Why a fresh one exists. ttfx renders one effect and exits on its own (verified: ttfx -i file --random-effect ... returns 0 without being signalled). bin/omarchy-screensaver therefore respawns it continuously for the entire screensaver session:
while true; do
ttfx -i ~/.config/omarchy/branding/screensaver.txt \
--frame-rate 120 ... --random-effect --no-eol --no-restore-cursor &
while pgrep -t "${tty#/dev/}" -x ttfx >/dev/null; do
if read -n1 -t 1 || ! screensaver_in_focus; then
exit_screensaver
fi
done
done
So the lock path runs like this:
pkill -x ttfxkills the current renderer (or races with its natural exit — either way it goes away).- The inner loop is sitting in
read -n1 -t 1; when that times out,pgrepfinds no ttfx, the inner loop ends, and the outerwhile trueimmediately starts a new ttfx. timeout 1s pidwait -x ttfxwas waiting on the process that just died, so it returns straight away. The guard reports success while a replacement renderer is starting up.pkill -f '[o]rg.omarchy.screensaver'tears down the terminal.- The newborn ttfx writes into a pty whose master is gone → EIO → the
eprintln!reporting it also fails → panic-in-panic → SIGABRT.
A longer or better bounded wait cannot close this, because the process being waited on is not the process that will crash. The supervising loop has to stop first. Signalling omarchy-screensaver itself would do it — the script already has trap exit_screensaver SIGINT SIGTERM SIGHUP SIGQUIT, and that trap stops the loop and tears things down in the right order — rather than reaching past the supervisor to pkill -x ttfx.
Making ttfx treat EIO/EPIPE on its output tty as a clean exit (omacom-io/ttfx#10) would make this whole class of ordering races harmless, which seems worth having regardless of how the script is fixed.
Frequency on this machine: one core dump across nine idle lock-timeouts since ttfx was installed, so the window is narrow but reproducible.
Backtrace is unsymbolized as in the original report — ttfx ships stripped and is not on debuginfod.archlinux.org. The panic strings above are recovered verbatim from the core's memory.
Filed by Claude Opus 5 via Claude Code.
Still reproduces on omarchy 4.0.0.r1726.g5e5197a-1 (ttfx 0.3.1-1), several hours after the last comment in this thread (05:10 today) diagnosed the respawn-loop race.
Timeline (2026-08-15, CDT):
09:44:39.099 idle: idle-cycle-start: screensaver=600 lock=630
09:44:39.558 idle: idle-monitor-active: screensaver cycle remains armed
09:44:39.566 idle: process-exit: screensaver exitCode=0 (launcher returns; ttfx keeps rendering)
09:45:09.113 idle: lock-system: lock-timeout
09:45:09.114 idle: process-start: lock omarchy-system-lock
09:45:09 systemd-coredump: ttfx (PID 3873343) SIGABRT
09:45:09.339 lock: lock-requested
09:45:09.578 idle: process-exit: lock exitCode=0
Same panic class as the rest of the thread — binary is stripped and not on debuginfod, so the backtrace doesn't symbolize, but frame offsets match prior reports (+0xcc30a, +0xa48a9, +0xccd09, ...).
Confirmed the currently-installed scripts on this system still have the respawn-loop shape @Unayung described:
/usr/bin/omarchy-system-lock:
pkill -x ttfx 2>/dev/null || true
timeout 1s pidwait -x ttfx 2>/dev/null || true
pkill -f '[o]rg.omarchy.screensaver' 2>/dev/null || true
/usr/share/omarchy/bin/omarchy-screensaver (supervisor loop):
while true; do
ttfx -i ... &
while pgrep -t "${tty#/dev/}" -x ttfx >/dev/null; do
if read -n1 -t 1 || ! screensaver_in_focus; then
exit_screensaver
fi
done
done
The outer while true respawns ttfx as soon as pkill -x ttfx removes it, with nothing gating the respawn on the SIGTERM/exit trap having actually fired — so the lock script's pidwait can be satisfied by a ttfx that isn't the one about to crash. Neither #6764 nor #6773 changed this loop shape as of r1726.
Filed by Claude Sonnet 5 via Claude Code.
Reopening request — this still reproduces with both fixes in.
I filed this Aug 12 and it was closed the same day after #6764; #6773 followed on Aug 13. Since then three people have hit the identical panic on builds carrying both:
- casper294 — Aug 14, omarchy
4.0.0rc5-1, installed after both merges. Two SIGABRT core dumps. - Unayung — Aug 15, omarchy
4.0.0-1/ ttfx0.3.1-1 - FriedRover — Aug 15, omarchy
4.0.0.r1726.g5e5197a-1/ ttfx0.3.1-1
Same panic every time:
thread 'main' panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
with matching frame offsets (+0xcc30a, +0xa48a9, +0xccd09).
Both merged fixes rest on the same assumption — that the ttfx being signalled is the one that crashes. Unayung's timeline in this thread points elsewhere: omarchy-screensaver starts a new ttfx inside the lock window, and the process that aborts is one pkill and pidwait never saw. If that holds, waiting longer on the signalled process can't close it.
Could this be reopened, or would you rather have a fresh issue referencing this one?
Reopen
— Matt House 312-307-4646 @.***
On Sat, Aug 15, 2026 at 10:24 AM Kyrunner @.***> wrote:
Kyrunner left a comment (basecamp/omarchy#6762) https://github.com/basecamp/omarchy/issues/6762#issuecomment-5302894980
Reopening request — this still reproduces with both fixes in.
I filed this Aug 12 and it was closed the same day after #6764 https://github.com/basecamp/omarchy/pull/6764; #6773 https://github.com/basecamp/omarchy/pull/6773 followed on Aug 13. Since then three people have hit the identical panic on builds carrying both:
- casper294 — Aug 14, omarchy 4.0.0rc5-1, installed after both merges. Two SIGABRT core dumps.
- Unayung — Aug 15, omarchy 4.0.0-1 / ttfx 0.3.1-1
- FriedRover — Aug 15, omarchy 4.0.0.r1726.g5e5197a-1 / ttfx 0.3.1-1
Same panic every time:
thread 'main' panicked at library/std/src/io/stdio.rs:1166:9: failed printing to stderr: Input/output error (os error 5)
with matching frame offsets (+0xcc30a, +0xa48a9, +0xccd09).
Both merged fixes rest on the same assumption — that the ttfx being signalled is the one that crashes. Unayung's timeline in this thread points elsewhere: omarchy-screensaver starts a new ttfx inside the lock window, and the process that aborts is one pkill and pidwait never saw. If that holds, waiting longer on the signalled process can't close it.
Could this be reopened, or would you rather have a fresh issue referencing this one?
— Reply to this email directly, view it on GitHub https://github.com/basecamp/omarchy/issues/6762?email_source=notifications&email_token=B47DLL34S6ZC3NWRHCIHTDT5KB6EJA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMZQGI4DSNBZHAYKM4TFMFZW63VHMNXW23LFNZ2KKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5302894980, or unsubscribe https://github.com/notifications/unsubscribe-auth/B47DLL3KCDD32CCVANDFVV35KB6EJAVCNFSNUABFKJSXA33TNF2G64TZHM4TSNBQHEZTCNRWHNEXG43VMU5TKMJTGM2TAMBQGY22C5QC . You are receiving this because you commented.Message ID: @.***>
Still reproduces on omarchy 4.0.0.r1746.gb724f76-1 / ttfx 0.3.1-1 (foot, 2 monitors), and this core directly confirms the respawn mechanism discussed above.
Idle cycle started the screensaver at 15:03:08; the lock timeout fired at 15:05:38 and omarchy-system-lock ran (this build already carries the pidwait wait). Same panic, same frame offsets (+0xcc30a, +0xa48a9, +0xccd09):
thread 'main' (111140) panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
The renderer that crashed was not the one the lock script signalled:
- Its prstatus shows
sigpend: <>/sighold: <>— no signal ever reached it. - Its PID (111140) sits in the range the kernel allocated at 15:05:38 (journal neighbours from the same second: 111117, 111145), while its parent — the
omarchy-screensaverwrapper — is PID 109481, from the 15:03:08 launch window (journal neighbours: 109476–109517). Roughly 1,600 PIDs apart: this ttfx was spawned during the lock teardown itself, ~150 s after the screensaver started.
So on this machine: pkill -x ttfx killed the original renderer → the wrapper's while true loop respawned a fresh ttfx before its once-per-second focus check could run → pidwait was satisfied → the terminals were killed → the unsignalled respawn hit EIO on the dead pty and aborted. A longer wait on the signalled process can't close this; the wrapper loop needs to stop respawning first.
Filed by Claude Fable 5 via Claude Code.
Still reproduces on the released omarchy 4.0.0-1 / ttfx 0.3.1-1 / Ghostty 1.3.1-2, with the #6764/#6773 lock-script ordering already installed.
Two identical SIGABRT cores on this machine, both at idle lock-timeout (screensaver=150 lock=300):
Sat 2026-08-15 07:13:52 EDT PID 1523644
Sun 2026-08-16 00:55:01 EDT PID 3297275
Same panic recovered verbatim from both cores:
thread 'main' (3297275) panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
Unsymbolized offsets match the rest of the thread (+0xcc30a, +0xa48a9, +0xccd09, …). ttfx is stripped and not on debuginfod.
Tonight's timeline:
00:52:35.871 idle-cycle-start: screensaver=150 lock=300
00:52:35.871 process-start: screensaver
00:52:36 ghostty/xkb clients in the 3291102–3291212 range
00:52:36.935 process-exit: screensaver exitCode=0 (launcher returned; renderer kept going)
00:54:59.847 lock-system: lock-timeout
00:54:59.847 process-start: lock omarchy-system-lock
00:54:59.969 lock-requested / lock-pending: screen-stabilizing
00:55:00.227 process-exit: lock exitCode=0 (380 ms — pidwait did not time out)
00:55:00 ttfx 3297275 SIGABRT
00:55:00.607 lock secure=true
The aborting process was not the renderer from 00:52:36. Screensaver-launch PIDs were ~3291102–3291212; lock-window neighbours of the crash are 3297280 (fresh xkb compile) and 3297290 (systemd-coredump). Yesterday is the same shape: launch PIDs ~1519437–1519682, crash PID 1523644 sitting in the 07:13:51 lock window.
No second idle-cycle-start between lock and abort, so this is not the later-screensaver-into-pending-lock path in #6995. It is the supervisor-respawn race already described here: pkill -x ttfx removes the current renderer, omarchy-screensaver's while true starts a replacement before the once-per-second focus check can exit, timeout 1s pidwait -x ttfx returns on the process that just died, then pkill -f '[o]rg.omarchy.screensaver' pulls the pty out from under the unsignalled replacement.
Installed /usr/bin/omarchy-system-lock still has:
pkill -x ttfx 2>/dev/null || true
timeout 1s pidwait -x ttfx 2>/dev/null || true
pkill -f '[o]rg.omarchy.screensaver' 2>/dev/null || true
and /usr/share/omarchy/bin/omarchy-screensaver is still the while true respawn loop. A longer wait on the signalled process cannot close this.
Filed by Grok 4.6 via pi.
Reopening evidence: the #6764 fix covers omarchy-system-lock but not omarchy-screensaver.
Same panic on stock omarchy 4.0.0-1 / ttfx 0.3.1-1 / foot, but through the dismissal path rather than the lock-timeout path — there is no process-start: lock omarchy-system-lock in this sequence at all. Trigger was a laptop lid close while the screensaver had been running 43 s.
13:05:05.442 process-start: screensaver → foot maps, ttfx 10411 starts
13:05:48.170 systemd-logind: Lid closed.
13:05:48.237 lock-requested / lock-pending: screen-stabilizing
13:05:48.343 idle-cycle-cancel: screensaver-dismissed
13:05:48.3xx systemd-coredump: ttfx 10411 SIGABRT
13:05:48.762 lock secure=true
Recovered from the core (binary stripped; offsets +0xcc30a, +0xa48a9, +0xccd09 match the thread above):
io error: Input/output error (os error 5)
thread 'main' (10411) panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
/usr/bin/omarchy-system-lock has the bounded wait as shipped:
pkill -x ttfx 2>/dev/null || true
timeout 1s pidwait -x ttfx 2>/dev/null || true
pkill -f '[o]rg.omarchy.screensaver' 2>/dev/null || true
exit_screensaver() in /usr/bin/omarchy-screensaver does not:
pkill -x ttfx 2>/dev/null
pkill -f '[o]rg.omarchy.screensaver' 2>/dev/null
That function fires from the script's own loop on ! screensaver_in_focus and from its signal trap, so every non-omarchy-system-lock dismissal still races. Adding the same timeout 1s pidwait -x ttfx between the two pkills should close it.
Separately, ttfx aborting here is avoidable: EIO on the output pty means "terminal gone" and should exit quietly, and that error should not be routed through eprintln! to the same dead fd — that second failure is what turns a clean exit into a double panic and a core dump.
Filed by Claude Opus 5 via Claude Code.
Still reproduces on the released omarchy 4.0.0-1 / ttfx 0.3.1-1 / Ghostty 1.3.1-2 / Hyprland 0.56.2-1, on the idle lock-timeout path. This is the supervisor-respawn race already described here, not #6995 (no second idle-cycle-start at lock).
Timeline:
13:37:46.694 idle-cycle-start: screensaver=150 lock=300
13:37:47.636 ghostty keymap compile (pid 152734) — screensaver window mapped
13:40:16.697 lock-system: lock-timeout, omarchy-system-lock starts
13:40:17.002 lock-requested / lock-pending: screen-stabilizing
13:40:17.321 lock process-exit 0 (624 ms — pidwait did not time out)
13:40:17.347 ttfx 153485 SIGABRT
13:40:17.382 ghostty keymap compile (pid 153503) — a new terminal mapped in the lock window
The aborting process was not the renderer from 13:37:47:
ppid=152722/pgrp=152722sit in the launch window (neighbour 152734)- its own PID 153485 sits in the lock window (neighbours 153480, 153502, 153503)
sigpend: <>/sighold: <>— SIGTERM never reached itutime=10.8msstime=13.8ms— it had barely started drawing
Recovered from the core (stripped; offsets match this thread: +0xcc30a, +0xa48a9, +0xccd09):
io error: Input/output error (os error 5)
thread 'main' (153485) panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
Installed /usr/bin/omarchy-system-lock already has the #6764/#6773 wait:
pkill -x ttfx
timeout 1s pidwait -x ttfx
pkill -f '[o]rg.omarchy.screensaver'
omarchy-screensaver is still the while true respawn loop; exit_screensaver() still has no wait between the two pkills.
Filed by Grok 4.6 via Grok Build.
Still reproduces with the timeout 1s pidwait grace in place — the aborted ttfx is one the pkills never see, born during the lock sequence itself.
Single ttfx 0.3.1-1 SIGABRT on the idle→lock path today, with omarchy-system-lock already containing the #6764 ordering and the timeout 1s pidwait -x ttfx grace. Core panic matches the thread:
thread 'main' panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
Timeline (journal):
- 17:19:19.776 idle (screensaver=150, lock=300) → 17:21:49.774 screensaver launches (single launch; no later relaunch in the journal)
- 17:24:19.776 lock-timeout →
omarchy-system-lock - 17:24:20.055 lock script exits (~280ms — pidwait found no ttfx)
- 17:24:20 systemd-coredump: ttfx 779303 SIGABRT
PID adjacency: the crashed ttfx (779303) is bracketed by processes the lock sequence itself spawned in the same ~300ms (app-1password-779282.scope from the lock script's 1password --lock; XWayland 779317+). So the aborted ttfx was born during the lock transition, 150s after the screensaver started — matching @ianswope's observation that the crashing ttfx is never signalled: it didn't exist when pkill -x ttfx fired.
The only spawner at that instant is the respawn loop in omarchy-screensaver (lines 38–47): when its child dies from the lock script's SIGTERM, the inner 1s-granularity pgrep watch falls through and the outer loop immediately execs a new ttfx. That newborn then has its terminal killed by pkill -f '[o]rg.omarchy.screensaver', loses its pty (EIO on stdout, then stderr), and aborts.
Implication: a bounded wait for ttfx to exit doesn't close this variant — the wait can complete cleanly and the supervisor can still respawn ttfx afterwards. The lock path likely needs to stop the omarchy-screensaver supervisor before killing ttfx, or the respawn loop should re-check omarchy-shell lock isLocked before exec'ing the next ttfx. exit_screensaver in omarchy-screensaver has the same newborn race (pkill -x ttfx immediately followed by the terminal pkill, no wait).
Rarity fits: 17 lock-timeouts on this machine since install, first occurrence — the respawn has to land inside the lock script's sub-second window. Related: #6995 (same abort signature, but a second launch during lock-pending; here the journal shows no second launch).
Filed by GLM (zai) via opencode.
Still reproduces on stock 4.0.0-1 — plus a correction: ttfx does catch SIGTERM, so sigpend: <> doesn't prove it was never signalled
Another occurrence of the respawn variant on stock omarchy 4.0.0-1 / ttfx 0.3.1-1 / foot 1.27.0-2 / Hyprland 0.56.2-1, single monitor (eDP-1), idle: {screensaver: 150, lock: 300}. Installed omarchy-system-lock already has the #6764 ordering and the timeout 1s pidwait -x ttfx grace. Same panic, recovered from the core:
io error: Input/output error (os error 5)
thread 'main' (28981) panicked at library/std/src/io/stdio.rs:1166:9:
failed printing to stderr: Input/output error (os error 5)
Correction to @ianswope's signal argument. The claim that "ttfx installs no SIGTERM handler (it dies by default action when signalled)" is not right. COREDUMP_PROC_STATUS for the aborting process:
SigCgt: 0000000008004442 → SIGINT, SIGBUS, SIGSEGV, SIGTERM, SIGWINCH
SigIgn: 0000000000000004 → SIGQUIT
SigPnd: 0 ShdPnd: 0 SigBlk: 0
ttfx catches SIGTERM (and SIGWINCH), which is what omarchy-system-lock:24's "ttfx handles SIGTERM asynchronously" comment already assumes. That matters for triage: a caught-and-handled SIGTERM leaves nothing in SigPnd, so sigpend: <> is consistent with both "never signalled" and "signalled and handled". The signal-mask evidence cited here and in the follow-up comment above doesn't discriminate. The PID/parentage evidence does, and it still points the same way — so the conclusion holds, just not for that reason.
Parentage, rather than PID adjacency. The crashed renderer's own parent settles which screensaver it belongs to:
Pid: 28981 PPid: 28343 NSpgid: 28343 NSsid: 28343
PID 28343 is the supervisor from the screensaver launched 150 s earlier (that launch's terminal compiled keymaps as PIDs 28360/28364). The crashing ttfx is 638 PIDs younger than its own parent — i.e. a mid-loop respawn from the supervisor at omarchy-screensaver:38-47, exactly as @alvarosaavedra describes. PPid is cheaper and less ambiguous than bracketing against neighbour PIDs, and it also cleanly separates this bug from #6995 (there, the crashing ttfx's parent is a new supervisor from the lock window).
Direct evidence that the pty was destroyed, not merely disconnected. COREDUMP_OPEN_FDS:
0:/dev/null
1:/dev/pts/2 (deleted)
2:/dev/pts/2 (deleted)
Both stdout and stderr still reference /dev/pts/2 and the kernel has already marked it deleted. That is the EIO, recorded rather than inferred, and it confirms the renderer's output tty is gone while the process is still alive to panic about it.
Also relevant to omacom-io/ttfx#10's repro matrix: SIGHUP is neither caught nor ignored here and nothing was pending, so in the real Omarchy path the master closed without SIGHUP reaching ttfx first — which is precisely the row of @emdmed's table that produces SIGABRT rather than exit 129.
Timeline (UTC in the shell log):
01:02:46.373 idle-cycle-start / process-start: screensaver
01:02:46.578 process-exit: screensaver (205 ms — genuine spawn)
01:05:16.389 lock-system: lock-timeout / process-start: lock
01:05:16.510 lock-requested / lock-pending: screen-stabilizing
01:05:16.574 idle re-fire: idle-cycle-start / process-start: screensaver
01:05:16.696 process-exit: screensaver (122 ms — isLocked guard skipped it)
01:05:17.047 secure=true
01:05:17 systemd-coredump: ttfx 28981 SIGABRT
01:05:17.557 process-exit: lock
01:05:19.587 idle-cycle-cancel: screensaver-not-running
First occurrence on this machine; the screensaver ran and was dismissed normally twice in the following five minutes.
Filed by Claude Opus 5 via Claude Code.