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)
Tracking
()
RESOLVED
DUPLICATE
of bug 1256520
People
(Reporter: thomastortorini, Assigned: jwwang)
References
()
Details
(Keywords: crash, regression, testcase, Whiteboard: [dupme])
Crash Data
Attachments
(1 file)
|
5.52 KB,
text/plain
|
Details |
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.
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
Blocks: 1196112
Keywords: regression
Comment 2•10 years ago
|
||
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
status-firefox45:
--- → affected
status-firefox46:
--- → ?
status-firefox47:
--- → ?
status-firefox48:
--- → unaffected
Flags: needinfo?(thomastortorini)
Priority: -- → P2
Updated•10 years ago
|
Updated•10 years ago
|
Has STR: --- → yes
Comment 3•10 years ago
|
||
From frame 1:
(gdb) p CycleCollectedJSRuntime::Get()
$6 = (mozilla::CycleCollectedJSRuntime *) 0x0
Comment 4•10 years ago
|
||
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
Comment 6•10 years ago
|
||
MediaStream::Destroy() is called from ~DecodedStreamData() on the wrong thread.
There is another similar report somewhere.
Whiteboard: [dupme]
Updated•10 years ago
|
Component: Web Audio → Audio/Video: Playback
| Assignee | ||
Comment 7•10 years ago
|
||
(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)
| Assignee | ||
Comment 8•10 years ago
|
||
I can reproduce the crash on Linux, but the stack trace looks different.
Flags: needinfo?(rjesup)
Comment 9•10 years ago
|
||
JW -- This is flagged as a carryover regression (starting in Fx44). Can you take this one?
Flags: needinfo?(jwwang)
| Assignee | ||
Comment 10•10 years ago
|
||
(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.
Updated•10 years ago
|
Priority: P2 → P1
| Assignee | ||
Comment 11•10 years ago
|
||
Hi Thomas,
Since bug 1256520 is fixed, can you try again to see if the crash is still present? Thanks!
| Reporter | ||
Comment 12•10 years ago
|
||
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)
Comment 13•10 years ago
|
||
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.
| Reporter | ||
Comment 14•10 years ago
|
||
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!!
| Assignee | ||
Comment 15•10 years ago
|
||
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.
Comment 16•10 years ago
|
||
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
Comment 17•10 years ago
|
||
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.
Description
•