Skip to content

Diagnostics for the screen-share black flash - #291

Open
iamfatness wants to merge 1 commit into
mainfrom
diag/share-black-flash
Open

iamfatness wants to merge 1 commit into
mainfrom
diag/share-black-flash

Conversation

@iamfatness

Copy link
Copy Markdown
Owner

Field reports from one Mac and one Windows operator (v0.1.49): a Screen Share source goes black, and the image comes back about once a second. When the shared screen is still, Zoom drops share delivery to about 1 fps, so the black sits between frames.

Live repro attempt (2026-11-14, Windows, this build): a plain desktop share reached OBS cleanly at 1920x1080 and 1–11 fps. There were no dark frames from the SDK or from the plugin, and none in 35,083 OBS source screenshots, across scene switches, hide/show, forced recovery and Retry Media ×2. The trigger appears to be specific to the sharer, so this PR adds instrumentation that locates the black on the next occurrence. Diagnostics only; no behaviour change.

  • src/share-frame-diag.h: one dark-frame classifier shared by both sides, with a host test (CoreVideoShareFrameDiag).
  • Engine (Windows engine-share.cpp, macOS share_on_frame): share_frame_dark/_dark_end, share_frame_gap (≥1 s between SDK frames), share_frame_format (size or limited-range change).
  • Plugin: Share dark frame published/run ended and Share frame size, for ScreenShare sources only.

How to read a bundle: dark in the engine means Zoom delivered it. Dark only in the plugin means our code introduced it. Neither, while the operator sees black, means it's in OBS rendering.

Also measured: share frames arrive limited range, and the share path doesn't expand them the way the camera path does. That washes a share out rather than blackening it; it's noted in CLAUDE.md as a separate fix.

Tested: local Windows Release build, ctest 86/86. The macOS engine change compiles only in CI here.

🤖 Generated with Claude Code

Field reports (Mac and Windows, v0.1.49): Screen Share sources go black
and the image returns about once a second. A live repro on 2026-11-14
with a plain desktop share showed no dark frames anywhere, so this adds
the instrumentation that locates the black on the next occurrence:

- src/share-frame-diag.h: one dark-frame classifier, host-tested.
- Engine (Windows and macOS): share_frame_dark/_dark_end, share_frame_gap
  (>=1 s between SDK frames), share_frame_format.
- Plugin: Share dark frame published / run ended, Share frame size,
  for ScreenShare sources only.

Diagnostics only; no behaviour change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread src/zoom-source.cpp
void ZoomSource::log_share_frame_diag(uint32_t src_w, uint32_t src_h,
const uint8_t *obs_y, uint32_t obs_w,
uint32_t obs_h, uint32_t obs_stride,
uint64_t now_ns, uint32_t participant,

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants