Skip to content

fix: stop untransformed receive paths and preserve executor context - #567

Merged
devopvoid merged 2 commits into
mainfrom
fix/receive-transform-executor-race
Nov 7, 2026
Merged

devopvoid merged 2 commits into
mainfrom
fix/receive-transform-executor-race

Conversation

@devopvoid

@devopvoid devopvoid commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

A receive-transform installation failure currently reports an error but still publishes the track and leaves the native receive path running. Stop the affected transceiver before releasing its wrappers, omit the rejected track from current tracks and event delivery, and close the peer if the receive path cannot be stopped. Document this behavior in the builder and client guide.

Replace SerialExecutor's shared runner field with a thread-local marker so an idle turn cannot clear another thread's active marker. This preserves immediate handler registration from event callbacks during the handoff between turns.

Add regression coverage for failed receive-transform installation and a deterministic two-thread idle handoff. The receive-path case also checks that an unrelated transceiver remains active and late subscribers cannot replay the rejected track.

Make the transform-test media fixtures use VP8 on every platform, following TestMediaCall, and initialize both chroma planes. This removes platform codec selection and uninitialized input from tests that exercise transform delivery and key-frame requests; macOS ARM64 CI timed out waiting for the initial encoded frames with the previous fixture.

@devopvoid
devopvoid merged commit 7ba398d into main Nov 7, 2026
26 checks passed
@devopvoid
devopvoid deleted the fix/receive-transform-executor-race branch November 7, 2026 23:07
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.

1 participant