You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Desktop host exits with an uncatchable undici assertion when a fetch is aborted (Node 24.21 / Electron 44.7)
#13024
Build: @deepseek-ai/dsh-desktop 0.2.2-rc.1, win32 x64, Electron 44.7.0, Node 24.21.0
Symptom: the app dies with "应用无法启动或已意外停止" and the session drops. The dialog only
shows the tail of stderr (hundreds of model listing ... loaded 2 model(s) lines), so the real
error is invisible.
Actual error (from %APPDATA%\@deepseek-ai\dsh-desktop\logs\crash-2026-11-12T02-09-49-155Z-host.log, hostRunId: cdbe53f9-5b9e-4360-b79a-db281714ae7a):
dsh: fatal uncaught exception: AssertionError [ERR_ASSERTION]:
assert(!this.paused)
at Parser.finish (node:internal/deps/undici/undici:7388:9)
at TLSSocket.onHttpSocketEnd (node:internal/deps/undici/undici:7827:34)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
This is the known undici bug nodejs/undici#5360 (fix merged in PR #5474, but not backported to
the undici 7 bundled in Node 24 — still reproducible on 24.21.0).
Mechanism: a fetch response body is not fully consumed (aborted, or left unread while another
parallel fetch runs) → undici buffers it, the HTTP parser pauses at 64 KiB for backpressure →
server closes with FIN → onHttpSocketEnd calls Parser.finish(), which asserts the parser is
not paused. The assertion is thrown from a socket event handler, so no try/catch can reach it.
The window is roughly 64–128 KB per body; larger bodies pause too late, smaller ones never pause.
What triggered it: just before the crash the network was flaky (model listing ... timed out after 5000 ms, deepseek-account requests returning no-response, ~180 model-listing retries
with no backoff). Two page fetches were then issued in parallel (345 KB chunked + 47 KB) and both
were aborted, leaving unread bodies 10 seconds before the assertion.
Why it is fatal: the host treats uncaught exceptions as fatal (dsh: fatal uncaught exception
→ exit 1), so one transient network error takes down the entire host.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Build: @deepseek-ai/dsh-desktop 0.2.2-rc.1, win32 x64, Electron 44.7.0, Node 24.21.0
Symptom: the app dies with "应用无法启动或已意外停止" and the session drops. The dialog only
shows the tail of stderr (hundreds of
model listing ... loaded 2 model(s)lines), so the realerror is invisible.
Actual error (from
%APPDATA%\@deepseek-ai\dsh-desktop\logs\crash-2026-11-12T02-09-49-155Z-host.log,hostRunId: cdbe53f9-5b9e-4360-b79a-db281714ae7a):This is the known undici bug nodejs/undici#5360 (fix merged in PR #5474, but not backported to
the undici 7 bundled in Node 24 — still reproducible on 24.21.0).
Mechanism: a fetch response body is not fully consumed (aborted, or left unread while another
parallel fetch runs) → undici buffers it, the HTTP parser pauses at 64 KiB for backpressure →
server closes with FIN →
onHttpSocketEndcallsParser.finish(), which asserts the parser isnot paused. The assertion is thrown from a socket event handler, so no
try/catchcan reach it.The window is roughly 64–128 KB per body; larger bodies pause too late, smaller ones never pause.
What triggered it: just before the crash the network was flaky (
model listing ... timed out after 5000 ms,deepseek-accountrequests returningno-response, ~180 model-listing retrieswith no backoff). Two page fetches were then issued in parallel (345 KB chunked + 47 KB) and both
were aborted, leaving unread bodies 10 seconds before the assertion.
Why it is fatal: the host treats uncaught exceptions as fatal (
dsh: fatal uncaught exception→ exit 1), so one transient network error takes down the entire host.
Suggested fixes:
body.cancel()on abort/error, and cancel pending bodies when onerequest in a batch fails.
fetches in a worker that can be restarted).
Secondary: model listing retries ~180 times with no backoff during an outage; it floods stderr
and pushes the real error out of the crash dialog.
All reactions