Closed Bug 878014 Opened 11 years ago Closed 11 years ago

WebAudio Assertion failure: readPosition >= 0.0 (Why are we reading before the beginning of the buffer?) [@mozilla::dom::DelayNodeEngine::ProduceAudioBlock]

Categories

(Core :: Web Audio, defect)

x86_64
macOS
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla24
Tracking Status
firefox21 --- unaffected
firefox22 --- disabled
firefox23 --- disabled
firefox24 --- fixed
firefox-esr17 --- unaffected
b2g18 --- unaffected

People

(Reporter: posidron, Assigned: ehsan.akhgari)

References

Details

(4 keywords, Whiteboard: [adv-main24-])

Attachments

(3 files)

Attached file testcase
The testcase will crash with an assertion failure in a debug build. In a non debug build, the testcase exposes the same crash as in bug 877523 for which a patch has been checked in with rev e12be295c0b1.

content/media/webaudio/DelayNode.cpp:215

    // Write the input sample to the correct location in our buffer
    if (input) {
*     buffer[writeIndex] = input[i] * aInput.mVolume;
    }


Tested with http://hg.mozilla.org/integration/mozilla-inbound/rev/db7a405f0a45
Attached file callstack
(In reply to Christoph Diehl [:cdiehl] from comment #0)
> The testcase will crash with an assertion failure in a debug build. In a non
> debug build, the testcase exposes the same crash as in bug 877523 for which
> a patch has been checked in with rev e12be295c0b1.

Sure, this bug is very different than bug 877523.  And FWIW after I fix this there may still be more bugs in this code!  ;-)
Attached patch Patch (v1)Splinter Review
Assignee: nobody → ehsan
Status: NEW → ASSIGNED
Attachment #756710 - Flags: review?(roc)
https://hg.mozilla.org/mozilla-central/rev/9bcaba8046ee
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
Mass moving Web Audio bugs to the Web Audio component.  Filter on duckityduck.
Component: Video/Audio → Web Audio
Whiteboard: [adv-main24-]
Group: core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: