omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

Login background intro never plays on slow machines: omarchy-theme-bg-boot-intro gives up after 5 s while owed is still blocked on the shell handoff

Open warpek opened this issue 3 weeks ago • 3 comments

System details: MacBook Air 7,2 (Intel i5-5250U, Intel HD Graphics 6000), Omarchy 4.5.0-3 (upgraded from 4.0.6), owe 0.2.13-1, quickshell 0.3.2.r7.g2b4501a-1, Hyprland 0.56.2-4


What's wrong?

When I log in, the background intro never plays. The desktop appears with the still image. The same intro plays correctly when I switch themes, and it also plays if I run it by hand after login. Intros are enabled (omarchy theme bg intro status returns 0) and animations are on.

Cause

At login, BackgroundIntro.qml runs omarchy-theme-bg-boot-intro. The script writes the session marker first, so the shell never tries again. Then it waits at most 5 s for owe status, and if that doesn't respond it exits quietly with status 0:

https://github.com/omacom/omarchy/blob/5cf852c2bf1c6f65e03006819590e48a87f160ca/bin/omarchy-theme-bg-boot-intro#L135-L142

On this machine owed doesn't answer within that window at login. As described in omacom/owe#35, owed first asks the shell to draw the background. That call blocks until the shell finishes loading and then fails with "not responding". After that, a shell background disable call takes about 4 more seconds. Only then does owed log ready, socket=…. That happens about 11 s after the shell logs Configuration Loaded, which is far longer than the script's 5-second wait.

Monotonic seconds from journalctl -b / journalctl --user -b -u owed.service, on two clean cold boots with no diagnostics running:

Event Boot A Boot B
owed started 21.46 23.25
omarchy-shell Configuration Loaded 24.61 26.41
owed: shell background enable failed: omarchy-shell is not responding 32.09 33.63
owed: shell background disabled → ready, socket=… 35.97 37.44
owed ready − shell config loaded 11.4 s 11.0 s
owed intro preparing / intro playing at login none none

A third boot shows the same pattern (11.7 s, no intro). The intro script can only start after the shell has loaded its configuration. For it to work here, it would have to start more than about 6 s after Configuration Loaded. Instead the deadline runs out and the black startup cover lifts on the still image, using the 10-second fallback.

The renderer is fine on this machine: owe-render ready after 1984 ms, and VA-API decoding works. So this is not #16502.

Steps to reproduce

  1. Use a slower machine where omarchy-shell takes several seconds to load at login (here: MacBookAir7,2).
  2. Pick a background that has an intro clip (e.g. Catppuccin 1-totoro), with intros and animations enabled.
  3. Log in. The desktop appears with the still image, and journalctl --user -b -u owed.service has no intro preparing or intro playing line for the login.
  4. After login, owe intro --start first-frame ~/.local/state/omarchy/current/theme/backgrounds/intros/1-totoro.mp4 plays the clip normally, and theme switches play their intros.

Expected

The intro plays at login, and the startup cover fades out onto the moving video as revealTheme() intends.

Notes on a fix

  • Making the 5 s deadline longer on its own isn't enough. By the time owed answers, the shell's 10-second startupPending fallback has already revealed the desktop. I tested a user-side workaround that played the intro once the cover had lifted. It works, but you see the still image first and then the animation starts over it, which looks wrong. The script's wait and the cover's fallback need to be coordinated, for example by holding the cover while an intro is still pending.
  • The underlying fix is probably on the owe side (omacom/owe#35): don't block startup on a busy shell, or answer status and accept intro while the shell handoff is still in progress.
  • Related: #17417 (black screen before the login intro; there the intro does play eventually) and #16502 (the renderer never starts; a different cause with the same "intros never play" symptom).

warpek avatar Nov 07 '26 12:11 warpek

Another data point, from a faster machine. Here the trigger is how many third-party shell plugins are installed.

System: ThinkPad X1 Carbon 7th (i7-8665U, Intel UHD 620, NVMe, LUKS), Omarchy 4.5.0-3 (upgraded from 4.0.6), owe 0.2.13-1, quickshell 0.3.2.r7.g2b4501a-1, Hyprland 0.56.2-4. Theme everforest, intro 1-tree-tops.mp4 (2560×1700, 24 fps, 7.0 s). Intros on, animations on.

Monotonic seconds from journalctl -b / journalctl --user -b, three cold boots that differ only in the shell plugins enabled:

Event 31 third-party plugins none 27 plugins
omarchy-shell Launching config 18.82 16.40 16.42
omarchy idle … service-ready 23.17 19.92 20.60
owed ready, socket=… 27.08 (+8.3 s) 20.20 (+3.8 s) 18.20 (+1.8 s)
owed intro preparing — never 20.47 18.24
owed intro playing — 21.01 22.15
Intro seen no yes only the end (see omacom/owe#33)

With 31 plugins, owed is still blocked on the shell handoff after the script's 5 s wait. The script has already written the session marker, so the intro never runs. With no third-party plugins the same machine plays it on every login.

I also timed how long a warm omarchy restart shell takes before the new instance answers on its own IPC socket (osd state): ~7 s with no third-party plugins, ~20 s with all 31. I bisected the plugins and found no single culprit: each adds roughly 0.3–1 s, and the heaviest added ~1.5–2 s. Machines that aren't slow will still miss the window once the plugin count grows. Making the wait follow owed (or the shell's own readiness) instead of a fixed 5 s would cover both cases.

mrocha-montes avatar Nov 07 '26 13:11 mrocha-montes

I read the login timing report and the follow-up comparing shell plugin counts. GPT-6 in Codex (session effort not exposed) classified this as a bug, but the second classification model returned no answer, so classification remains incomplete. The review service passed its health check; no code diagnosis or worker reproduction was completed, and no fix or verification labels were applied. This is waiting on maintainer review because automated triage could not complete classification.

omarchybot avatar Nov 19 '26 01:11 omarchybot

The blocking startup handoff reported with OWE 0.2.13 is addressed by OWE #39, merge commit 1efccd1bdcbb8ef8c2030d2a2d167ccbce3270a6, released in 0.2.14. When a login intro prepares successfully, OWE now answers before asking the busy shell for its background. Omarchy's five-second launcher limit and ten-second cover fallback remain, so this does not establish that every slow login is fixed.

GPT-6 in Codex (session effort not exposed) checked the tagged startup code and current quattro. On a disposable ISO worker, all nine upstream startup protocol scenarios passed against the installed OWE 0.2.18-1 daemon, using renderer and shell doubles. This was not a visual reproduction on either reported machine. Opus 5.5 High and muse-wonder via pi, thinking high reviewed the diagnosis and agreed that a retest is needed; independence is not guaranteed.

@warpek @mrocha-montes, please retest a cold login after the normal omarchy update, with OWE 0.2.14 or newer, and include the actual pacman -Q owe output. Keep intros and animations enabled; for the ThinkPad, use the plugin configuration that failed. If it still happens, include journalctl --user -b -u owed.service -o short-monotonic --no-pager and the shell's Configuration Loaded timestamp. The useful distinctions are whether login intro prepared, ready, and intro preparing/intro playing appear, any preparation or handoff errors, and whether the still appears before the intro. This is waiting on that reporter confirmation; no Omarchy patch was filed.

omarchybot avatar Nov 23 '26 08:11 omarchybot