[GH-ISSUE #5177] [GUI] App load always fails — Control 0.1.56 hashes 1.4 GB of engine files at startup, runtime.py start() only waits 5 s #3082

Closed
opened 2026-11-07 14:37:55 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @billgao2 on GitHub (Nov 4, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5177

Setup: App 0.2.10 · Control 0.1.56 · Engine 0.1.56 (signed, cuda12) · NVIDIA A3000 12 GB (primary) + P100 16 GB (peer) · Windows 11

On Windows, loading my model from the app now fails every time with the same error, runtime operation wait expired, while the engine itself comes up fine in the background and reaches ready about 3.5 minutes later. The app marks the instance failed and the UI stays on error, so the engine's successful boot never gets adopted.

Timeline (local, UTC+8, 2026-11-03): three load attempts at 19:04 / 19:26 / 19:34, all reporting runtime operation wait expired after roughly 60 s; the engine log shows full load + ready on the port in ~3.5 min each time. After patching the timeout locally (see below), the same flow passes: job=done / instance=ready in 3m23s and the UI is normal.

Root cause, confirmed by patching on my side:

  • Control 0.1.56's owner now runs a per-file SHA-256 check of the engine components at startup (engine_component.expand(full=True), ~1.4 GB) — blocking, takes well over 5 seconds.
  • runtime.py's start() answers the status RPC with a 5-second timeout, and a single timeout = failure.
  • 0.1.55 did not have this check, so it's the new validation that trips over the existing 5-second status-RPC wait.

Local fix (which any Control update will overwrite): runtime.py:645 → _rpc(name, "status", timeout=30) (py_compile-checked) → app load succeeds end to end. Suggested upstream fix: align the status RPC timeout with the new startup validation, or move the full-file verification off the critical path.

Relevant: the GUI-side load-wait scaling fixed in 0.2.8 (#4191) covers model load waits, and PR #4293 covers the GUI health-check deadline — neither covers this Control-internal 5 s status RPC timeout against the new 0.1.56 owner-side SHA-256 pass. Not covered by the troubleshooting table either. Happy to test a fix.

engine-log-before.log

Originally created by @billgao2 on GitHub (Nov 4, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/5177 **Setup:** App 0.2.10 · Control 0.1.56 · Engine 0.1.56 (signed, cuda12) · NVIDIA A3000 12 GB (primary) + P100 16 GB (peer) · Windows 11 On Windows, loading my model from the app now fails *every* time with the same error, `runtime operation wait expired`, while the engine itself comes up fine in the background and reaches ready about 3.5 minutes later. The app marks the instance failed and the UI stays on error, so the engine's successful boot never gets adopted. Timeline (local, UTC+8, 2026-11-03): three load attempts at 19:04 / 19:26 / 19:34, all reporting `runtime operation wait expired` after roughly 60 s; the engine log shows full load + ready on the port in ~3.5 min each time. After patching the timeout locally (see below), the same flow passes: job=done / instance=ready in 3m23s and the UI is normal. **Root cause**, confirmed by patching on my side: - Control 0.1.56's owner now runs a per-file SHA-256 check of the engine components at startup (`engine_component.expand(full=True)`, ~1.4 GB) — blocking, takes well over 5 seconds. - `runtime.py`'s `start()` answers the status RPC with a 5-second timeout, and a single timeout = failure. - 0.1.55 did not have this check, so it's the new validation that trips over the existing 5-second status-RPC wait. **Local fix** (which any Control update will overwrite): `runtime.py:645` → `_rpc(name, "status", timeout=30)` (py_compile-checked) → app load succeeds end to end. Suggested upstream fix: align the status RPC timeout with the new startup validation, or move the full-file verification off the critical path. Relevant: the GUI-side load-wait scaling fixed in 0.2.8 (#4191) covers model *load* waits, and PR #4293 covers the GUI health-check deadline — neither covers this Control-internal 5 s status RPC timeout against the new 0.1.56 owner-side SHA-256 pass. Not covered by the troubleshooting table either. Happy to test a fix. [engine-log-before.log](https://github.com/user-attachments/files/34350151/engine-log-before.log)
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Hello billgao2,

Thank you for the report and the timing details. In Strata 0.2.11 the runtime owner answers a status request while it is still planning and starting, the status request waits 10 seconds and is retried while the owner is alive, and the app keeps asking about a start Control has stopped waiting for. On the old code the owner published its state, then planned for longer than the 5-second status call, so the load failed although the engine loaded fine. The full check of the engine files still runs, but in its own startup phase without blocking status. If the load still fails with "runtime operation wait expired" on 0.2.11, please send host.log.

The Strata project

<!-- gh-comment-id:6658451286 --> @Niko1221 commented on GitHub (Nov 5, 2026): Hello billgao2, Thank you for the report and the timing details. In Strata 0.2.11 the runtime owner answers a status request while it is still planning and starting, the status request waits 10 seconds and is retried while the owner is alive, and the app keeps asking about a start Control has stopped waiting for. On the old code the owner published its state, then planned for longer than the 5-second status call, so the load failed although the engine loaded fine. The full check of the engine files still runs, but in its own startup phase without blocking status. If the load still fails with "runtime operation wait expired" on 0.2.11, please send `host.log`. The Strata project
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3082
No description provided.