Skip to content

Fix SIGBUS in camera capturer on macOS 26#1017

Open
pblazej wants to merge 2 commits into
mainfrom
blaze/macos-capturer-crash
Open

Fix SIGBUS in camera capturer on macOS 26#1017
pblazej wants to merge 2 commits into
mainfrom
blaze/macos-capturer-crash

Conversation

@pblazej
Copy link
Copy Markdown
Contributor

@pblazej pblazej commented May 25, 2026

On macOS 26, two crash sites in the Swift ↔ ObjC completion-handler bridge hit EXC_BAD_ACCESS on continuation resume:

  • Camera (#1016) — the compiler-synthesized async overload of LKRTCCameraVideoCapturer's start/stopCapture crashes; fixed by calling the completion-handler form directly through withCheckedContinuation.
  • Mic / set(source:enabled:) (#1022) — the @objcMembers-synthesized completion-handler bridge on LocalParticipant.set* crashes; fixed by marking the affected async methods @nonobjc (same pattern documented on Room.cleanUp).

Closes #1016, #1022.

🤖 Generated with Claude Code

The compiler-synthesized async overload of LKRTCCameraVideoCapturer's
start/stopCapture crashes with EXC_BAD_ACCESS on macOS 26 (see #1016).
Calling the completion-handler form directly via withCheckedContinuation
sidesteps the failing auto-bridge.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The `@objcMembers`-synthesized completion-handler bridge SIGBUSes on
macOS 26 for the same reason as #1016: the auto-generated continuation
plumbing is incompatible with the macOS 26 Swift Concurrency runtime.
Closes #1022.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

Camera publish SIGBUS in UnsafeContinuation.resume from LKRTCCameraVideoCapturer completion on macOS 26.1

1 participant