Closed Bug 1570077 Opened 5 years ago Closed 5 years ago

Crash when turning off the default microphone during a WebRTC meeting

Categories

(Core :: Audio/Video: cubeb, defect, P2)

70 Branch
Unspecified
macOS
defect

Tracking

()

RESOLVED FIXED
Tracking Status
firefox70 --- affected

People

(Reporter: chunmin, Assigned: chunmin)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(1 obsolete file)

Problem

Step to reproduce

  1. Connect your Bluetooth microphone to the mac OS
  2. Set it to the default input device
  3. Open Firefox Nightly
  4. Open about:config
  5. Create a "media.cubeb.backend" pref and set it to "audiounit-rust" in about:config
    • Optional: set "media.cubeb.logging_level" to "verbose" to see the log
  6. Open WebRTC meeting room (e.g., https://appear.in/)
  7. Disconnect your Bluetooth microphone to the mac OS during the WebRTC meeting

Expected Result

The WebRTC continue working after disconnecting the Bluetooth microphone

Actual Result

Get a crash

Crash LOG

[Child 18834: Unnamed thread 0x18eeb4ff0]: E/cubeb media/libcubeb/cubeb-coreaudio-rs/src/backend/mod.rs:673: (0x18cd52800) Device switching, pushed 512 frames of input silence.
Assertion failed: (out_len == output_frame_count), function output, file /Users/cchang/Work/gecko/media/libcubeb/src/cubeb_resampler_internal.h, line 257.
See Also: → 1570080
Depends on: 1570446
Attachment #9081803 - Attachment description: Bug 1570077 - Calculate input_frames for duplex stream after counting missing frames. r?padenot → Bug 1570446 - P2: Update cubeb-coreaudio-rs to version 7a25242. r?padenot

Comment on attachment 9081803 [details]
Bug 1570446 - P2: Update cubeb-coreaudio-rs to version 7a25242. r?padenot

Revision D39979 was moved to bug 1570446. Setting attachment 9081803 [details] to obsolete.

Attachment #9081803 - Attachment is obsolete: true

The fix is reviewed and merged in https://github.com/ChunMinChang/cubeb-coreaudio-rs/pull/3
The changes will be imported by bug 1570446.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Summary: Crash when turning off the Bluetooth microphone during a WebRTC meeting → Crash when turning off the default microphone during a WebRTC meeting
Has Regression Range: --- → yes
Keywords: regression
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: