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
Desktop: ProactiveAssistants frame backpressure can cause 2-3GB memory spikes #5791
When OCR processing is slow (e.g., during video calls with Zoom detected), the screen capture pipeline continues capturing at 1 FPS while frames pile up in memory. The isProcessingRewindFrame + droppedFrameCount tracking exists but there's no hard limit on the backpressure queue.
Impact
App memory can spike to 2-3GB during video calls
App becomes unresponsive, may OOM crash
videoCallThrottleFactor = 5 helps but is hardcoded with no user control
Suggested Fix
Add a max frame buffer size (e.g., 10 frames) — drop oldest when exceeded
Consider user-configurable capture frequency
Add memory pressure monitoring to auto-reduce capture rate
Context
Found during desktop friction exploration (PR #5790, collab/desktop-friction-exploration branch).
Activity
fix: add memory pressure guard to prevent OOM during heavy OCR load
fix: add hard frame buffer cap to prevent multi-GB memory spikes (#5791)
fix: add hard frame buffer cap and memory pressure guard to prevent m…
fix: add memory pressure guard to prevent OOM from frame backpressure (…
fix: add hard frame buffer cap to prevent memory spikes (#5791)
fix: add memory pressure guard to prevent OOM from frame backpressure (…
fix: add hard frame buffer cap to prevent memory spikes (#5791)
fix: add memory pressure guard and autoreleasepool for frame capture (f…
fix(desktop): cap ProactiveAssistants frame buffer to prevent memory …
fix(desktop): cap ProactiveAssistants frame buffer to prevent memory …
beastoin commentedon May 10, 2026
Addressed by merged PR(s): #5790