Closed Bug 1185192 Opened 5 years ago Closed 5 years ago

Assertion failure: "Invalid AudioContextState transition" with mozCaptureStreamUntilEnded

Categories

(Core :: Web Audio, defect, critical)

defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla42
Tracking Status
firefox42 --- fixed

People

(Reporter: jruderman, Assigned: padenot)

Details

(Keywords: assertion, testcase)

Attachments

(3 files)

Attached file testcase
> Assertion failure: (mAudioContextState == AudioContextState::Suspended && aNewState == AudioContextState::Running) || (mAudioContextState == AudioContextState::Running && aNewState == AudioContextState::Suspended) || (mAudioContextState == AudioContextState::Running && aNewState == AudioContextState::Closed) || (mAudioContextState == AudioContextState::Suspended && aNewState == AudioContextState::Closed) || (mAudioContextState == aNewState) (Invalid AudioContextState transition), at dom/media/webaudio/AudioContext.cpp:800

(Same assertion as bug 1185191, but a different testcase, and a different invalid transition.)
Attached file stack
I'm having troubles to repro, but that must be because we're closing the context because we're unloading the document, but we receive the running message because we've started the audio thread. I'll come up with a patch for this theory.

Jesse, thanks for the added gdb trace, that's very helpful !
Assignee: nobody → padenot
Status: NEW → ASSIGNED
https://hg.mozilla.org/mozilla-central/rev/d052e4b15af4
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in before you can comment on or make changes to this bug.