Skip to content

Desktop: investigate app hangs, critical memory, and Rewind/FFmpeg encoder failures #8127

Closed

Description

@Git-on-my-level

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:

Related Rewind/VideoChunkEncoder issues:

Sampled app-hang events were across production Desktop releases and multiple Mac device families. No user-identifying event details are included here.

Suggested investigation

  1. Treat the app-hang issues as one cluster and inspect representative stack traces for OMI-DESKTOP-Y plus several new hang variants.
  2. Correlate hang/memory events with Rewind/FFmpeg/VideoChunkEncoder errors in the same release window.
  3. Check for main-thread work, unbounded frame queues, encoder lifecycle races, or retry/reset loops.
  4. Add safe metrics around frame queue depth, encoder restart count, memory pressure, and capture/encoding state.
  5. 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.
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

    bugdesktopmacOSp1performancestability

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions