orca icon indicating copy to clipboard operation
orca copied to clipboard

macOS: repeated main-thread Performance Diagnostics while Orca.app is running

Open hu-qi opened this issue 4 months ago • 9 comments

Summary

While checking a currently running Orca.app session, I found evidence of intermittent macOS main-thread performance warnings that could explain perceived UI sluggishness. I did not observe a sustained freeze or consistently high Orca CPU during the measurement window, so this looks more like intermittent jank / main-thread blocking than a permanent CPU-bound hang.

Environment

  • Orca.app: 1.4.123 (com.stablyai.orca)
  • macOS: 26.5.2 (25F84)
  • Hardware: Mac16,10, Apple M4, 16 GB RAM
  • Time of capture: 2026-07-06 23:39-23:41 CST (Asia/Shanghai)
  • App runtime status: orca status --json reported app.running: true, runtime.state: ready, graph.state: ready

Responsiveness checks

These did not show a persistent freeze at the time of measurement:

  • orca computer list-windows --app com.stablyai.orca --json: 0.25s
  • orca computer get-app-state --app com.stablyai.orca --json with screenshot: 0.52s
  • orca status --json, 8 runs: min 0.11s, max 0.31s, avg 0.14s
  • orca computer get-app-state --app com.stablyai.orca --no-screenshot --json, 5 runs: min 0.13s, max 0.21s, avg 0.15s

Process/resource observations

Current Orca process tree during capture:

  • Main: Orca pid 22936
  • GPU helper: pid 22946
  • Network service helper: pid 22947
  • Renderer: pid 23030
  • Daemon helper: pid 23041 (daemon-entry.js)

10-second polling showed mostly low CPU:

  • Main process mostly 0.1-0.7%, with one short spike to 6.8%
  • Renderer mostly 0.0-0.2%
  • Daemon mostly 0.0-0.9%
  • RSS roughly: main 158-162 MB, renderer 199-200 MB, daemon 66-67 MB

System was not obviously CPU-saturated during the capture:

  • CPU: about 53% idle
  • Load average: 3.23, 3.15, 2.87
  • Memory free percentage from memory_pressure: 46%

Evidence pointing at possible intermittent UI jank

Unified logging for the current running Orca PIDs over the last 90 minutes contained:

  • 39 Performance Diagnostics entries
  • 13 NSSecureCoding allowed classes warnings
  • repeated XPC_ERROR_CONNECTION_INTERRUPTED messages

Representative lines:

2026-07-06 22:30:51.928 Orca Helper[23041] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 22:36:52.596 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:20:29.121 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:36:52.238 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.

The sample captures did not show the renderer burning CPU, but they did show short process-spawn activity in the main process / daemon helper:

sample Orca main pid 22936 for 5s:
  Physical footprint: 216.2M, peak 241.7M
  __posix_spawn samples: 78
  stack includes uv_spawn -> posix_spawn on the main-thread call graph

sample daemon helper pid 23041 for 5s:
  Physical footprint: 42.3M, peak 70.4M
  __posix_spawn samples: 19
  stack includes uv_spawn -> posix_spawn

sample renderer pid 23030 for 5s:
  Physical footprint: 264.3M, peak 316.7M
  mostly mach_msg / kevent waiting; no obvious CPU-bound renderer loop

Current hypothesis

The current session was not fully hung, but macOS is repeatedly warning about main-thread calls that may cause UI unresponsiveness. Combined with the short uv_spawn -> posix_spawn bursts in the Electron main process / daemon helper, this may explain intermittent UI jank even when steady-state CPU looks low.

Potential areas to inspect:

  • Any synchronous work or security-scoped/resource lookups happening on the Electron main thread
  • Child process spawning from the main process or daemon during UI interactions / workspace updates
  • IMK/XPC-related interactions around focus/input, since the logs also include repeated XPC interruption messages and NSSecureCoding allowed classes warnings

Expected behavior

Orca.app should avoid main-thread operations that trigger macOS Performance Diagnostics and should remain responsive during workspace/runtime status updates.

Actual behavior

The app remains reachable, but macOS logs repeatedly flag main-thread work that "may lead to UI unresponsiveness," and short sampling shows process-spawn activity on the main process / daemon path.

hu-qi avatar Jul 06 '26 15:07 hu-qi

