Skip to content

Bug: Omi Desktop for Windows timeline shows dark blank screenshots after running for a few hours #10504

Closed

Description

@hugoaap-code

Summary

On Omi Desktop for Windows, after the app has been running for a few hours, the timeline starts showing dark blank screenshots with no visible content.

Image

Problem

The app appears to keep running, but the timeline no longer captures usable screen content.

Instead of normal screenshots, the timeline shows dark or blank images with no meaningful content recorded.

Expected behavior

After running for hours, Omi Desktop should continue capturing normal screenshots with visible screen content in the timeline.

Actual behavior

After the app has been running for a few hours, timeline screenshots become dark and blank, and no actual content appears to be recorded.

Impact

This breaks long-running desktop capture sessions.

Even though the app may still appear active, the timeline becomes unusable because the screenshots no longer contain readable or meaningful content.

Suggested investigation

  • Check whether long-running Windows desktop sessions cause screenshot capture to fail silently
  • Check whether the app loses access to the display surface after running for several hours
  • Check whether the timeline is receiving blank frames while the app still thinks capture is active
  • Check logs for screenshot pipeline stalls, blank frame generation, GPU/display capture issues, or permission/state desync over time

Environment

  • Omi Desktop
  • Windows
  • Observed on Friday, July 24, 2026

Activity

  1. added
    bug
    on Jul 24, 2026
  2. kodjima33 commented on Jul 25, 2026

    @kodjima33
    Collaborator

    Fixed by #10549 (merged to main as eba9598fff).

    Rewind opened one persistent getUserMedia desktop stream and never watched the track's lifecycle, so when the OS tore the capture source down mid-session (display sleep, GPU/driver reset, resolution change) the sampler kept drawing the dead <video> — the blank/dark frames — and capture never came back. It now skips sampling while no video track is live, reopens the stream on the track's ended event after a 2s delay, and carries a generation on each scheduling chain so a grab in flight during teardown can't orphan a second sampling loop.

    Verified: vitest run src/renderer/src/components/rewind/ 13/13 pass; reverting the component change fails 2/3 of the new regression tests (frame still saved from the dead stream, no reopen). Not reproduced on a real multi-hour Windows session — please reopen if dark screenshots recur after the next Windows beta.

  3. Git-on-my-level commented on Jul 29, 2026

    @Git-on-my-level
    Member

    Closing as resolved. The reported symptom — the Windows timeline showing dark/blank screenshots after the app runs for a few hours — came from Rewind opening one persistent getUserMedia desktop stream and never noticing when the OS tore the capture source down (display sleep, GPU/driver reset, resolution change), so the sampler kept drawing the dead <video> and capture never came back.

    That can no longer occur at HEAD (1ef0976ef9). In desktop/windows/src/renderer/src/components/rewind/RewindCaptureHost.tsx the capture loop now:

    • skips every frame grab while no video track is live (isLive() returns true only when a track's readyState === 'live'), so a dead stream produces no more blank frames;
    • reopens the stream when the track fires ended, after a 2 s backoff (RESTART_DELAY_MS = 2000, onTrackEnded → stop() → setTimeout(start, …)), restoring capture instead of staying broken for the rest of the session; and
    • carries a generation counter on each scheduling chain so a grab in flight during teardown can't orphan a second sampling loop.

    Fix landed in #10549 (eba9598fff), present in the current tree.

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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions