mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4284] [Engine] Deadlock on ~25K-token context: /v1/chat/completions hangs forever, engine busy-loops ~350% CPU, /v1/models stays 'loaded' (0.1.48, RTX 5080, Linux) #1888
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1888
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dedvmedved-dot on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4284
Area
Engine — long-context generation deadlock (serve request path)
Strata version
Terminal 0.2.3.1 — engine 0.1.48 (Control 0.1.49.1)
Environment
--parallel 1, nominal context 64K (n_ctx 65536)Reproduction
Deterministic on this setup. Trigger: a long-lived agent session reaching ~100 messages /
~25,000 tokens. After that, every
POST /v1/chat/completionswedges:POST /v1/chat/completions— never returns (curl(28) Operation timed out, 0 bytes).GET /v1/models— still HTTP 200 with"state": "loaded"(a naive health check sees "healthy").strata --serveprocess sits at ~350% CPU (busy-loop), ~88% memory — alive but unresponsive.With
--parallel 1, every later request queues behind the stuck one, so the service iseffectively dead while monitoring reports "loaded". The nominal 64K context is not reachable —
the engine wedges at ~25K tokens.
strata updatedoes not fix it: the engine reports "up to date" (only the Control componentupdates).
Why this looks distinct from existing reports
"no progress for 60 s"; it stays alive in a CPU busy-loop and the stall watchdog never fires.
/v1/models-stays-loadeddetail masks the deadlock from liveness probes.Workaround
Restart the model (
strata launch --stop/pkill -f 'strata --serve', then relaunch) and keepsessions short (
/newbefore ~25K tokens). Note: a watchdog probing only/v1/modelswill NOTcatch this; probing
/v1/chat/completionsunder--parallel 1also queues behind the stuckrequest.
Related
/healthstays ok (empty-answer symptom)@Niko1221 commented on GitHub (Oct 29, 2026):
Engine 0.1.48 is old. Please run
strata update, retest, and if the request still hangs at about 25K tokens send the engine stderr tail and, while it hangs, a stack of the busy thread (gdb -p PID -batch -ex "thread apply all bt").@dedvmedved-dot commented on GitHub (Nov 2, 2026):
Updated to engine 0.1.55 (Control 0.1.55). One note: the first
strata updatetest-start failed only because the box had 32 GB RAM; after raising it back to 96 GB,strata update --forceinstalled and test-started 0.1.55 cleanly.Retested on 0.1.55 (UD-Q4_K_XL, RTX 5080, 96 GiB RAM, reasoning disabled):
No busy-loop, and
/v1/modelsvs/v1/chat/completionsstay consistent. The ~25K-token deadlock does not reproduce on 0.1.55 — looks fixed. Thanks for the pointer to update.