Additional clarification after re-checking the evidence:

I do not currently have a deterministic user-visible "Orca is frozen / very slow" reproduction. A live re-check still shows the runtime reachable and quick:

orca status --json
  app.running: true
  runtime.state: ready
  graph.state: ready

orca computer get-app-state --app com.stablyai.orca --no-screenshot --json
  real 0.22s

So the accurate scope of this issue is narrower: macOS is repeatedly reporting main-thread work in the running Orca processes that may lead to UI unresponsiveness, and that could explain intermittent jank if it lines up with user interactions. It is not evidence of a sustained hang.

Data collection / reproduction path used

These are the exact collection steps I used on the currently running app session:

# 1. Confirm Orca is running and runtime is reachable
orca status --json

# 2. Identify the running app and helper processes
ps -axo pid,ppid,stat,pcpu,pmem,rss,vsz,etime,comm,args | rg -i '(^ *PID|Orca|orca)'

# 3. Verify desktop-window accessibility responsiveness
/usr/bin/time -p orca computer list-windows --app com.stablyai.orca --json
/usr/bin/time -p orca computer get-app-state --app com.stablyai.orca --json

# 4. Poll Orca process CPU/RSS for 10 seconds
for i in {1..10}; do
  date '+--- %H:%M:%S ---'
  ps -p 22936,22946,22947,23030,23041 -o pid,ppid,stat,pcpu,pmem,rss=RSS_KB,etime,command
  sleep 1
 done

# 5. Capture short samples from main, renderer, and daemon helper
sample 22936 5 -file sample-orca-main.txt
sample 23030 5 -file sample-orca-renderer.txt
sample 23041 5 -file sample-orca-daemon.txt

# 6. Query macOS unified logs for the current running Orca PIDs
/usr/bin/log show --last 90m --style compact --info \
  --predicate '(processID == 22936 OR processID == 22946 OR processID == 22947 OR processID == 23030 OR processID == 23041) AND (eventMessage CONTAINS[c] "hang" OR eventMessage CONTAINS[c] "unresponsive" OR eventMessage CONTAINS[c] "blocked" OR eventMessage CONTAINS[c] "error" OR eventMessage CONTAINS[c] "crash" OR eventMessage CONTAINS[c] "memory" OR eventMessage CONTAINS[c] "timeout" OR eventMessage CONTAINS[c] "main thread")'

Process log summary

The current running Orca PIDs produced:

Performance Diagnostics entries: 39
NSSecureCoding allowed classes warnings: 13
Repeated XPC_ERROR_CONNECTION_INTERRUPTED messages: present

Representative process-log lines:

2026-07-06 22:30:51.928 Orca Helper[23041] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 22:36:52.596 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:20:29.121 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:36:52.238 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.

The sample evidence also showed short child-process spawn activity in the main process / daemon helper:

sample Orca main pid 22936 for 5s:
  __posix_spawn samples: 78
  stack includes uv_spawn -> posix_spawn

sample daemon helper pid 23041 for 5s:
  __posix_spawn samples: 19
  stack includes uv_spawn -> posix_spawn

sample renderer pid 23030 for 5s:
  mostly mach_msg / kevent waiting; no obvious CPU-bound renderer loop

Conclusion / correction

I should have been more explicit in the initial report: this is not yet a confirmed sustained UI lag bug. The confirmed finding is that the running Orca session repeatedly emits macOS main-thread unresponsiveness diagnostics, while normal status/window queries remain fast. Leaving the issue open because the diagnostics are real and may still be actionable, but the severity should be treated as "possible intermittent jank / main-thread work" rather than "Orca is currently very slow." Sorry for the initial report not making that boundary clear enough.

hu-qi avatar Jul 06 '26 15:07 hu-qi

Additional workspace-count/load investigation:

I explored whether this may be related to having many Orca workspaces/worktrees open. The evidence now points more strongly at the workspace/worktree status refresh path as a possible contributor.

Current workspace scale

At the time of testing, the current Orca session had:

repos: 26
worktrees/workspaces returned by `orca worktree ps`: 20
  status=active: 10
  status=inactive: 10
  workspaceStatus=in-progress: 20
sum(worktree.liveTerminalCount): 17
terminal entries returned by `orca terminal list`: 7 connected

Commands / reproduction path tested

orca repo list --json
orca worktree ps --json
orca terminal list --json
orca computer get-app-state --app com.stablyai.orca --no-screenshot --json

I first ran repo/worktree/terminal/status queries close together, then re-ran the heavier paths sequentially to avoid over-attributing the issue to concurrent CLI calls.

Timings observed

Initial / cold-ish query timings:

orca repo list --json:        3.01s
orca worktree ps --json:     10.57s
orca terminal list --json:   10.13s

A later sequential orca worktree ps --json still took 7.61s and drove the Orca main process heavily:

worktree ps sequential timing: 7.61s
Orca main process CPU during that command:
  samples: 15
  min: 97.2%
  max: 108.7%
  avg: 100.0%
renderer CPU during same window:
  max observed: 75.3%

When orca worktree ps and orca computer get-app-state --no-screenshot overlapped, the window-state query was also delayed:

get-app-state while worktree refresh was happening: 4.23s

After the workspace data appeared warmed/cached, repeated calls got much faster:

worktree ps repeated series: 0.78s, 0.25s, 0.20s, 0.19s, 0.18s
get-app-state repeated series: 0.84s, 0.21s, 0.17s, 0.20s, 0.17s, 0.28s

So this does not look like every call is slow. It looks more like a cold or invalidated workspace/worktree refresh path can be expensive, and the cost may be amplified by the number of tracked repos/workspaces/live terminals.

After-query CPU linger

After the workspace-related queries completed, the Orca main process stayed elevated for at least another 10 seconds:

Orca main process after-query CPU samples:
  samples: 10
  min: 47.2%
  max: 98.9%
  avg: 66.2%

I captured another sample during that elevated state. Unlike the earlier report's posix_spawn samples, this one points at Electron main-thread Node/uv + JS callback work:

sample Orca main pid 22936 for 5s, captured 2026-07-06 23:53:01 +0800
Physical footprint: 179.3M, peak 241.7M
Main-thread call graph includes:
  uv_run
  uv__io_poll
  uv_fs_readlink
  node::LibuvStreamWrap::OnUvRead
  node::EmitToJSStreamListener::OnStreamRead
  node::StreamBase::CallJSOnreadMethod
  v8::Function::Call

Updated hypothesis

This still is not a minimal deterministic repro, but it is a more actionable direction than the original report:

  • A session with many tracked repos/workspaces/live terminals appears to make the workspace/worktree status refresh path expensive.
  • orca worktree ps --json can trigger 7-10s of heavy Orca main-process CPU in this session.
  • While that refresh is happening, window-state/accessibility queries can also be delayed by several seconds.
  • Once warmed, the same calls are fast, so the issue may involve a cache invalidation / cold refresh / initial aggregation path rather than steady-state rendering.

A useful internal repro might be to create or simulate a profile with ~25 repos, ~20 in-progress workspaces, ~10 active workspaces, and ~15-20 live terminal counts, then measure the workspace list/status refresh path and whether it runs on or blocks the Electron main process.

hu-qi avatar Jul 06 '26 15:07 hu-qi

One more follow-up: after the workspace/listing commands had finished and no orca worktree ps / orca terminal list / orca repo list CLI process was still running, the elevated CPU state persisted.

A later ps check showed:

Orca main process pid 22936:      95.4% CPU, RSS 223776 KB
Orca renderer pid 23030:          37.8% CPU, RSS 605296 KB
Orca GPU helper pid 22946:        13.6% CPU
Daemon helper pid 23041:           0.3% CPU

So the workspace/status refresh path may be able to leave the main/renderer in a longer elevated-CPU state, not just a short spike while the CLI command is actively running.

hu-qi avatar Jul 06 '26 15:07 hu-qi

More detailed reproduction/process-log supplement for the workspace-count hypothesis.

Current conclusion

This is still not a confirmed sustained freeze. The more accurate finding is:

  • In a large current Orca session, cold/invalidated workspace-status refreshes can drive the Orca main process to ~100% CPU for several seconds.
  • The same period can delay orca computer get-app-state --no-screenshot by several seconds.
  • After the refresh is warm/cached, the same commands become fast again.
  • The app later recovered to low CPU and runtime.state=ready, so this currently looks intermittent / refresh-path related, not a permanent stuck state.

I am keeping the issue open because the CPU spike + macOS main-thread diagnostics are real, but the original report should be read as "possible intermittent jank / main-thread work under larger workspace load", not "Orca is always slow".

Environment observed

Orca.app: 1.4.123
macOS: 26.5.2
capture time: 2026-07-06/07 CST

Workspace scale at the time of the measurements:

repos=26
worktrees=20
activeStatus=10
inactiveStatus=10
workspaceStatus=in-progress=20
liveTerminalCountSum=17
terminalListEntries=7
connectedTerminalEntries=7

Reproduction / measurement path

This is the concrete path I used on the already-running app session:

# 1. Confirm the app/runtime is alive
orca status --json

# 2. Capture process list for the active Orca app/helper PIDs
ps -axo pid,ppid,stat,pcpu,pmem,rss,vsz,etime,comm,args | rg -i '(^ *PID|Orca|orca)'

# 3. Measure cold-ish workspace/status paths
/usr/bin/time -p orca repo list --json > repo-list.json
/usr/bin/time -p orca worktree ps --json > worktree-ps.json
/usr/bin/time -p orca terminal list --json > terminal-list.json

# 4. Re-run the heavier path sequentially while polling the Orca processes
(
  /usr/bin/time -p orca worktree ps --json > worktree-ps-seq.json
) 2> worktree-ps-seq.time &
cmd_pid=$!
while kill -0 "$cmd_pid" 2>/dev/null; do
  date '+--- %H:%M:%S ---'
  ps -p 22936,22946,23030,23041 -o pid,stat,pcpu,pmem,rss=RSS_KB,etime,command
  sleep 0.5
done > worktree-ps-seq-cpu.txt
wait "$cmd_pid"

# 5. Measure whether window/accessibility state is delayed during the refresh
/usr/bin/time -p orca computer get-app-state --app com.stablyai.orca --no-screenshot --json > app-state.json

# 6. Capture a sample while CPU remains elevated after the workspace queries
sample 22936 5 -file sample-main-after-workspace-queries.txt

# 7. Capture filtered unified logs for current Orca PIDs
/usr/bin/log show --last 30m --style compact --info \
  --predicate '(processID == 22936 OR processID == 22946 OR processID == 23030 OR processID == 23041) AND (eventMessage CONTAINS[c] "Performance Diagnostics" OR eventMessage CONTAINS[c] "main thread" OR eventMessage CONTAINS[c] "unresponsive" OR eventMessage CONTAINS[c] "XPC_ERROR" OR eventMessage CONTAINS[c] "NSSecureCoding")' \
  > log-after-workspace-queries.txt

# 8. Repeat the same commands after the data appears warm/cached
for i in 1 2 3 4 5; do
  /usr/bin/time -p orca worktree ps --json > "worktree-latency-$i.json"
done
for i in 1 2 3 4 5 6; do
  /usr/bin/time -p orca computer get-app-state --app com.stablyai.orca --no-screenshot --json > "app-state-latency-$i.json"
done

Timing results

initial repo list:                    3.01s
initial worktree ps:                 10.57s
initial terminal list:               10.13s
sequential worktree ps cold-ish:      7.61s
worktree repeat1:                     4.22s
worktree repeat2:                     1.23s
app-state before seq2:                4.87s
seq2 worktree ps:                     0.25s
app-state after seq2:                 0.13s
app-state concurrent/overlap:         4.23s
worktree latency warmed series:       0.78s, 0.25s, 0.20s, 0.19s, 0.18s
app-state latency warmed series:      0.84s, 0.21s, 0.17s, 0.20s, 0.17s, 0.28s

CPU evidence during orca worktree ps --json

During the sequential 7.61s orca worktree ps --json run:

Orca main pid 22936 CPU samples:
  min: 97.2%
  max: 108.7%
  avg: 100.0%

Renderer pid 23030:
  max observed during same window: 75.3%

Representative ps excerpts from that window:

--- 23:50:45 ---
  PID STAT  %CPU %MEM RSS_KB  ELAPSED COMMAND
22936 R     98.8  1.3 218256 01:19:55 /Applications/Orca.app/Contents/MacOS/Orca
23030 S      1.9  3.1 519488 01:19:54 /Applications/Orca.app/Contents/Frameworks/Orca Helper (Renderer).app/Contents/MacOS/Orca Helper (Renderer)
23041 Ss     0.3  0.5  75680 01:19:54 /Applications/Orca.app/Contents/Frameworks/Orca Helper.app/Contents/MacOS/Orca Helper ... daemon-entry.js

