You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Omi Desktop for Windows timeline shows dark blank screenshots after running for a few hours #10504
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.
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
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.
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.
Activity
fix(desktop): reopen Rewind capture when the display stream dies (#10504
fix(desktop): reopen Rewind capture when the display stream dies (#10504
kodjima33 commentedon Jul 25, 2026
Fixed by #10549 (merged to
mainaseba9598fff).Rewind opened one persistent
getUserMediadesktop 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 islive, reopens the stream on the track'sendedevent 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.Git-on-my-level commentedon Jul 29, 2026
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
getUserMediadesktop 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). Indesktop/windows/src/renderer/src/components/rewind/RewindCaptureHost.tsxthe capture loop now:live(isLive()returns true only when a track'sreadyState === 'live'), so a dead stream produces no more blank frames;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; andgenerationcounter 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.