orca icon indicating copy to clipboard operation
orca copied to clipboard

[Bug] Windows: 'Not responding' and crash when running more than 3 sessions in parallel (32GB RAM)

Open brennanb2025 opened this issue 5 months ago • 3 comments

Reported via Discord: https://discord.com/channels/1492228674081263786/1492228675272315163/1522171200975929387

I am using the Orca app on Windows system (32GB RAM). When I try to run more than 3 sessions parallelly across different projects, it goes to "Not responding" and crashes. Anyone else facing this? Is there a way to fix this?

Same symptom family as #7017 (freeze/crash under multi-agent load; that issue's Windows/WSL comment describes terminal lag, then app-wide sluggishness, then a crash).

Suspected contributing mechanisms, in rough likelihood order:

  • Renderer main-thread saturation from concurrent terminal output. All sessions in a window share one renderer; the output scheduler could feed xterm up to 256 KB/ms, keeping the thread pinned in parse slices. The threshold-like onset ("more than 3 sessions") fits shared-thread saturation. This part is targeted by the drain-pacing change in #7139.
  • Main-process load scaling with project count (git status polling, PTY/IPC, file watchers). "Not responding" on Windows usually indicates the main process message pump is blocked. Idle git polling was reduced separately by #7069 (v1.4.117).
  • Memory growth / OOM. A crash on a 32 GB machine may be memory-driven, like the original #7017 report (140 GB). The drain-pacing change does not reduce memory use.

Triage questions for the reporter:

  • Orca version, and are agents running locally, over WSL, or SSH?
  • Does the terminal get visibly laggy before the whole app stops responding?
  • Task Manager: which process balloons — Orca renderer, Orca main, or the agent CLIs?
  • Does it recover after stopping agents / closing terminals, or only after restart?
  • A screenshot of Orca's Resource Manager while it's degrading, if possible.

brennanb2025 avatar Jul 03 '26 02:07 brennanb2025

Crash-batch follow-up: the Windows OOM reports split into two distinct signatures, which matters for this issue's "32 GB but crashes under parallel sessions" symptom.

A. Confirmed system commit/pagefile exhaustion (reports 11 and 14)

These are not renderer JS leaks:

  • Report 11 (1.4.130, Win10 19045): spawn ENOMEM / error launching git immediately before repeated renderer OOMs; JS heap only ~87 MB of a 3,586 MB limit.
  • Report 14 (1.4.131, Win11 22000): Git reports fatal: not enough memory for initialization, another Git launch fails, then renderer OOMs ~1.8s later; JS heap ~98 MB and renderer WS ~281 MB.

The renderer/GPU/Git processes are victims of machine-wide commit exhaustion. A safe local reproduction would require a disposable Windows VM with constrained RAM/pagefile; I am not inducing global memory exhaustion on a developer workstation.

@linpeng93, could you share for the report-11 machine:

  • Installed RAM and pagefile mode/size (System managed vs custom/disabled)
  • Task Manager → Performance → Memory → Committed value near the failure, if it recurs
  • Whether large agent/LLM/browser/VM processes were running at the same time
  • GPU model/driver and the relevant Event Viewer entry

B. Low-JS-heap Chromium OOM/native-allocation family (reports 01, 03, and 07)

These do not have the ENOMEM/Git evidence above:

  • Reports 01/03: renderer OOM while the last healthy JS heap was only ~48–125 MB; heavy multi-worktree Git/PR-refresh activity and repeated renderer recovery.
  • Report 07: renderer WS ~807 MB; current-lifetime JS heap ~290–347 MB (older bundled history reached 1.2 GB), then Chromium OOM.

@IuriiKotov48 @gabriel06089, if this still happens on the current build, the most useful missing data is RAM + pagefile/Committed usage, worktree/terminal/agent counts, GPU/driver/RDP/VM status, and the raw Crashpad .dmp for the timestamp (not a third-party zip).

This evidence means we should not group every 0xE0000008 report under one renderer-heap fix: the system-commit cases need pressure detection/backoff, while the low-heap cases need native dump symbolication.

OrcaWin avatar Jul 11 '26 05:07 OrcaWin

Agent reproduction package (Windows orchestration 2026-07-16)

Host context: Windows 11 / Orca 1.4.143.0 / repo path used: docs/bug-reproductions/
Labels applied: see issue labels (has_repro or cannot_repro).
Security: Do not run user-uploaded binaries from issue attachments. Recreate fixtures from the steps/scripts below.


Issue 7175 — Not responding / crash with more than 3 sessions (32GB)

Status: needs_setup / treated as cannot_repro on this host until prerequisites land
Host: Windows 11, Orca 1.4.143
Label: cannot_repro (attempted; blocked)

What we tried

Did not run a multi-hour stress open of many agent sessions (risk of host instability). Host already had high session count during other tests without AppHang on 1.4.143. Related #6874 historical AppHang on 1.4.135 only.

What is needed Dedicated load test: open 4+ heavy agent sessions, capture Event Viewer AppHangB1, orca diagnostics memory, and before/after status --json. Prefer clean profile.

Dedicated load test: open 4+ heavy agent sessions, capture Event Viewer AppHangB1, orca diagnostics memory, and before/after status --json. Prefer clean profile.

Notes

  • Docs live under docs/bug-reproductions/. Re-run once prerequisites exist.
  • Security: do not run untrusted issue attachments.

How another agent should use this

  1. Read this comment fully (status, expected vs actual, blockers).
  2. If a script is included above, copy it to a temp file and run it on a Windows 11 host with Orca installed (prefer production install under %LOCALAPPDATA%\Programs\orca).
  3. Capture evidence (CLI --json, screenshots, logs) under a local folder; optionally comment results back here.
  4. If status is cannot_repro / needs_setup, satisfy the listed prerequisites first, then re-attempt and flip labels: remove cannot_repro, add has_repro when conclusive.

OrcaWin avatar Jul 17 '26 00:07 OrcaWin

We reproduced the Windows multi-session collapse on 16 GB (Orca 1.4.188), and the host was paging, not only saturating the renderer:

  • 9× codex.exe private 13.4 GB vs working set 1.4 GB
  • commit 42 / 46 GB, pagefile 20 GB in use, pages/sec 27k–38k
  • orca diagnostics memory still reports processMemoryMetric: "working-set", so Resource Manager cannot warn before the box is already thrashing

Full measurements, collector pointers, and proposed slices: https://github.com/stablyai/orca/issues/16211

This does not replace the xterm drain-pacing theory in this issue — both can be true. On 16–32 GB Windows the memory side hits first.

sanshengai avatar Aug 24 '26 02:08 sanshengai