Closed Bug 1952396 Opened 1 year ago Closed 1 year ago

Debug-only logging tab-crash in getUserMedia playback with MOZ_LOG=MediaManager:5

Categories

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

defect

Tracking

()

VERIFIED FIXED
140 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- unaffected
firefox136 --- wontfix
firefox137 --- wontfix
firefox138 --- wontfix
firefox139 --- wontfix
firefox140 --- verified

People

(Reporter: jib, Assigned: jib)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

STR:

  1. In about:logging, set Log Modules to "MediaManager:5"
  2. Open https://jan-ivar.github.io/dummy/gum_video.html

Expected result:

  • camera self view video playing

Actual result:

[50028] Assertion failure: mIsValid (Invalid checked integer (division by zero or integer overflow)), at /Users/jan-ivar/moz/mozilla-unified/obj-aarch64-apple-darwin23.6.0-debug/dist/include/mozilla/CheckedInt.h:562
#01: mozilla::CheckedInt<long long>::value() const[/Users/jan-ivar/moz/mozilla-unified/obj-aarch64-apple-darwin23.6.0-debug/dist/NightlyDebug.app/Contents/MacOS/XUL +0x13e0474]
#02: mozilla::media::TimeUnit::ToCommonUnit(long long) const[/Users/jan-ivar/moz/mozilla-unified/obj-aarch64-apple-darwin23.6.0-debug/dist/NightlyDebug.app/Contents/MacOS/XUL +0x84ece58]
#03: mozilla::media::TimeUnit::ToMicroseconds() const[/Users/jan-ivar/moz/mozilla-unified/obj-aarch64-apple-darwin23.6.0-debug/dist/NightlyDebug.app/Contents/MacOS/XUL +0x84ed010]
#04: mozilla::MediaEngineRemoteVideoSource::DeliverFrame(unsigned char*, mozilla::camera::VideoFrameProperties const&)[/Users/jan-ivar/moz/mozilla-unified/obj-aarch64-apple-darwin23.6.0-debug/dist/NightlyDebug.app/Contents/MacOS/XUL +0x8f97024]
#05: mozilla::camera::CamerasChild::RecvDeliverFrame(int const&, mozilla::ipc::Shmem&&, mozilla::camera::VideoFrameProperties const&)[/Users/jan-ivar/moz/mozilla-unified/obj-aarch64-apple-darwin23.6.0-debug/dist/NightlyDebug.app/Contents/MacOS/XUL +0x8c94eac]

Set release status flags based on info from the regressing bug 1908245

Summary: Debug-only logging crash in getUserMedia playback with MOZ_LOG=MediaManager:5 → Debug-only logging tab-crash in getUserMedia playback with MOZ_LOG=MediaManager:5
Attachment #9470405 - Attachment description: Bug 1952396 - avoid logging crash with MOZ_LOG=MediaManager:5 and camera playback in debug build. → Bug 1952396 - Remove processingDuration from local camera videoframes. r?pehrsons
Pushed by jbruaroey@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ab6f21d57db1 Remove processingDuration from local camera videoframes. r=webrtc-reviewers,ng,pehrsons
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch

The patch landed in nightly and beta is affected.
:jib, is this bug important enough to require an uplift?

For more information, please visit BugBot documentation.

Flags: needinfo?(jib)
Flags: needinfo?(jib)
QA Whiteboard: [qa-triage-done-c141/b140] [qa-verif-needed-c141/b140]
Flags: qe-verify+
QA Whiteboard: [qa-triage-done-c141/b140] [qa-verif-needed-c141/b140] → [qa-triage-done-c141/b140] [qa-ver-needed-c141/b140]
QA Contact: mchiorean

I am not able to reproduce the issue on Win11/Ubuntu 24.04 using Firefox builds 137.0 and 138.0 and steps from description, for me the camera always opens without errors.
Jan-Ivar, is there something that I am missing? I need to reproduce the issue in order to confirm the fix. Thank you.

Flags: needinfo?(jib)

It only happens in DEBUG builds.

Flags: needinfo?(jib)

I was able to reproduce the issue on Win11x64 using Firefox build 138.0a1 debug build, tab crashed.
Verified that on Win11x64 using Firefox debug build 140.0b5 the camera opens.

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-triage-done-c141/b140] [qa-ver-needed-c141/b140] → [qa-triage-done-c141/b140] [qa-ver-done-c141/b140]
Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: