Skip to content

[Bug][Linux/WSL2]: IDE freezes after long session — renderer ~52% CPU from continuous git.exec polling; runtime becomes unreachable #15882

Open

Description

@TommyFang2077

Environment

  • OS: Linux (WSL2), kernel 6.18.33.1-microsoft-standard-WSL2
  • Orca version: 1.4.187 (daemon entry reports app-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)

  1. Register multiple repos/worktrees (7 repos, 6+ git worktrees under one project).
  2. Include at least one repo with no upstream remote and no origin/HEAD set.
  3. Include at least one non-git folder registered as kind: "folder" on a WSL cross-mount path (/mnt/d/...).
  4. Use Orca normally with agent terminals/worktrees for several hours.
  5. Observe progressive UI sluggishness → full freeze.
  6. Run orca-ide status --json and orca-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.exec spans 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 as kind: "folder", not a git repo): 964
  • After the last successful runtime span (terminal.close), 655/710 subsequent log lines were git.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.close failures with Error: tab_not_found (state inconsistency after long session)
  • Daemon shows heavy session create/attach/kill churn across many worktrees

Expected behavior

  1. Git status polling should back off or cache known-failing probes (missing upstream, unset origin/HEAD, non-git folders).
  2. kind: "folder" repos should not receive continuous git rev-parse calls.
  3. Runtime should remain reachable under multi-worktree load, or degrade gracefully with diagnostics instead of wedging for 14+ hours.
  4. orca-ide status --json should reflect a wedged runtime (not silently stay at starting with 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

Logs available on request

Can provide redacted slices of:

  • main.trace.ndjson
  • daemon.log
  • orca-ide status --json output
  • git.exec failure counts by (cwd, subcommand)

Activity

  1. added
    bug
    os:linux
    on Sep 19, 2026
  2. added theissue type on Sep 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggitos:Windowsos:linux

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions