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
[Medium] Frame-extraction ffmpeg calls have no timeout (can hang indefinitely) #14
Medium — a hung child process can block frame extraction indefinitely.
Location
electron/frames/extractor.ts:345 and :395 — both execFileAsync(ffmpegPath, [...], { maxBuffer: … }) calls pass only maxBuffer, with no timeout option.
Mechanism
If ffmpeg stalls (corrupt input, codec edge case, stuck pipe), the promise never settles and the extraction step hangs. Other spawns in the app do bound their runtime; these legacy ffmpeg calls don't.
Impact
Post-processing for a session can wedge, blocking the describer/analysis pipeline for that session.
Suggested fix
Add a timeout (and killSignal) to both execFileAsync option objects; on timeout, kill the child, clean up partial outputs (see the related partial-output cleanup low finding), and surface a failure.
Regression test to add (npm test)
Extend electron/frames/extractor.test.ts with a fake/stub ffmpeg binary that never exits; assert the call rejects within the timeout and the child is killed. Deterministic; not covered by evals/.
Fixed by #69, now merged into release/0.6.0. Rather than add timeout and cleanup machinery, 0.6.0 removes the legacy system-ffmpeg fallback entirely. Captured-frame manifests have shipped in every tagged release since v0.1.0, so this eliminates the hung-process path without dropping compatibility for a released recording format. The deletion also resolves the partial-output concern tracked as #11 L6.
Activity
adilei commentedon Aug 24, 2026
Fixed by #69, now merged into
release/0.6.0. Rather than add timeout and cleanup machinery, 0.6.0 removes the legacy system-ffmpeg fallback entirely. Captured-frame manifests have shipped in every tagged release since v0.1.0, so this eliminates the hung-process path without dropping compatibility for a released recording format. The deletion also resolves the partial-output concern tracked as #11 L6.