computer-use spawns ~200 unmanaged helper processes/3h, causing 40-50GB+ memory usage and forced restarts
Summary
Orca's computer-use feature repeatedly spawns new child helper process instances instead of reusing an existing one. Each instance is explicitly excluded from RunningBoard/jetsam memory management, so macOS never proactively reclaims them. Over time this drives Orca's total memory footprint up to 40-50GB+ on a 16GB machine, ultimately triggering macOS's "Force Quit Applications — Your system has run out of application memory" dialog and requiring a full restart to recover. This has happened repeatedly (multiple restarts over the past ~24h).
Environment
- Orca version: 1.4.142 (from a crash diagnostic captured during the incident window)
- OS: macOS 26.5.2 (Build 25F84)
- Hardware: MacBookPro18,1, 16 GB RAM, arm64e
Evidence
1. Force Quit dialog showing runaway memory
Two separate screenshots (~2 hours apart) show "Orca (paused)" listed in Force Quit Applications at:
- 48.70 GB
- 54.83 GB
2. log show reveals ~200 distinct unmanaged computer-use process instances spawned in 3 hours
/usr/bin/log show --last 3h --predicate 'eventMessage contains "jetsam" or eventMessage contains "memorystatus"'
Filtering for unique computer-use.<pid>.<pid>.<UUID> identifiers in runningboardd log lines yields 200 unique instances over a 3-hour window (~1 new instance every 54 seconds), each logged as:
runningboardd: (RunningBoard) [com.apple.runningboard:process] [app<application.com.stablyai.orca.computer-use.388334021.388334026.<UUID>(501)>:<pid>] Ignoring jetsam update because this process is not memory-managed
Sample of distinct UUIDs observed within the same parent coalition (388334021.388334026):
0045E532-E393-457E-907C-1F6720C77DCC
0202C128-C82A-4E56-B47B-8BBBC23294B8
02B243D4-5EAE-4B8D-922F-2079D074685E
0748271A-88D9-4F8A-90EF-8E3446AA3267
0CE1C91F-9AC6-4544-89A4-76651D8C12F9
10DFCDD4-150F-4CF3-8EFD-877F1E256572
... (194 more)
3. Crash diagnostic flags excessive sustained disk writes from the main Orca process
/Library/Logs/DiagnosticReports/Orca_2026-07-16-214954_*.diag (v1.4.142, PID 79823):
Event: disk writes
Action taken: none
Writes: 2184.27 MB of file backed memory dirtied over 9829 seconds (222.22 KB per second average), exceeding limit of 24.86 KB per second over 86400 seconds
Heaviest stack for the target process points into Electron's libuv write path:
uv_guess_handle + 48520 (Electron Framework + 32395452)
write + 8 (libsystem_kernel.dylib + 18484)
7 separate Orca/"Orca Helper (Renderer)" .diag crash reports have accumulated in /Library/Logs/DiagnosticReports/ over the past week.
Expected behavior
computer-use helper processes should either be reused/pooled rather than spawned fresh every ~1 minute, or be properly registered with RunningBoard/jetsam so macOS can reclaim idle ones under memory pressure instead of accumulating unbounded.
Actual behavior
Memory usage climbs unbounded during computer-use usage until the OS-level Force Quit dialog appears, requiring the user to manually kill Orca (and in this case, restart the machine several times) to recover.
Impact
Multiple forced system restarts over ~24 hours due to total memory exhaustion, disrupting other running applications.
The lifecycle shape of the survivors, from two macOS hosts on 1.4.187 and 1.4.188. This thread has the memory cost and the spawn rate. What it does not have is what a leftover helper looks like once it stops being used, and that shape narrows the cause considerably.
53 surviving orca-computer-use-macos processes across two hosts, 44 and 9. Unanimous on all three properties, not a majority:
- 53 of 53 are in state
T(stopped) and reparented tolaunchd. - 53 of 53 name a
--permission-status-filedirectory that no longer exists. - Descriptors 0, 1 and 2 are
/dev/null. None holds a pty or a socket.
On host A, 44 of 44 map their txt segment to the same inode inside a ShipIt staging directory that is gone from disk, and that staging id is not among the directories still present. Same on host B, 9 of 9. They pin an unlinked executable. Inferred, high confidence: the helper is spawned from the staged bundle rather than from /Applications/Orca.app, and survives the swap that replaces it.
One hypothesis tested and refuted, because it is the obvious one and it is wrong. "Orca does send a terminate signal, and a stopped process cannot run its handler." We sent SIGTERM with no preceding SIGCONT to one stopped helper. It died immediately.
pid <n> state_before=T
after SIGTERM (no SIGCONT): alive=no
The limits, since refuting one mechanism does not identify another. n=1, we did not repeat it on the other 52, and we did not inspect the binary, so this is a property of that instance rather than of the build. And macOS state T means stopped without recording which mechanism stopped the process: SIGSTOP, SIGTSTP, SIGTTIN, SIGTTOU and a debugger stop all present identically. This says stopped, not SIGSTOPped. Job-control causes look unlikely given the /dev/null descriptors, but the data does not exclude them.
What survives the refutation is a set a snapshot cannot separate: cleanup that runs but targets a wrong pid or process group; kill() returning ESRCH or EPERM with the error discarded; a parent that dies between the stop and the cleanup; cleanup skipped on the update path specifically; deliberate suspension for a reuse that never comes; a race between recording the pid and the helper being replaced. Separating them needs a trace of the kill calls, their targets and their return values, which is inside the app.
A usable startup selector on this data: an orca-computer-use-macos whose --permission-status-file directory no longer exists. It selected 53 of 53 here. Honest caveat, because it changes what the number means: that is the same predicate we used to characterise them, so it is a selector rather than independent confirmation of orphan status.
If the suspension is deliberate, pairing it with an owner and a TTL would close the gap on its own. A stopped process with no owner is indistinguishable from a leak, both from outside and from your own cleanup code.
Spawn distribution on host A, for calibration against the ~200-per-3h figure in this issue: 44 helpers created between Aug 14 and Aug 17, nothing after. We do not have active-usage duration per hour, so that is a distribution rather than a rate, and the gap after Aug 17 most likely coincides with that host having exhausted its pty pool, which is an inference we did not verify by correlating the two timelines.
Cross-host data and the evidential status of every claim: #16278.
macOS 1.4.197: the leaked helpers also exhaust CoreServicesUIAgent, which blocks app launches machine-wide
Confirming this on 1.4.197 / macOS 26.6.2 (25G83, arm64), and reporting a consequence that isn't in the thread yet. The leak isn't only memory — it wedges LaunchServices and stops every app on the Mac from launching.
Confirming the original report
204 orca-computer-use-macos processes alive right now: 204/204 in state T, 204/204 reparented to launchd (ppid 1), oldest ~23h48m. Same shape @Regis-RCR described.
The new part: each helper launch leaks a CoreServicesUIAgent handler
Orca Computer Use.app carries its own quarantine attribute, with the same UUID as the parent bundle:
Orca Computer Use.app : 0381;6a9e4163;;8E150F98-DB27-49B0-A8D9-9DA9BCD230F6
Orca.app : 03c1;6a9e4163;;8E150F98-DB27-49B0-A8D9-9DA9BCD230F6
Because it is quarantined, every helper launch is routed through CSUA's Gatekeeper path rather than launching directly. Over one 24h window CoreServicesUIAgent logged:
| Message | Count |
|---|---|
GKQuarantineResolver initWithProperties: |
327 |
com.apple.coreservices.quarantine-resolver.peer[…] connections |
472 |
bundle … is launch-disabled and needs to be set trusted |
662 |
dismissing … minimum display time of 2.0000s, actual display time of -4.9990s |
263 |
Note the negative display time: CSUA's dismissal path computes a negative elapsed interval on every one of those 263 events, and the handler is never released. remaining active handlers then climbs monotonically — 12 → 29 in ~23 minutes, 277 after ~20 hours.
What happens at exhaustion
Once the worker pool is gone, 65 CSUA threads sit permanently in:
_LSOpenStuffCallLocal
xpc_connection_send_message_with_reply_sync
dispatch_mach_send_and_wait_for_reply
mach_msg2_trap
From that point nothing on the machine launches — open -a, Dock, Finder and Spotlight all hang. I caught 13 stuck open processes, oldest 13h18m, 4 of them open -a Orca. sample on a hung open shows it blocked in -[_LSRemoteOpenCall invokeWithError:] waiting for a reply that never arrives.
Recovery is kill -9 on CoreServicesUIAgent (launchd relaunches it on demand). launchctl kickstart -k gui/501/com.apple.coreservices.uiagent is refused under SIP.
This happened 3 times in ~24h on this machine. The visible symptom each time was an unrelated app: the first one I chased was a menu-bar utility that simply would not start, and it took a while to find that Orca was upstream of it.
Also observed
Orca's main process spawns concurrent open processes for the same target — I caught two spawned within the same second, parent pid = Orca main process, grandparent = launchd.
Workaround
xattr -dr com.apple.quarantine /Applications/Orca.app
Recursive is required, because the nested helper bundle carries its own attribute. This takes helper launches off the Gatekeeper path entirely. It has to be re-applied after every update.
Version note
v1.4.198's fix(computer-use): run the Windows runtime as one persistent helper (#17858) is Windows-only. macOS still spawns a fresh helper per invocation through v1.4.200, so pooling/reusing the macOS runtime the same way would remove both the memory growth and this LaunchServices failure mode.
Still present on 1.4.203 / macOS 26.6.2 — and the helper count caps at exactly the CSUA worker-pool size
Confirming @WayToBit's LaunchServices finding on a newer build: Orca 1.4.203, macOS 26.6.2 (25G83), arm64. The v1.4.198 persistent-helper change was Windows-only, and macOS still spawns a fresh helper per invocation on 1.4.203, so this failure mode is unchanged.
Hit it twice in three days. Same shape both times.
Matching the existing report
Quarantine attributes, same mismatch, same UUID on both bundles:
Orca Computer Use.app : 0381;6aa92c52;;80DB3BAA-…
Orca.app : 03c1;6aa92c52;;80DB3BAA-…
64 orca-computer-use-macos processes, 64/64 in state T, all reparented to launchd. Each is frozen at _dyld_start with a single thread and zero resident memory, i.e. spawned suspended and never resumed rather than started and later stopped.
CoreServicesUIAgent at exhaustion, 65 of 67 threads in the identical stack:
_LSOpenStuffCallLocal
_LSOpenCallInvokeWithXPC
-[_LSRemoteOpenCall openLocallyFromCaller:error:]
xpc_connection_send_message_with_reply_sync
dispatch_mach_send_and_wait_for_reply
mach_msg2_trap
From that point open -a, Dock and Finder all hang with no error.
Two things that may narrow it
1. The helper count caps at exactly 64, not 204. Both occurrences stopped at 64 alive helpers, and 64 is also the CSUA worker-thread pool size. Once the pool is exhausted, the next launch request can no longer obtain a worker, so no further helper gets spawned. The leak is self-limiting at the pool size on this host. That is consistent with the 204-helper reports being hosts where handlers were released occasionally, and it means "helper count stuck at exactly 64" is a usable detection signal for the wedged state specifically, as distinct from the general leak.
2. The helpers never check in with LaunchServices. Over a 24h window, launchservicesd logged zero CHECKIN events for com.stablyai.orca.computer-use, while logging them normally for other bundles. So the transaction dies before check-in, which fits spawn-suspended-then-never-resumed rather than a cleanup bug after a successful launch.
Spawn cadence during normal agent use was roughly one every 8 minutes, accumulating 64 over about 9 hours.
Timing
The second occurrence correlates tightly with the upgrade that re-applied the quarantine attribute: cask upgrade to 1.4.203 landed at 14:06, first permanently-stuck helper at 14:09.
Recovery without a reboot
Stripping the attribute from only the nested bundle is sufficient, the parent bundle can keep its own:
xattr -dr com.apple.quarantine "/Applications/Orca.app/Contents/Resources/Orca Computer Use.app"
pkill -9 -f orca-computer-use-macos
kill -9 $(pgrep -x CoreServicesUIAgent) # launchd respawns it clean
CSUA came back with 2 threads and 0 blocked, and app launching was restored immediately with no restart. Signature and notarization are unaffected by the strip: codesign --verify --deep --strict still exits 0 and spctl --assess --type execute still reports accepted / Notarized Developer ID.
Worth noting for anyone hitting this: a shell that is already running keeps working, only launching is dead. So this is recoverable in place, without the reboot the symptom seems to demand.
One observation I cannot attribute, offered with that caveat
syspolicyd logs Unable to initialize qtn_proc: 3 (with interleaved dispatch_mig_server returned 268435459) in a tight loop, currently ~3,000/min from two threads. It was at 0 two days before, ~100/min a few hours before the 1.4.203 upgrade, and ~3,000/min after.
I am not claiming Orca causes this. It was already non-zero before the upgrade, and it was entirely absent during my first occurrence of the freeze, so it is not the deadlock mechanism. CPU cost is negligible (syspolicyd at 0.2%). Recording it only in case it correlates with the Gatekeeper path on other affected hosts.
Agreeing with the suggested fix
Pooling the macOS runtime the way #17858 did for Windows would remove both the memory growth and this LaunchServices failure mode. Independently of quarantine, the retry path is worth bounding: launches that never check in are currently retried indefinitely with no backoff and no reaping, which is what escalates a per-launch permission failure into a machine-wide launch deadlock.
@MRCORD thanks alot for all the info. Apologies this one got lost in the list of issues. Fixing now