Skip to content

macOS stable 0.12.113: root-cause release-scoped Sentry errors, memory pressure, hangs, and Realtime failures #10420

Closed

Description

@Git-on-my-level

Summary

Omi macOS Stable 0.12.113 / build 12113 has a release-scoped Sentry cluster that needs root-cause classification and repair. Querying exact event release [email protected]+12113 over the first production day found 36 groups with 351 exact-release events in the retrieved samples. Several high-volume groups were capped at 100 retrieved events, so marked counts are lower bounds.

This is not yet evidence for rolling back .113: at the earlier product-health cutoff the build had 263 active users, 0 PostHog App Crash Detected events, and 0 mic-error users. Sentry is authoritative for the native crash/hang/memory evidence that PostHog does not capture.

Evidence cutoff: 2026-07-23 18:34 UTC. No user identifiers, payloads, breadcrumbs, transcripts, or local file contents are included.

Highest-priority evidence

1. Generic Desktop error is high-volume but currently unrootcauseable

  • OMI-DESKTOP-2S5 — ≥99 sampled .113 events / 23 sampled users / 18 device-tag values, 16:26–18:30 UTC; high/new.
  • Lifetime group at triage: 283 events / 51 users, first seen July 21, last seen July 23 18:30 UTC.
  • A fresh full event reports native_missing_dsym; no actionable symbolicated culprit is available.
  • desktop/macos/Desktop/Sources/Logger.swift:486 and :503 collapse every actionable logError call into the stable title Desktop error. The source writes typed NSError metadata only when an Error exists; no-error call sites remain indistinguishable. The generic title/fingerprint plus missing dSYM prevents ownership and root-cause isolation.

Before treating the 99 events as one product bug, repair this telemetry boundary: verify dSYM publication for build 12113 and emit a bounded, non-PII failure class/area/phase plus error type/domain/code into the Sentry fingerprint or searchable tags. Do not restore free-form local error text to Sentry.

2. Memory pressure is broad and recurring on .113

  • OMI-DESKTOP-2 — ≥60 events / 49 sampled users concentrated from 18:21–18:29 UTC.
  • OMI-DESKTOP-F — ≥62 events / 4 sampled users, 15:27–18:27 UTC.
  • OMI-DESKTOP-54 — ≥29 events / 3 sampled users, 17:14–18:28 UTC.
  • OMI-DESKTOP-W — one extreme-memory auto-restart on .113.

This recurs after closed issue #8127. Establish whether the broad OMI-DESKTOP-2 spike is one shared threshold/state transition or another grouping artifact, then correlate safe memory-component context with Rewind/encoder queues and app lifecycle state.

3. App hangs remain fragmented across many leaf groups

The retrieved exact-release sample contains 74 .113 hang events across 24 Sentry groups. The largest is OMI-DESKTOP-Y with ≥32 events / 15 sampled users; the remaining groups are listed below. This also recurs after #8127.

Inspect symbolicated representative stacks, cluster by blocked owner/state rather than sampled leaf frame, and add stable root-cause fingerprints so one hang episode does not become many issues.

4. New fatal main-thread queue assertion

  • OMI-DESKTOP-2VM — one fatal .113 event / one user at 18:02 UTC.
  • Failure: libdispatch main-thread assertion in SwiftUI.SwiftUIMenu.
  • Sampled culprit: ProactiveAssistantsPlugin.testNotificationObservers initializer expression.
  • No matching GitHub issue or PR was found in dedupe searches.

Audit menu/notification-observer initialization for actor/queue ownership and leave a focused regression exercising the callback on the required executor.

5. Gemini RealtimeHub address-exhaustion/network binding errors

  • OMI-DESKTOP-D — ≥22 .113 events / 5 sampled users, 06:00–18:26 UTC.
  • Failure: Gemini receive path reports POSIX 49, Can't assign requested address.
  • This is distinct from closed #9666, which handled OpenAI's 60-minute session rotation.

Determine whether transport creation/reconnect leaks sockets or retries without backoff; prove recovery leaves exactly one usable session and the UI actionable.

6. Telemetry noise recurrence

  • OMI-DESKTOP-15B — 2 .113 Session Heartbeat events / one sampled user.
  • Closed #9191 moved heartbeat telemetry out of unresolved Sentry issues. Exact-build recurrence means the remaining capture path or release inclusion should be verified.

Complete exact-release inventory

Counts are from the newest 100 events retrieved per group and filtered locally to exact release [email protected]+12113. ≥ means the Sentry page was capped; affected-user counts are also lower bounds for those rows.

Sentry Bucket Priority/status .113 events Sampled users Exact-release sample window Sanitized title
OMI-DESKTOP-2S5 desktop-error high/new ≥99 23 2026-07-23T16:26:26Z → 2026-07-23T18:30:02Z Desktop error
OMI-DESKTOP-F memory high/ongoing ≥62 4 2026-07-23T15:27:05Z → 2026-07-23T18:27:55Z Critical Memory Usage
OMI-DESKTOP-2 memory low/ongoing ≥60 49 2026-07-23T18:21:00Z → 2026-07-23T18:29:48Z Critical Memory Usage
OMI-DESKTOP-Y hang high/ongoing ≥32 15 2026-07-23T11:33:54Z → 2026-07-23T18:28:20Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-54 memory low/ongoing ≥29 3 2026-07-23T17:14:51Z → 2026-07-23T18:28:42Z Critical Memory Usage
OMI-DESKTOP-D realtime low/ongoing ≥22 5 2026-07-23T06:00:01Z → 2026-07-23T18:26:07Z RealtimeHub: session error — provider=gemini receive: POSIXErrorCode(rawValue: 49): Can't assign requested address
OMI-DESKTOP-1C hang high/ongoing 6 5 2026-07-23T07:42:46Z → 2026-07-23T17:53:51Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-25Q hang high/ongoing 5 4 2026-07-23T07:00:44Z → 2026-07-23T18:26:58Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-2DP hang high/ongoing 4 4 2026-07-23T13:47:28Z → 2026-07-23T18:25:13Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-15B lifecycle-noise low/ongoing ≥2 1 2026-07-23T17:39:31Z → 2026-07-23T18:23:16Z Session Heartbeat
OMI-DESKTOP-25M hang high/ongoing 2 2 2026-07-23T17:00:49Z → 2026-07-23T17:31:38Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-26E hang high/ongoing 2 1 2026-07-23T05:26:22Z → 2026-07-23T16:42:48Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-2K hang high/ongoing 2 2 2026-07-23T17:30:58Z → 2026-07-23T18:01:57Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-59 hang high/ongoing 2 1 2026-07-23T17:23:12Z → 2026-07-23T17:42:19Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-195 hang high/ongoing 1 1 2026-07-23T08:34:16Z → 2026-07-23T08:34:16Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-1AD hang high/ongoing 1 1 2026-07-23T18:20:01Z → 2026-07-23T18:20:01Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-1E hang high/ongoing 1 1 2026-07-23T17:02:16Z → 2026-07-23T17:02:16Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-1S hang high/ongoing 1 1 2026-07-23T17:40:52Z → 2026-07-23T17:40:52Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-1TD hang high/ongoing 1 1 2026-07-23T17:54:18Z → 2026-07-23T17:54:18Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-26R hang high/ongoing 1 1 2026-07-23T18:08:41Z → 2026-07-23T18:08:41Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-2B7 hang high/ongoing 1 1 2026-07-23T09:36:07Z → 2026-07-23T09:36:07Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-2E0 hang high/ongoing 1 1 2026-07-23T05:10:26Z → 2026-07-23T05:10:26Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-2V4 hang high/new 1 1 2026-07-23T07:57:27Z → 2026-07-23T07:57:27Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-2VJ hang high/new 1 1 2026-07-23T17:31:53Z → 2026-07-23T17:31:53Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-2VK hang high/new 1 1 2026-07-23T17:44:28Z → 2026-07-23T17:44:28Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-2VM main-thread-crash high/new 1 1 2026-07-23T18:02:34Z → 2026-07-23T18:02:34Z EXC_BREAKPOINT: BUG IN CLIENT OF LIBDISPATCH: Assertion failed: Block was expected to execute on queue [com.apple.main-thread (0x1eefee800)] > com.apple.main-thread > SwiftUI.SwiftUIMenu
OMI-DESKTOP-3W hang high/ongoing 1 1 2026-07-23T18:08:24Z → 2026-07-23T18:08:24Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-43 hang high/ongoing 1 1 2026-07-23T16:41:58Z → 2026-07-23T16:41:58Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-AC hang high/ongoing 1 1 2026-07-23T07:27:26Z → 2026-07-23T07:27:26Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-BX hang high/ongoing 1 1 2026-07-23T17:41:26Z → 2026-07-23T17:41:26Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-H hang high/ongoing 1 1 2026-07-23T05:07:08Z → 2026-07-23T05:07:08Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-J0 hang high/ongoing 1 1 2026-07-23T11:05:17Z → 2026-07-23T11:05:17Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-P3 hang high/ongoing 1 1 2026-07-23T08:13:28Z → 2026-07-23T08:13:28Z App Hanging: App hanging for at least 3000 ms.
OMI-DESKTOP-RT desktop-error high/ongoing 1 1 2026-07-23T17:17:11Z → 2026-07-23T17:17:11Z Desktop error
OMI-DESKTOP-W memory high/ongoing 1 1 2026-07-23T07:01:05Z → 2026-07-23T07:01:05Z App Auto-Restarting Due to Extreme Memory
OMI-DESKTOP-W6 hang high/ongoing 1 1 2026-07-23T15:09:19Z → 2026-07-23T15:09:19Z App Hanging: App hanging for at least 3000 ms.

Related prior work / dedupe

  • #8127 — closed hang/memory/Rewind investigation; exact .113 recurrence is included above.
  • #9666 — closed OpenAI session-duration rotation; not the Gemini POSIX-49 failure.
  • #9191 — closed heartbeat-noise repair; two exact .113 events remain.
  • No existing issue or PR matched .113 release health, OMI-DESKTOP-2S5, the SwiftUIMenu/libdispatch assertion, or Gemini POSIX 49.

Required outcome

  1. Restore root-cause-quality observability for OMI-DESKTOP-2S5: build 12113 dSYMs resolve, and generic Desktop error events carry bounded typed failure ownership without free-form user data.
  2. Classify the .113 hang and memory groups into actual owner boundaries; reopen/supersede Desktop: investigate app hangs, critical memory, and Rewind/FFmpeg encoder failures #8127 where recurrence proves its live closure condition is unmet.
  3. Fix the main-thread assertion and Gemini transport lifecycle with focused behavioral regressions.
  4. Remove the remaining heartbeat unresolved-event path.
  5. Verify in a published build containing the fixes: the targeted exact-release groups stop recurring or materially decline, without hiding unexpected failures or logging sensitive data.

Evidence method

  • Sentry project: omi-nk3/omi-desktop.
  • Group query: release:[email protected]+12113, 24h, newest-first, limit 100; returned 36 groups and was not group-list capped.
  • For every group, up to 100 recent events were fetched and locally filtered to the exact release tag; only aggregate counts, timestamps, mechanisms, and safe symbols were retained.
  • GitHub issues and PRs were searched by release, subsystem, and failure semantics before filing.

Activity

  1. added
    bug
    p1
    on Jul 23, 2026
  2. Git-on-my-level commented on Jul 23, 2026

    @Git-on-my-level
    MemberAuthor

    Sentry delta after the initial inventory

    Delta cutoff: 2026-07-23 18:52 UTC. Exact release filter: [email protected]+12113.

    Release-associated groups increased from 36 to 40. One newly surfaced failure is materially actionable; the other additions look like hang-group fragmentation.

    Actionable: Rewind OCR continuation double-resume

    • OMI-DESKTOP-2E1 — fatal SWIFT TASK CONTINUATION MISUSE in extractTextWithBounds(from:)
    • Exact .113 sample: 2 events / 2 users, 2026-07-23 18:30:54–18:34:17 UTC
    • Lifetime at delta check: 84 events / 43 users; unresolved, high priority
    • Sentry culprit: ProactiveAssistantsPlugin

    The source shows a concrete competing-completion race in desktop/macos/Desktop/Sources/Rewind/Core/RewindOCRService.swift:

    • The VNRecognizeTextRequest completion callback resumes the checked continuation on error at lines 189–192 (or returns a result later in the callback).
    • VNImageRequestHandler.perform can also synchronously throw and resume the same continuation at lines 244–247.
    • If Vision invokes the completion callback and perform also throws for the same request, the continuation is resumed twice and Swift traps.

    Required behavior: route both paths through one lock/actor-protected single-completion owner and leave a focused regression that deliberately exercises callback error plus synchronous perform failure. Do not downgrade to an unsafe continuation or suppress the trap without fixing ownership.

    Related historical PRs found during dedupe: #7952, #8131, #5895, #6948, #6540, and #6252. None specifically owns the checked-continuation double-resume.

    Newly associated hang groups

    These are small and currently look like additional leaf-frame fragmentation of the known hang cluster, not independent root causes:

    No new memory-pressure category, RealtimeHub failure type, or second SwiftUIMenu crash appeared in this delta.

  3. added a commit that references this issue on Jul 23, 2026
    a49db71
  4. added 2 commits that reference this issue on Sep 29, 2026
    7237626
    6eb3236
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

    bugdesktopmacOSp1performancereliabilitystability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions