Compositor watchdog kills the whole session under host OOM — main thread blocked in rq_qos_wait (state D)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 20/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- linux, nixos, rust
- Domain
- operating-systems
Research direction
Start by checking the Aizome watchdog logs and the kernel OOM and systemd journal entries cited in the report to confirm the timeline and the main thread’s state. The report attributes the restart to host-wide memory exhaustion and blocking in rq_qos_wait, and frames the watchdog behavior as a design consideration rather than a specific change. Done is unclear from the issue; there is no named code entry point, proposed behavior, or test.
Written by the indexing model from the issue text.
Description
Aizome session crash report — 18 November 2026, 19:17 (host alpo)
- Prepared by: Hermes Agent (Nous Research), CLI, profile
default,
modelqwen/qwen4-max:free, for the Aizome developer. - Incident: the Aizome compositor was killed by systemd's watchdog and the
whole graphical session restarted. Root cause: host-wide out-of-memory, not
an Aizome fault. The compositor's main thread was blocked in the kernel under
memory/swap thrashing and could not service the watchdog. - All timestamps local (CST, UTC-6). Kernel/systemd/Hermes logs quoted verbatim.
1. Machine / kernel
| Item | Value |
|---|---|
| Kernel | Linux 7.3.4 x86_64, NixOS, PREEMPT(full), tainted G OE |
| CPUs | 12 |
| RAM (MemTotal) | 16,127,600 kB ≈ 15.38 GiB |
| Swap (SwapTotal) | 16,777,212 kB ≈ 16 GiB |
| zswap | enabled (/sys/module/zswap/parameters/enabled = Y) |
| System boot | 2026-11-18 15:13 |
| Aizome session start | 15:14:04 (aizome-session, pid 2400) |
| Machine uptime at crash (19:17) | ≈ 4 h 04 m (no kernel reboot occurred) |
| Aizome session uptime at crash | ≈ 4 h 03 m |
The kernel did not reboot; only the Aizome compositor/service was killed and
restarted by systemd. The aizome-session supervisor (pid 2400) stayed up.
2. Memory state at the crash (kernel OOM dump, 19:17:03)
The system was in hard, total memory exhaustion — RAM and swap both effectively
zero, file cache evicted, all_unreclaimable? yes:
kswapd0: page allocation failure: order:0, mode:0x40cc0(GFP_KERNEL|__GFP_COMP)
(stack: swap_cache_alloc_folio / zswap_shrinker_scan / kswapd)
Mem-Info (at the oom-kill):
active_anon: 9,885,780 kB ≈ 9.43 GiB
inactive_anon: 3,150,084 kB ≈ 3.00 GiB (≈ 12.4 GiB anonymous total)
active_file: 0 kB
inactive_file: 540 kB (file cache essentially evicted)
free: 0 kB ← no free RAM
all_unreclaimable? yes
Free swap = 224 kB ← of 16 GiB swap (essentially exhausted)
Total swap = 16,777,212 kB
404,107 pages in swap cache ≈ 1.54 GiB
Node 0 Normal zspages (zswap compressed) ≈ 1.39 GiB
So ~31.4 GiB of RAM+swap was effectively fully consumed (mostly anonymous process
memory + zswap), with kswapd0 failing to allocate even a single order-0 page.
OOM victim:
oom-kill: constraint=CONSTRAINT_NONE ... global_oom,
task_memcg=/user.slice/.../app-ghostty-surface-transient-280782.scope,
task=rust-analyzer, pid=309556
Out of memory: Killed process 309556 (rust-analyzer)
total-vm:5,311,204 kB (≈5.06 GiB), anon-rss:1,138,952 kB (≈1.09 GiB),
oom_score_adj:200
Load: the Hermes gateway log recorded loadavg_1m=46.56 at 19:17:20 on 12
CPUs (~4× CPU count — heavy thrashing / runnable queue).
3. What triggered it
A cargo test --workspace run from the agent's terminal tool was compiling and
linking a large Rust workspace (GPU/UI deps: wgpu / tiny-skia / GPUI, full
debuginfo, ~300 MB debug binaries). On top of an already-loaded desktop
(rust-analyzer ~5 GiB VM, Discord, ghostty terminals, Aizome), the build's
anonymous memory pushed the host past RAM+swap. The build ran in the ghostty
terminal's session cgroup scope with no memory cap, so the OOM cascade hit the
whole session. (Filed upstream as NousResearch/hermes-agent#157633.)
4. Aizome-specific timeline (the part for the developer)
19:17:03 kernel OOM (free RAM 0, free swap 224 kB); rust-analyzer killed.
19:17:03 aizome_comp_core::watchdog WARN: the main loop is stalled for_=8.479s
19:17:13 aizome_comp_core::watchdog ERROR: main loop stalled 18.1 s
(systemd stops Aizome at 30 s and starts it again)
main thread: state D, waiting in rq_qos_wait, syscall 16 (ioctl)
"(the main thread didn't answer the signal; it may be stuck in the kernel)"
19:17:19 systemd: aizome.service: Watchdog timeout (limit 30s)!
19:17:19 systemd: Killing process 2454 (aizome) with signal SIGABRT
(backtrace: aizome_comp_core::watchdog::on_signal / watch)
19:17:23 systemd: Killing aizome-shell (2475) SIGKILL; Xwayland (2477) SIGKILL
19:17:23 systemd: aizome.service: Failed with result 'watchdog'
19:17:24 systemd: Starting Aizome compositor... (new aizome pid 338603)
19:17:26 new Xwayland (338628); xwayland-satellite 0.8.3; watchdog interval=30s
19:18:18–19:18:33 aizome-shell crash-loop: "stopped (signal 9); starting it again"
repeatedly, until pid 339326 stayed up at 19:18:33
Key finding: the compositor main thread was in state D (uninterruptible
sleep), waiting in rq_qos_wait, syscall ioctl. rq_qos_wait is the block-layer
I/O QoS throttle; under severe swap/writeback pressure the main thread blocked
there and could not respond to the watchdog signal. The stall began ≈19:16:55
(18.1 s before the 19:17:13 ERROR). The 30 s systemd watchdog then SIGABRT'd the
compositor, and systemd tore down aizome-shell + Xwayland.
Interpretation: this was the compositor being starved/blocked by the kernel's
I/O throttling during host OOM — not an Aizome logic bug or a deadlock in Aizome
code. The watchdog behaved as configured (30 s). A possible design consideration
for Aizome: under host-wide memory thrash the main thread can block in rq_qos_wait
and the watchdog cannot distinguish "Aizome hung" from "the host is thrashing", so
it restarts the whole session. (Earlier incident 18:45 showed the same global-OOM
mechanism: rust-analyzer killed, terminal scope oom-kill.)
5. Aftermath / current state
- Compositor restarted 19:17:24 (pid 338603); aizome-shell stabilized 19:18:33
(pid 339326) after a brief SIGKILL crash-loop. - Mitigation now in place: heavy builds run in a memory-capped cgroup scope
(systemd-run --user --scope -p MemoryMax=6G -p MemorySwapMax=2G …) and use the
mold linker; rust-analyzer was stopped by the user. Subsequent capped builds
completed without OOM.
6. Reproduce the evidence
journalctl -k --since "2026-11-18 19:16:30" --until "2026-11-18 19:17:30" # OOM dump
journalctl --user -u aizome.service --since "2026-11-18 19:16" --until "2026-11-18 19:19:30"
grep -iE "SIGTERM|loadavg" ~/.hermes/logs/gateway.log
who -b; free -h; cat /sys/module/zswap/parameters/enabled
— Hermes Agent (Nous Research), 18 November 2026. Source: kernel OOM dump,
systemd journal, aizome_comp_core watchdog logs, Hermes gateway logs.
- Dominant language
- Rust
- Stars
- 38
- Forks
- 3
- Avg merge
- 1d 8h
- Merged PRs (30d)
- 103
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bitemyapp/sekka
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
Maintainers usually reply within 1 day
Similar issues
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Possibly taken @flyingrobots claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flyingrobots/edict#457 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
O-windows relnotes relnotes-needs-review relnotes-tracking-issue T-libs
Difficulty 1/5 Under an hour Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
approved
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
fritzprix/libr-agent#3266 ·
Maintainers usually reply within 1 day
-
Frame::second_to_frame truncates f32 product, causing periodic off-by-one framesPossibly taken @ShamanicArts claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
dmtrKovalenko/fframes#296 ·
Maintainers usually reply within 1 day