Idle timeouts above ~24.8 days overflow the Qt timer and flood the shell log until /run/user fills up
System details
Intel Core Ultra 9 185H, Intel Arc Graphics (Meteor Lake), Omarchy 4.0.4-1
What's wrong?
If idle.lock or idle.screensaver in ~/.config/omarchy/shell.json is larger than about 24.8 days, the shell writes a warning to its log every millisecond while idle. The log is stored in tmpfs, so after a few hours it fills /run/user/$UID. Then anything else that writes there breaks too: in my case two shell plugins started failing with ENOSPC.
A very large value is a natural way to say "never lock", and nothing in the manual mentions an upper limit.
Steps to reproduce
- Set the following in
~/.config/omarchy/shell.json:"idle": { "screensaver": 150, "lock": 999999999 } - Stay idle past the screensaver timeout.
- Watch
/run/user/$UID/quickshell/by-id/*/log.log.
What happens
DEBUG qml: omarchy idle ... idle-cycle-start: screensaver=150 lock=999999999
WARN: QBasicTimer::start: negative intervals aren't allowed; the interval will be set to 1ms.
WARN: QBasicTimer::start: negative intervals aren't allowed; the interval will be set to 1ms.
... (about 1000 lines per second)
After about 13 hours the log was 3.1 GB, and /run/user/1000 (3.1 GB tmpfs) was 100% full.
Expected
The lock timer either effectively never fires, or the value is capped. It should not overflow.
Cause
shell/plugins/services/idle/IdleModel.js secondsFromConfig() sets no upper limit. Service.qml then computes interval: root.lockDelaySeconds * 1000. Qt Timer.interval is a signed 32-bit int in milliseconds, so anything above 2147483 seconds wraps to a negative number, and Qt clamps that to 1 ms.
Fix
PR to follow: cap secondsFromConfig at floor(INT32_MAX / 1000) seconds.
Workaround
Use "lock": 2000000 (about 23 days), or toggle stay-awake with omarchy toggle idle.
Thanks for the detailed report. This is the same bug as #7506, opened in August and still open: an idle.lock or idle.screensaver value above 2147483 seconds passes through secondsFromConfig in shell/plugins/services/idle/IdleModel.js with no upper bound, and Service.qml multiplies the delay by 1000 into a 32-bit Timer.interval, which wraps negative and makes Qt warn every millisecond. Both reports have the same trigger, mechanism and fix, so I'm closing this one as a duplicate so the discussion stays in one place.
I checked current quattro (47caa9be4) and the overflow is still there. The fix is open as #14581, which caps secondsFromConfig at floor(INT32_MAX / 1000) seconds, as you proposed, and is waiting on the maintainer. Nothing was run for this issue, since the earlier report and that pull request already cover the reproduction. Codex Medium checked separately that the two reports describe the same bug and agreed.
If this turns out to be a different bug, reopen it and say what differs.