Closed Bug 1249540 Opened 10 years ago Closed 10 years ago

Setting (a lot) currentTime after using createMediaElementSource makes Firefox crash.

Categories

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

44 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1256520
Tracking Status
firefox45 --- wontfix
firefox46 --- wontfix
firefox47 --- wontfix
firefox48 --- fixed

People

(Reporter: thomastortorini, Assigned: jwwang)

References

()

Details

(Keywords: crash, regression, testcase, Whiteboard: [dupme])

Crash Data

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.109 Safari/537.36 Steps to reproduce: I have summarize the bug with this code: https://gist.github.com/Mr21/e276cf583fa78b50acdf I have made a minimal online demo here: http://thomastortorini.free.fr/bug-currenttime/ Firefox crash when we are calling a lot video.currentTime = x; IF we are also using the WebAudio API by creating a MediaElementAudioSourceNode by calling createMediaElementSource(). The value passing to currentTime is correctly in the range of the duration. Actual results: A crash Expected results: With my script, there is nothing to listen, but the cursor of the default controls should go madly everywhere.
Keywords: crash
Severity: normal → critical
Status: UNCONFIRMED → NEW
Crash Signature: [@ nsTArray_Impl<T>::AppendElement<T> | nsContentUtils::RunInStableState ]
Component: Untriaged → Web Audio
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
Can you try it on Nightly (FF 48)? https://nightly.mozilla.org/ It crashes for me in 45 on windows, but not in 48 on windows or linux. I did manage to crash it on an (old) Aurora 46 (which is not in beta) on linux (stack attached). May be Audio/Video : mediaStreamGraph, not webaudio A fix may need to be uplifted...
Rank: 25
Flags: needinfo?(thomastortorini)
Priority: -- → P2
Has STR: --- → yes
From frame 1: (gdb) p CycleCollectedJSRuntime::Get() $6 = (mozilla::CycleCollectedJSRuntime *) 0x0
Attached file stack
Note: in MediaPlayback thread
I still see the crashes in Fx46~48.0a1 (2016-03-10): bp-98e7fbc2-00cc-410a-9be2-7526f2160312. But sometimes I can't reproduce it with the same version and clean profile.
Has Regression Range: --- → yes
MediaStream::Destroy() is called from ~DecodedStreamData() on the wrong thread. There is another similar report somewhere.
Whiteboard: [dupme]
Component: Web Audio → Audio/Video: Playback
(In reply to Randell Jesup [:jesup] from comment #4) > Created attachment 8729705 [details] > stack > > Note: in MediaPlayback thread Is it reproducible on Linux?
Flags: needinfo?(rjesup)
I can reproduce the crash on Linux, but the stack trace looks different.
Flags: needinfo?(rjesup)
JW -- This is flagged as a carryover regression (starting in Fx44). Can you take this one?
Flags: needinfo?(jwwang)
(In reply to JW Wang [:jwwang] from comment #8) > I can reproduce the crash on Linux, but the stack trace looks different. Open bug 1256520 to deal with the crash first.
Assignee: nobody → jwwang
Depends on: 1256520
Flags: needinfo?(jwwang)
Hi Thomas, Since bug 1256520 is fixed, can you try again to see if the crash is still present? Thanks!
Hi :) I've updated my classique Firefox to 45.0.1 and my small crash-page makes him still crash like before (instantly). But on the 47.0a2(2016-03-28) version of Firefox Developer Edition it's work fine! But at the begining, I discover this bug by coding this app: http://fileplayer.github.io/ In my code, I update the currentTime at each mousemove when you are clicking the position slider. And it's still possible to make him crash by moving a lot the slider. the default player of firefox updates the currentTime only on the mouseup event, it's why no bug appears on it (I suppose). Anyway, thanks you for making Firefox great, do you want me to test another version?
Flags: needinfo?(thomastortorini)
Thomas, I believe you'd have to test with a Nightly build. They are available for all platforms at https://nightly.mozilla.org, and has all the most recent patches that have landed in Firefox.
Hi Paul :) On Firefox Nightly 48.0a1(2016-03-29) I can not reproduce the bug, the crash-page doesn't crash anymore, and there is no more problem with my application. So, it's seem to be okay! Well done!!
Since there isn't much we can do about 45 which is already released, the best we can do is uplift bug 1256520 to beta(46) so you can have the fix in next release as soon as possible.
Given JW's comment above (Comment15), I'm marking this bug as a dup of Bug 1256520 since 1256520 is where the fix landed and where the uplift conversations are happening.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Updating the flags to match the bug that this is a dup of.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: