Closed Bug 1894331 Opened 2 years ago Closed 2 years ago

Assertion failure: aRate != 0 (Can't create an AudioData with a sample-rate of 0.), at /dom/media/MediaData.cpp:57

Categories

(Core :: Audio/Video: Playback, defect)

x86_64
Linux
defect

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox126 --- wontfix
firefox127 --- wontfix
firefox128 --- fixed

People

(Reporter: truber, Assigned: az)

References

Details

(Keywords: assertion, testcase)

Attachments

(4 files)

The attached testcase crashes on mozilla-central revision 20240430-0c6cd807867d.

For detailed crash information, see attachment.

To reproduce the issue, you can run the testcase through the "MediaDataDecoder.VP9" gtest. Example STR:

  1. Change into objdir/dist/bin of your Firefox build
  2. Place attached testcase into objdir, keep the name "vp9cake.webm"
  3. Run: GTEST_FILTER=MediaDataDecoder.VP9 MOZ_RUN_GTEST=1 ./firefox -unittest
Attached file Testcase

A re3gression range would be helpful.

Flags: needinfo?(padenot)

Ashley, see https://pernos.co/debug/mkUhOa9hyFjtTKz0sLFU1w/index.html#f{m[DM4,By9k_,t[Fg,BFz9_,f{e[DAk,SEk_,s{aeDY4YAAA,bAZM,uHRKZ3A,oHRhhLw___/, the if statement to reject the rate is comparing floats, and then we're casting it to integer at the line the trace is at, can you harmonize this?

I think we always want a rate that is zero to error out here. It's not going to be problematic (because it is going to cause an error later in the pipeline), but it's always good to catch errors early.

Flags: needinfo?(padenot) → needinfo?(azebrowski)
Assignee: nobody → azebrowski
Status: NEW → ASSIGNED
Pushed by azebrowski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/62e9e36b1d94 Part 1: Fix audio sample rate sanity check in WebMDemuxer r=padenot https://hg.mozilla.org/integration/autoland/rev/bcf84db0ae30 Part 2: Add invalid audio sample rate crashtest for WebMDemuxer r=padenot
Pushed by azebrowski@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/c2d0399cc295 Part 1: Fix audio sample rate sanity check in WebMDemuxer r=padenot https://hg.mozilla.org/integration/autoland/rev/66547247ad95 Part 2: Add invalid audio sample rate crashtest for WebMDemuxer r=padenot
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Flags: needinfo?(azebrowski)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: