fix: reopen capture cards that come up dark, and keep a week of logs - #311
Open
BernardJen wants to merge 1 commit into
Open
BernardJen wants to merge 1 commit into
BernardJen wants to merge 1 commit into
Conversation
The wall sometimes boots with an Elgato 4K60 Pro MK.2 showing black while a live source is plugged in, until someone restarts the app. The stream had opened fine and the wall has no no-signal references, so nothing noticed. - stream-health.js: per-side status from a frame counter, track state and a 32x18 luma thumbnail (open-failed / no-frames / stalled / ended / dark), with backoff for reopens. Counts frames rather than measuring motion, so a held slide is healthy (#159). - renderer: samples every 2s, reopens a card by releasing every side on it first (Chromium shares one capture session per device), retries device enumeration when none were found, and logs status changes plus a 10-minute baseline. - main: daily log file in <userData>/logs, 7 days kept, 20 MB/day cap, rate-limited; captures renderer console and process crashes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BernardJen
force-pushed
the
fix/capture-card-health
branch
from
September 23, 2026 20:58
ae79806 to
f9c1c92
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The wall (Windows 11, two PCIe Elgato 4K60 Pro MK.2 cards) sometimes boots with a card showing black while a live source is plugged in. Restarting the app fixes it: today it was started at 12:12:27 and restarted by hand at 12:22:35.
Nothing in the app noticed:
Changes
Capture-card health (
stream-health.js, sampled fromrenderer.jsevery 2s)open-failed/ended/no-frames/stalleddarkok(feat: detect a frozen feed (no motion), not just a known no-signal image #159). A feed only counts as stalled if frames were flowing first, so a static virtual camera isn't reopened in a loop.devicechangeevent retries a faulted side straight away.__health()in DevTools prints the current state.Persistent log (
src/main/file-log.js): writes<userData>/logs/input-viewer-YYYY-MM-DD.logand keeps 7 days. Limits are a 20 MB/day cap and 600 lines/min. It records main and renderer console output, renderer, GPU and utility process crashes, and the OS uptime at launch.The startup script (Mosaic, then Warp, then the cards, then Input Viewer) lives in
LAB271/labs-videowall-config, not in this repo.Testing
npm run lintis clean.npm test: 844 passed, 26 of them new (stream-health,file-log).--mock=2, driving it over the DevTools protocol:ended, reopened, back tookin about 1.8sdark, reopenedNot verified
darktrigger assumes a flat picture. The new log will say after the first bad boot.Deploying
The changes reach the wall through a release.
🤖 Generated with Claude Code