Repository navigation
Closed
Description
Summary
Omi Desktop has a large active Sentry cluster around app hangs, critical memory usage, and Rewind/FFmpeg/video encoder failures. Sentry appears to split many app hangs by leaf function, so this should be investigated as a subsystem/memory-pressure problem rather than as dozens of independent bugs.
Evidence from Sentry
Query used: omi-nk3/omi-desktop, unresolved production activity.
High-volume hang/memory issues:
OMI-DESKTOP-Y—App Hanging: App hanging for at least 3000 ms.- 138,983 events / 1,511 users
- First seen: 2026-03-22T08:09:30Z
- Last seen at triage: 2026-06-22T22:38:07Z
- Sentry: https://omi-nk3.sentry.io/issues/7355327900/
OMI-DESKTOP-F—Critical Memory Usage- 17,235 events / 216 users
- Sentry: https://omi-nk3.sentry.io/issues/7355205863/
Related Rewind/VideoChunkEncoder issues:
OMI-DESKTOP-2G— VideoChunkEncoder: too many write failures / emergency reset- 33,172 events / 262 users
- Sentry: https://omi-nk3.sentry.io/issues/7356612370/
OMI-DESKTOP-2F— VideoChunkEncoder: emergency reset, dropping frames to prevent memory leak- 33,411 events / 272 users
- Sentry: https://omi-nk3.sentry.io/issues/7356612210/
- New smaller cluster:
OMI-DESKTOP-2A6— failed to start ffmpeg: POSIX bad address — 2 events / 2 usersOMI-DESKTOP-2A7— Rewind CGImage frame: POSIX bad address — 2 events / 2 usersOMI-DESKTOP-2A8— RewindIndexer: FFmpeg not ready — 5 events / 2 usersOMI-DESKTOP-2A9— VideoChunkEncoder: FFmpeg not ready — 4 events / 2 users
Sampled app-hang events were across production Desktop releases and multiple Mac device families. No user-identifying event details are included here.
Suggested investigation
- Treat the app-hang issues as one cluster and inspect representative stack traces for
OMI-DESKTOP-Yplus several new hang variants. - Correlate hang/memory events with Rewind/FFmpeg/VideoChunkEncoder errors in the same release window.
- Check for main-thread work, unbounded frame queues, encoder lifecycle races, or retry/reset loops.
- Add safe metrics around frame queue depth, encoder restart count, memory pressure, and capture/encoding state.
- Consider Sentry grouping/fingerprinting for app hangs so one root cause does not become dozens of leaf-function issues.
Acceptance criteria
- App-hang and critical-memory events decrease materially for users with Rewind/screen capture enabled.
- VideoChunkEncoder emergency resets / FFmpeg-not-ready loops are bounded and recover cleanly.
- Sentry grouping distinguishes actionable hang roots without flooding triage with leaf-function variants.
- No raw screenshots, OCR, user text, or local paths are logged to Sentry or GitHub while debugging.
Activity
fix(desktop): retry ffmpeg start cleanly on failure in VideoChunkEnco…
chore(desktop): changelog for ffmpeg start retry fix (#8127)
fix(desktop): retry ffmpeg start cleanly on failure in VideoChunkEnco…
Add desktop Rewind encoder diagnostics and bounds (#8150)