--- 23:50:51 ---
  PID STAT  %CPU %MEM RSS_KB  ELAPSED COMMAND
22936 R     99.6  1.3 221824 01:20:01 /Applications/Orca.app/Contents/MacOS/Orca
23030 S     75.3  3.1 524544 01:20:00 /Applications/Orca.app/Contents/Frameworks/Orca Helper (Renderer).app/Contents/MacOS/Orca Helper (Renderer)
23041 Ss     0.1  0.5  75744 01:20:00 /Applications/Orca.app/Contents/Frameworks/Orca Helper.app/Contents/MacOS/Orca Helper ... daemon-entry.js

CPU linger after the workspace queries completed

After no orca repo list / orca worktree ps / orca terminal list CLI process was still running, the main process stayed elevated for at least another polling window:

Orca main process after-query CPU samples:
  samples: 10
  min: 47.2%
  max: 98.9%
  avg: 66.2%

Representative excerpt:

--- 23:53:01 ---
22936 S     47.2  1.3 224112 01:22:11 /Applications/Orca.app/Contents/MacOS/Orca
23030 S      3.1  3.4 565840 01:22:10 /Applications/Orca.app/Contents/Frameworks/Orca Helper (Renderer).app/Contents/MacOS/Orca Helper (Renderer)

--- 23:53:11 ---
22936 R     98.9  1.3 224384 01:22:21 /Applications/Orca.app/Contents/MacOS/Orca
23030 S      6.1  3.4 567984 01:22:20 /Applications/Orca.app/Contents/Frameworks/Orca Helper (Renderer).app/Contents/MacOS/Orca Helper (Renderer)

macOS sample excerpt from elevated main-process state

Captured with sample 22936 5 -file sample-main-after-workspace-queries.txt:

Physical footprint:         179.3M
Physical footprint (peak):  241.7M

Call graph excerpt:
2522 uv_run
  2521 uv__io_poll
    2520 uv_fs_readlink
      2520 node::LibuvStreamWrap::OnUvRead
        2520 node::EmitToJSStreamListener::OnStreamRead
          2520 node::StreamBase::CallJSOnreadMethod
            2518 v8::Function::Call

This points at Electron main-process Node/libuv + JS callback work during the elevated CPU period. The earlier sample in this issue showed uv_spawn -> posix_spawn; this later one instead points more toward stream/readlink/JS callback work after workspace queries.

Process-log excerpt

Filtered unified logs around the same session include repeated main-thread diagnostics and XPC interruptions:

2026-07-06 23:36:52.238 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:41:54.450 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:41:55.927 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:42:06.279 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:42:08.664 Orca[22936] Performance Diagnostics: This method should not be called on the main thread as it may lead to UI unresponsiveness.
2026-07-06 23:42:17.644 Orca[22936] Re-initialization successful; calling out to event handler with XPC_ERROR_CONNECTION_INTERRUPTED

The filtered log also contains repeated NSSecureCoding allowed classes list contains [NSObject class] warnings. I do not know whether those are related to the CPU spike; including them because they were present in the same filtered process log.

Recovery check

Later, without restarting Orca, the app recovered:

orca status --json:
  app.running=true
  runtime.state=ready
  graph.state=ready

orca status timing: 0.21s
Orca main process CPU later: ~0.1%
Renderer CPU later: ~0.0%

So the strongest repro clue is the transition from cold/heavy workspace refresh to warm/cached refresh, not the steady state.

Full redacted log bundle status

I prepared a redacted bundle with the raw process samples and JSON/log outputs:

zip size: 84,467 bytes
expanded redacted files: 535,052 bytes

Bundle contents:

README.md
workspace-scale-summary.txt
timings-summary.txt
worktree-ps-redacted.json
terminal-list-redacted.json
cpu-during-worktree-ps-seq.txt
cpu-after-workspace-queries-spin.txt
sample-main-after-workspace-queries.txt
log-after-workspace-queries.txt
current-ps-after-recovery.txt
current-status-after-recovery.json
current-status-after-recovery.time

See the next.

hu-qi avatar Jul 06 '26 16:07 hu-qi

