Repository navigation
Description
Environment
- OS: Linux (WSL2), kernel
6.18.33.1-microsoft-standard-WSL2 - Orca version:
1.4.187(daemon entry reportsapp-version 1.4.187, protocol v36) - Install path:
/opt/Orca/orca-ide - Session uptime before freeze: ~14 hours
Summary
After extended use, Orca IDE becomes effectively frozen: UI input is unresponsive and CLI commands time out with runtime_unavailable. Processes remain alive (main, renderer, daemon), but the embedded runtime stops responding while the renderer burns ~52% CPU continuously.
This appears distinct from launch-time runtime.state: "starting" issues (e.g. #13950): here the runtime had previously been reachable (runtimeId: ef4f02f6-5c00-4b3e-8930-d765d8389da9 in ~/.config/orca/orca-runtime.json) and degraded over time.
Steps to reproduce (approximate)
- Register multiple repos/worktrees (7 repos, 6+ git worktrees under one project).
- Include at least one repo with no
upstreamremote and noorigin/HEADset. - Include at least one non-git folder registered as
kind: "folder"on a WSL cross-mount path (/mnt/d/...). - Use Orca normally with agent terminals/worktrees for several hours.
- Observe progressive UI sluggishness → full freeze.
- Run
orca-ide status --jsonandorca-ide worktree ps --json.
Actual behavior
Status stuck / runtime unreachable
{
"result": {
"app": { "running": true, "pid": 607 },
"runtime": { "state": "starting", "reachable": false, "runtimeId": null },
"graph": { "state": "starting" }
}
}CLI commands (worktree ps, terminal list) wait ~60s then fail:
{
"ok": false,
"error": {
"code": "runtime_unavailable",
"message": "The Orca runtime closed the connection before responding. Restart Orca and try again."
}
}Process state while frozen
| Process | PID | CPU | Notes |
|---|---|---|---|
Main (orca-ide) |
607 | ~14% | Alive |
| Renderer | 855 | ~52% sustained | ~858 MB RSS, 39 threads, running 14h+ |
| Daemon | 863 | ~3% | daemon.log shows ready |
| GPU | 753 | ~7% |
Renderer heap was stable (~93–95 MB per renderer_memory breadcrumbs), so this does not look like an OOM crash — more like event-loop saturation.
Trace evidence: git.exec polling storm
From ~/.config/orca/logs/main.trace.ndjson* (64k+ lines total):
- 48,000+
git.execspans across rotated trace files - Top CWDs by call count:
/home/.../lucens(main repo): 38,620- Multiple Orca-managed issue worktrees: 200–2,300 each
/mnt/d/llamacpp(registered askind: "folder", not a git repo): 964
- After the last successful runtime span (
terminal.close), 655/710 subsequent log lines weregit.exec— runtime activity stopped, git polling continued.
Polling rate in the final segment: ~0.17 git calls/sec sustained.
Repeated failing git commands (no backoff observed)
| Failures | Command | Target |
|---|---|---|
| 5,858 | git remote get-url upstream |
main repo (no upstream remote) |
| 1,644 | git symbolic-ref --quiet refs/remotes/origin/HEAD |
main repo (HEAD not set) |
| 962 | git rev-parse |
/mnt/d/llamacpp (non-git folder) |
Orca continues invoking git on a kind: "folder" path and on expected-missing remotes/ref configs without apparent caching or backoff.
Other errors in trace
- Multiple
terminal.closefailures withError: tab_not_found(state inconsistency after long session) - Daemon shows heavy session create/attach/kill churn across many worktrees
Expected behavior
- Git status polling should back off or cache known-failing probes (missing
upstream, unsetorigin/HEAD, non-git folders). kind: "folder"repos should not receive continuousgit rev-parsecalls.- Runtime should remain reachable under multi-worktree load, or degrade gracefully with diagnostics instead of wedging for 14+ hours.
orca-ide status --jsonshould reflect a wedged runtime (not silently stay atstartingwith a live PID).
Workarounds that helped identify the issue
- Restart Orca (processes must be killed; UI quit may not be enough once wedged)
- Remove non-git folder on cross-mount (
/mnt/d/llamacpp) from Orca repos - Clean up unused worktrees (one worktree had ~2 GB
node_modules, 121k files) - Set
origin/HEAD:git remote set-head origin -a
Related issues
- [Bug] Orca launches but runtime remains stuck in “starting” and CLI times out #13950 — runtime stuck in
startingat launch (different trigger; similar CLI symptom) - [Bug]: Main process reaches 100% CPU after terminal/worktree churn and retains thousands of removed worktrees #15412 — main process 100% CPU after worktree churn / stale metadata (overlapping terminal lifecycle symptoms; this report adds git.exec polling as a primary renderer CPU driver on Linux/WSL2)
- Possibly related fixes: perf(renderer): scope editor Git subscriptions by worktree #8107 (scope editor Git subscriptions), fix(git): cache unsupported capabilities per host #8109 (cache unsupported git capabilities)
Logs available on request
Can provide redacted slices of:
main.trace.ndjsondaemon.logorca-ide status --jsonoutput- git.exec failure counts by (cwd, subcommand)
Activity