Without rtkit, apps started from omarchy-shell inherit RLIMIT_RTTIME=0 and the kernel RT watchdog SIGKILLs them (Electron/Chromium, claude-desktop)
Summary
On an Omarchy install without rtkit, every app started from the Omarchy launcher (omarchy-shell / Quickshell) runs with RLIMIT_RTTIME = 0/0. With that limit the kernel's realtime CPU watchdog sends an unconditional SIGKILL the first time a thread of the process goes through the per-thread CPU-timer path, which Chromium/Electron processes do. The result is Electron apps that "crash" silently and repeatedly: no core dump, no OOM, no log line, the systemd scope just ends. Here it hit the Claude desktop app (Omarchy's claude-desktop package) seven times in two days, including its GPU process and renderer.
The chain is: no rtkit → xdg-desktop-portal reports a realtime budget of 0 → libpipewire-module-rt (client.conf, rtportal.enabled) applies it as a hard RLIMIT_RTTIME of 0 in every PipeWire client → omarchy-shell is a PipeWire client → everything it launches inherits 0/0 → kernel RT Watchdog Timeout (hard).
Migration 1790114905.sh already describes this exact mechanism for the speaker-tuning host ("A portal started before rtkit was installed reports a realtime budget of zero; module-rt applies it as a hard RLIMIT_RTTIME of 0 ... the kernel kills the host"). This report is the general case: the shell itself carries the zero and passes it to every launched application, and rtkit is not installed by Omarchy at all (it is only an optional dependency of pipewire).
Environment
- omarchy 4.0.6-1 (upgraded from 4.0.4-1), installed 2026-09-18
- hyprland 0.56.2-4, quickshell 0.3.2.r7.g2b4501a-1
- pipewire 1:1.6.9-1, wireplumber 0.5.18-1
- xdg-desktop-portal 1.22.1-2, xdg-desktop-portal-hyprland 1.4.1-2, xdg-desktop-portal-gtk 1.15.3-2
rtkit: not installed before the fix (not in Omarchy's package lists)- kernel: linux-t2 7.2.6 (Apple T2 MacBookPro16,1)
- affected app: claude-desktop 3.1623.4-1 (Omarchy repo) on electron43 43.8.3-1; the same limit reaches every launcher child, so any Electron/Chromium app started from the launcher is exposed
Symptoms
- The Claude desktop window vanishes with no dialog.
journalctl --useronly showsapp-com.anthropic.Claude-<pid>.scope: Consumed ...; the app's own log stops mid-line. - No entry in
coredumpctl, no kernel OOM message,systemd-oomdnever killed anything, every cgroupmemory.eventsshowsoom_kill 0, no cgroup memory limits anywhere. - Before several of the deaths the app logged
GPU process gone: { reason: 'killed', exitCode: 9 }orMain webview render process gone: { reason: 'killed', exitCode: 9 }30-60 s earlier.
Diagnosis
Traced with the kernel signal_generate tracepoint (filter on fatal signals and on comm == "claude-desktop"). The kills are raised by the kernel (code=128, SI_KERNEL) in the victim's own main-thread context, with no SIGXCPU before them:
15:20:10 claude-desktop-785730 sig=9 code=128 comm=claude-desktop pid=785730 res=0 # GPU process
15:31:13 claude-desktop-983845 sig=9 code=128 comm=claude-desktop pid=983845 res=0 # main renderer
15:39:20 claude-desktop-785367 sig=9 code=128 comm=claude-desktop pid=785367 res=0 # browser/main process
Every process in the app's tree had the zero limit, while processes started on other paths did not:
| process | launched via | Max realtime timeout |
|---|---|---|
| claude-desktop (main, zygotes, GPU, renderers, crashpad) | Omarchy launcher | 0 / 0 |
| quickshell (omarchy-shell) | omarchy-launch-shell | 0 / 0 |
| wl-paste (child of quickshell) | quickshell | 0 / 0 |
| omarchy-launch-shell, Hyprland, pipewire, systemd --user | session | unlimited |
| 1Password (systemd user service) | systemd | unlimited |
the same Electron binary started from a systemd-run --user service |
systemd | unlimited (sampled for its whole life, sandbox on) |
The kernel side (kernel/time/posix-cpu-timers.c, check_thread_timers → check_rlimit) sends SIGKILL when the thread's realtime runtime is >= hard. With hard = 0 that comparison is true for a thread that has never been realtime, so the watchdog fires whenever the per-thread CPU-timer path runs. Reproduction with no realtime scheduling involved, kernel.print-fatal-signals=1:
# rttime_repro.py: arm a per-thread CPU-time timer, then burn CPU
import ctypes, time, signal
libc = ctypes.CDLL(None, use_errno=True)
class timespec(ctypes.Structure): _fields_ = [("tv_sec", ctypes.c_long), ("tv_nsec", ctypes.c_long)]
class itimerspec(ctypes.Structure): _fields_ = [("it_interval", timespec), ("it_value", timespec)]
tid = ctypes.c_void_p()
libc.timer_create(3, None, ctypes.byref(tid)) # CLOCK_THREAD_CPUTIME_ID
signal.signal(signal.SIGALRM, lambda *a: None)
its = itimerspec(timespec(0, 0), timespec(5, 0))
libc.timer_settime(tid, 0, ctypes.byref(its), None)
t = time.time()
while time.time() - t < 2: pass
# under the inherited 0/0 limit:
kernel: RT Watchdog Timeout (hard): python3[1348303]
# same script via `systemd-run --user -p LimitRTTIME=infinity`: clean, no message
Where the zero comes from:
$ busctl --user get-property org.freedesktop.portal.Desktop /org/freedesktop/portal/desktop \
org.freedesktop.portal.Realtime RTTimeUSecMax
x 0
$ busctl --user get-property ... org.freedesktop.portal.Realtime MaxRealtimePriority
i 0
A plain PipeWire client started with an unlimited limit ends up with 0/0, so it is libpipewire-module-rt copying the portal's budget:
$ systemd-run --user --wait --pipe -p LimitRTTIME=infinity bash -c 'pw-mon & ... cat /proc/$!/limits'
before: unlimited / unlimited
pw-mon client: 0 / 0
With a copy of /usr/share/pipewire/client.conf under PIPEWIRE_CONFIG_DIR:
| client.conf change | resulting RLIMIT_RTTIME |
|---|---|
| stock | 0 / 0 |
rt.time.soft = 2000000, rt.time.hard = 2000000 |
0 / 0 (portal value wins) |
rlimits.enabled = false |
0 / 0 |
rtportal.enabled = false + rtkit.enabled = false |
unlimited |
context.properties = { module.rt = false } (also as client.conf.d/ drop-in) |
unlimited |
Fix (verified)
sudo pacman -S rtkit.rtkit-daemonis D-Bus activated and immediately answersRTTimeUSecMax = 200000,MaxRealtimePriority = 20.systemctl --user restart xdg-desktop-portal.service. The portal caches the realtime budget when it starts, so without this step it keeps reporting 0 after rtkit is installed.omarchy-restart-shell. The new quickshell gets200000 / 200000, and so does everything launched from it afterwards.
Without root the same effect comes from ~/.config/pipewire/client.conf.d/50-no-module-rt.conf containing context.properties = { module.rt = false } plus omarchy-restart-shell (limit becomes unlimited; no client gets realtime scheduling, which is already the case without rtkit).
A running app can be rescued in place as root: prlimit --pid <pid> --rttime=unlimited:unlimited on each of its processes (the zygotes too, since renderers fork from them).
Suggested change
- Install
rtkitas part of the base install (it is what PipeWire's client module and the portal's Realtime interface expect), and restartxdg-desktop-portalplus the shell in the migration that adds it, since both cache the value. - Alternatively or additionally ship a PipeWire client drop-in that disables
module-rtwhen rtkit is absent, so the shell can never carry a zero limit into launched apps.
The portal-reports-zero → hard-limit-zero behaviour is arguably also a PipeWire module-rt bug (a zero budget should mean "no realtime", not "kill on first tick"); I have not filed it there.
Steps to reproduce
On an Omarchy system without rtkit installed:
awk '/Max realtime timeout/' /proc/$(pgrep -x quickshell | head -1)/limits # 0 0
Launch any app from the launcher and read its /proc/<pid>/limits: Max realtime timeout 0 0. Run the Python snippet above inside that app's environment (a terminal started from the launcher works): dmesg shows RT Watchdog Timeout (hard). Electron/Chromium apps hit the same path on their own over time; here the interval was between ten minutes and a few hours.
System information (omarchy debug --no-sudo --print, hostname/user/disk UUID redacted)
SYSTEM INFORMATION section
=========================================
SYSTEM INFORMATION
=========================================
System:
Kernel 7.2.6-arch2-Watanare-T2-2-t2 arch x86_64 bits 64 compiler gcc v 16.2.1 clocksource tsc
avail acpi_pm parameters cryptdevice=PARTUUID=<redacted>:root
root=/dev/mapper/root zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs intel_iommu=on
iommu=pt pm_async=off mem_sleep_default=deep resume=/dev/mapper/root resume_offset=1954365
systemd.tty.term.console=dumb initramfs_async=0 quiet splash loglevel=0
systemd.show_status=false rd.udev.log_level=0 vt.global_cursor_default=0
Desktop Hyprland v 0.56.2 with docker vt 1 dm SDDM Distro Omarchy
Machine:
Type Laptop System Apple product MacBookPro16,1 v 1.0 serial <superuser required> Chassis type 9
v Mac-E1008331FDC96864 serial <superuser required>
Mobo Apple model Mac-E1008331FDC96864 v MacBookPro16,1 serial <superuser required>
uuid <superuser required> Firmware UEFI vendor Apple v 2103.160.2.0.0 (iBridge:
.16.16068.0.0,0) date 07/11/2026
Battery:
ID-1 BAT0 charge 82.4 Wh (98.8%) condition 83.4/99.9 Wh (83.5%) temp 35 C volts 12.59 min 11.36
model SMP bq40z651 type Li-ion serial N/A charging status discharging cycles 152
CPU:
Info model Intel Core i9-9980HK bits 64 type MT MCP arch Coffee Lake gen core 9 level v3
note check built 2018 process Intel 14nm family 6 model-id 0x9E (158) stepping 0xD (13)
microcode 0x104
Topology cpus 1x dies 1 clusters 8 cores 8 threads 16 tpc 2 smt enabled cache L1 512 KiB
desc d-8x32 KiB; i-8x32 KiB L2 2 MiB desc 8x256 KiB L3 16 MiB desc 1x16 MiB
Speed (MHz) avg 3916 min/max 800/5000 scaling driver intel_pstate governor powersave cores
1 3916 2 3916 3 3916 4 3916 5 3916 6 3916 7 3916 8 3916 9 3916 10 3916 11 3916 12 3916 13 3916
14 3916 15 3916 16 3916 bogomips 76800
Flags-basic avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities
Type gather_data_sampling mitigation Microcode
Type ghostwrite status Not affected
Type indirect_target_selection mitigation Aligned branch/return thunks
Type itlb_multihit status KVM: Split huge pages
Type l1tf status Not affected
Type mds status Not affected
Type meltdown status Not affected
Type mmio_stale_data mitigation Clear CPU buffers; SMT vulnerable
Type old_microcode status Not affected
Type reg_file_data_sampling status Not affected
Type retbleed mitigation Enhanced IBRS
Type spec_rstack_overflow status Not affected
Type spec_store_bypass mitigation Speculative Store Bypass disabled via prctl
Type spectre_v1 mitigation usercopy/swapgs barriers and __user pointer sanitization
Type spectre_v2 mitigation Enhanced / Automatic IBRS; IBPB: conditional; PBRSB-eIBRS: SW
sequence; BHI: SW loop, KVM: SW loop
Type srbds mitigation Microcode
Type tsa status Not affected
Type tsx_async_abort mitigation TSX disabled
Type vmscape mitigation IBPB before exit to userspace
Graphics:
Device-1 Intel CoffeeLake-H GT2 [UHD Graphics 630] vendor Apple MacBookPro16 1 driver i915
v kernel arch Gen-9.5 process Intel 14nm built 2016-20 ports active none empty DP-1, DP-2, DP-3,
HDMI-A-1, HDMI-A-2, HDMI-A-3 bus-ID 00:02.0 chip-ID 8086:3e9b class-ID 0300
Device-2 Advanced Micro Devices [AMD/ATI] Navi 14 [Radeon RX 5500/5500M / Pro 5300/5300M/5500M]
vendor Apple MacBookPro16 1 driver amdgpu v kernel arch RDNA-1 code Navi-1x process TSMC n7 (7nm)
built 2019-20 pcie gen 4 speed 16 GT/s lanes 16 ports active eDP-1 empty DP-4, DP-5, DP-6, DP-7
bus-ID 03:00.0 chip-ID 1002:7340 class-ID 0300
Device-3 Apple FaceTime HD Camera (Built-in) driver uvcvideo type USB rev 2.0 speed 480 Mb/s
lanes 1 mode 2.0 bus-ID 7-2:3 chip-ID 05ac:8514 class-ID 0e02 serial <filter>
Display wayland server X.org v 1.21.1.25 with Xwayland v 24.1.14 compositor Hyprland v 0.56.2
driver gpu amdgpu display-ID 1
Monitor-1 eDP-1 model Apple Color LCD built 2019 res 3072x1920 dpi 226 gamma 1.2
size 345x215mm (13.58x8.46") diag 407mm (16") ratio 16:10 modes max 3072x1920 min 640x480
API EGL Message EGL data requires eglinfo. Check --recommends.
Info Tools x11 xprop
Audio:
Device-1 Advanced Micro Devices [AMD/ATI] Navi 10 HDMI Audio driver snd_hda_intel v kernel pcie
gen 4 speed 16 GT/s lanes 16 bus-ID 03:00.1 chip-ID 1002:ab38 class-ID 0403
Device-2 Apple Audio driver t2bce_audio v 0.02 pcie gen 3 speed 8 GT/s lanes 4 bus-ID 04:00.3
chip-ID 106b:1803 class-ID 0401
API ALSA v k7.2.6-arch2-Watanare-T2-2-t2 status kernel-api tools alsactl,alsamixer,amixer
Server-1 sndiod v N/A status off tools aucat,midicat,sndioctl
Server-2 PipeWire v 1.6.9 status active with 1 pipewire-pulse status active 2 wireplumber
status active 3 pipewire-alsa type plugin 4 pw-jack type plugin tools pactl,pw-cat,pw-cli,wpctl
Network:
Device-1 Broadcom BCM4364 802.11ac Wireless Network Adapter vendor Apple driver brcmfmac v kernel
pcie gen 1 speed 2.5 GT/s lanes 1 bus-ID 05:00.0 chip-ID 14e4:4464 class-ID 0280
IF wlp5s0 state up mac <filter>
IF-ID-1 br-37ae057effd3 state up speed 10000 Mbps duplex unknown mac <filter>
IF-ID-2 br-a45facd6bc4d state up speed 10000 Mbps duplex unknown mac <filter>
IF-ID-3 docker0 state up speed 10000 Mbps duplex unknown mac <filter>
IF-ID-4 enp4s0f1u1 state up speed 100 Mbps duplex unknown mac <filter>
IF-ID-5 veth0acaa08 state up speed 10000 Mbps duplex full mac <filter>
IF-ID-6 veth0e8895e state up speed 10000 Mbps duplex full mac <filter>
IF-ID-7 veth18814b7 state down mac <filter>
IF-ID-8 veth197f2e7 state up speed 10000 Mbps duplex full mac <filter>
IF-ID-9 veth1da61f5 state up speed 10000 Mbps duplex full mac <filter>
IF-ID-10 veth2062869 state up speed 10000 Mbps duplex full mac <filter>
IF-ID-11 veth2cdf17a state up speed 10000 Mbps duplex full mac <filter>
IF-ID-12 veth51be83f state up speed 10000 Mbps duplex full mac <filter>
IF-ID-13 veth55c83dc state up speed 10000 Mbps duplex full mac <filter>
IF-ID-14 veth5eab9ca state up speed 10000 Mbps duplex full mac <filter>
IF-ID-15 vethbe85be8 state up speed 10000 Mbps duplex full mac <filter>
IF-ID-16 vethc31461c state up speed 10000 Mbps duplex full mac <filter>
IF-ID-17 vethc4b7e10 state up speed 10000 Mbps duplex full mac <filter>
IF-ID-18 vethd020bd7 state down mac <filter>
IF-ID-19 vethf94f0f7 state up speed 10000 Mbps duplex full mac <filter>
Info services NetworkManager, systemd-timesyncd, wpa_supplicant
Drives:
Local Storage total 465.92 GiB used 152.44 GiB (32.7%)
SMART Message Required tool smartctl not installed. Check --recommends
ID-1 /dev/nvme0n1 maj-min 259:0 vendor Apple model SSD AP0512N size 465.92 GiB block-size
physical 4096 B logical 4096 B speed 31.6 Gb/s lanes 4 tech SSD serial <filter> fw-rev 1310
temp 34.9 C scheme GPT
Partition:
ID-1 / raw-size 463.9 GiB size 463.9 GiB (100.00%) used 152.11 GiB (32.8%) fs btrfs dev /dev/dm-0
maj-min 253:0 mapped root
ID-2 /boot raw-size 2 GiB size 2 GiB (99.80%) used 334.8 MiB (16.4%) fs vfat dev /dev/nvme0n1p1
maj-min 259:1
ID-3 /home raw-size 463.9 GiB size 463.9 GiB (100.00%) used 152.11 GiB (32.8%) fs btrfs
dev /dev/dm-0 maj-min 253:0 mapped root
ID-4 /var/log raw-size 463.9 GiB size 463.9 GiB (100.00%) used 152.11 GiB (32.8%) fs btrfs
dev /dev/dm-0 maj-min 253:0 mapped root
Swap:
Kernel swappiness 150 (default 60) cache-pressure 50 (default 100) zswap no
ID-1 swap-1 type file size 31.23 GiB used 0 KiB (0.0%) priority 0 file /swap/swapfile
ID-2 swap-2 type zram size 31.23 GiB used 536.8 MiB (1.7%) priority 100 comp zstd
avail lzo-rle,lzo,lz4,lz4hc,deflate,842 dev /dev/zram0
Sensors:
System Temperatures cpu 81.0 C pch 72.0 C mobo N/A gpu amdgpu temp 75.0 C mem 0.0 C
Fan Speeds (rpm) cpu 4824 fan-2 4501 gpu amdgpu fan 0
Repos:
Packages pm pacman pkgs 1021 libs 277 tools yay
Active pacman repo servers in /etc/pacman.conf
1 https: //pkgs.omarchy.org/stable/$arch
Active pacman repo servers in /etc/pacman.d/mirrorlist
1 https: //stable-mirror.omarchy.org/$repo/os/$arch
Info:
Memory total 32 GiB available 31.23 GiB used 11.77 GiB (37.7%)
Processes 569 Power uptime 6h 50m states freeze,mem,disk suspend deep avail s2idle wakeups 0
hibernate platform avail shutdown, reboot, suspend, test_resume image 12.37 GiB
services power-profiles-daemon, thermald, upowerd Init systemd v 262 default graphical
tool systemctl
Compilers clang 23.1.3 gcc 16.2.1 Client shell wrapper v 5.3.20-release inxi 3.3.41
Filed by Claude Fable 5.1 via Claude Code (Claude desktop app).
Independent confirmation on x86, where this showed up as a browser and an editor dying with the same code, with nothing pointing at the cause until I found this issue.
Environment: Omarchy 4.0.6, linux-omarchy 7.2.8-9, Hyprland on Wayland, Intel TigerLake (Iris Xe), Google Chrome 156.0.8078.47 and VS Code. Both launched from the app launcher, i.e. children of omarchy-shell.
Preconditions all match:
$ pacman -Q rtkit # not installed
$ busctl --user get-property ... org.freedesktop.portal.Realtime RTTimeUSecMax # x 0
$ busctl --user get-property ... org.freedesktop.portal.Realtime MaxRealtimePriority # i 0
$ grep 'Max realtime timeout' /proc/$(pgrep -x quickshell)/limits # 0 0
$ grep 'Max realtime timeout' /proc/$(pgrep -x chrome | head -1)/limits # 0 0
Symptoms, which are what made this hard to place:
- Chrome tabs die with "Aw, Snap!" and tab error code
9. - VS Code shows "The window terminated unexpectedly (reason: 'killed', code: 9)" — five times between 22 and 25 October, at 1 to 30 minutes after the window opened.
- No core dumps for any of those (
coredumpctlis empty for them),systemd-oomdlogged no kill,memory.eventsshowsoom_kill 0, PSI0.00, swap0 B. Memory was never tight: 7.6 GiB used of 31 GiB.
Applied the non-root workaround from the issue (~/.config/pipewire/client.conf.d/50-no-module-rt.conf with context.properties = { module.rt = false }) and restarted the shell. quickshell and its children (wl-paste, voxtype) went from 0 to unlimited, so the inheritance path is confirmed as described. I plan to install rtkit, restart the portal and the shell to get the 200000/20 budget back.
I opened #16624 to document the budget chain and this failure mode under docs/, since nothing in the journal names the killer and the next person hitting killed, code 9 has no way to connect it to a missing rtkit.
Independent confirmation on another machine (Omarchy 4.0.6-1, kernel 7.2.8-9-omarchy, pipewire 1.6.9-1, xdg-desktop-portal 1.22.1-2 — same pipewire/portal versions as in the report), plus four details that may help with the suggested change:
1. Measured blast radius. Without rtkit installed, the portal reports
RTTimeUSecMax = 0 and 144 of the user's 234 running processes carried the
zero. Counting per thread: 1678 of 2178 threads had RLIMIT_RTTIME 0/0 —
the shell (35 of 35 threads), Chrome, ChatGPT, Hermes, the terminal chain.
Processes started by the user manager (systemd, dbus-broker, pipewire,
xdg-desktop-portal, Hyprland) stayed unlimited, matching the launch-path
table in the report.
2. The limit is stored per thread group, so one write per process is
enough. Measured directly: writing RLIMIT_RTTIME through any thread of a
process changes the value of all its threads, and reading it through any
thread returns the group value. So prlimit --pid <pid> --rttime=unlimited:unlimited
once per process (the zygotes included, as the report says) is sufficient — no
per-thread enumeration needed. On the machine above this raised the limit of
all 1678 zero-limited threads in 144 processes in place: every application
stayed open, no logout, no shell restart, and the verification afterwards
showed 0 of 2214 threads with a zero limit.
3. The portal really does cache the budget — the restart is mandatory.
After pacman -S rtkit the system bus answered
org.freedesktop.RealtimeKit1 RTTimeUSecMax = 200000 immediately, but the
portal still reported 0 until systemctl --user restart xdg-desktop-portal.service; only then did it report 200000 too. Worth
stating explicitly in the migration, because "install rtkit" alone silently
does not fix a running system.
4. pacman's post-transaction hooks already reload the system bus
configuration. The install output shows "(4/4) Reloading system bus
configuration", after which the new D-Bus activation file for
org.freedesktop.RealtimeKit1 is picked up and rtkit-daemon answers on
demand — no manual dbus-broker restart and no reboot needed. (The unit is
rtkit-daemon.service, D-Bus activated, unit state "disabled".)
The upstream origin of the zero is confirmed in PipeWire's own source,
src/modules/module-rt.c, function rtkit_finish_init() (master
b58c71296e8f):
impl->rl.rlim_cur = SPA_MIN(impl->rl.rlim_cur, rttime_max);
impl->rl.rlim_max = SPA_MIN(impl->rl.rlim_max, rttime_max);
set_rlimit(&impl->rl);
With the portal budget of 0 this installs {0, 0} as RLIMIT_RTTIME — the
hard limit as well — which is what the kernel turns into an unconditional
SIGKILL from the CPU-timer path. The upstream report for that clamping
already exists and is tracked here:
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/5429
One note on the ordering of the suggested change: restarting the shell
(omarchy-restart-shell) fixes the running session, but it also restarts the
shell of a live desktop. For users who want to keep the session untouched, the
in-place raise described in (2) achieves the same end state without closing a
single application.