@hu-qi thank you for the detailed log. @Jinwoo-H will be taking a look at this today

AmethystLiang avatar Jul 06 '26 16:07 AmethystLiang

Thank you for the unusually actionable report — the sample captures and exact warning timestamps let us map every signal to code. Fixes are in #7595:

The uv_spawn → posix_spawn bursts were dominated by the source-control status poll re-running the full upstream-resolution chain (symbolic-ref + rev-parse ×2-3 + config + rev-list) every 3s for branches pushed without tracking config — the common Orca worktree shape. That chain is now cached and revalidated with a single rev-list: 131 → 61 main-process spawns/min (−53%) on a reproducing benchmark, worst event-loop stall 212ms → ~150ms. The same PR adds a gh rate-limit circuit breaker and negative caches that remove per-repo subprocess storms on multi-repo setups.

The exactly-hourly warnings (22:36:52 → 23:36:52) match our updater's failure-retry cadence — when an update check errors (blocked domain, proxy, transient feed issue), it re-armed every hour forever. Consecutive failing retries now back off 1h → 2h → 4h → 6h.

To verify on your machine (we could not reproduce the Performance Diagnostics warnings on macOS 26.2; you're on 26.5.2): once a release with these fixes is out, re-running your 90-minute log count and 5s sample captures should show the posix_spawn samples cut roughly in half or better and the hourly warning train stop after the first backoff. If warnings persist, launching Orca with ORCA_MAIN_THREAD_DIAGNOSTICS=1 now emits per-5s spawn/stall reports plus a timestamped marker for every update-check attempt on stderr — correlating those timestamps with your log show output would pinpoint the remaining source precisely.

The daemon helper's samples are checkpoint serialization rather than spawns and are tracked in a separate workstream.

Jinwoo-H avatar Jul 06 '26 21:07 Jinwoo-H

Thanks again for the detailed investigation. The fixes from #7595 have shipped, and we have not received any further reports of the same warning cadence or spawn churn.

We are closing this for now to keep the backlog current. If the behavior persists on v1.4.134 or newer, please comment with the updated 90-minute log count and 5-second samples. We will be happy to reopen the issue and continue investigating.

brennanb2025 avatar Jul 11 '26 00:07 brennanb2025

Still happening on Orca 1.4.237 (macOS 27.0.1 26A434, MacBook Pro M2 Max). The warning cadence is different from the original report, so here are the numbers the closing comment asked for.

Count of the exact message "This method should not be called on the main thread as it may lead to UI unresponsiveness." (subsystem com.apple.runtime-issues, sender image Security.framework) for process BEGINSWITH "Orca":

  • log show --last 30m (20:04:39-20:34:21): 168
  • log show --last 90m (run at 20:39, covers ~19:09-20:39): 648

New observation: all 648 come from 54 processes (50 Orca, 4 Orca Helper), exactly 12 messages each, all within 0-123 ms of each other per process, i.e. at process start, and none from the long-running GUI process (pid 56235, running since 17:17, logging 474 other events in the 30 min window). The 50 Orca ones are short-lived; my explanation (inference) is the orca CLI: bin/orca does ELECTRON_RUN_AS_NODE=1 exec "$CONTENTS/MacOS/Orca" "$CLI". Check: one orca status --json call created a new Orca process that logged exactly 12 of these messages at 20:44:11. In the log of an earlier such process (pid 20939) the 12 messages sit between SecTrustSettingsXPCRead and SecTrustEvaluateIfNecessary activity, all with Security.framework as the sender image [inference: a trust evaluation on the main thread at process start].

So the count follows how often helper processes are started (here mostly the CLI), not the GUI's polling: one CLI call = 12 warnings. The 4 Orca Helper processes (e.g. pid 28483, computer-sidecar.js, started 20:11:43) also emit their 12 at start. No messages were logged between 20:12:15 and 20:39 (end of the 90-minute query).

5-second sample of the main process (pid 56235, redacted: https://gist.github.com/trukhinyuri/038f9e4655d9246a08fd97d9caf19f73): idle; the main thread is in -[NSApplication run] → nextEventMatchingMask → mach_msg2_trap for 4,057 of 4,057 samples; no posix_spawn/uv_spawn frames (0 matches). Physical footprint 241 MB.

trukhinyuri avatar Oct 21 '26 19:10 trukhinyuri