Closed
Bug 1315521
Opened 8 years ago
Closed 8 years ago
Crash in mozilla::dom::HTMLMediaElement::NotifyAudioPlaybackChanged
Categories
(Core :: Audio/Video: Playback, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla52
Tracking | Status | |
---|---|---|
firefox50 | --- | unaffected |
firefox51 | --- | unaffected |
firefox52 | --- | fixed |
People
(Reporter: martin, Assigned: alwu)
References
Details
(Keywords: crash, crashreportid, regression, Whiteboard: [fixed by bug 1315551])
Crash Data
Attachments
(1 file)
This bug was filed from the Socorro interface and is
report bp-9687fb6f-e289-4f4b-99ad-1660c2161106.
=============================================================
Crash happens about a minute after Firefox 52 Nightly starts, regardless of whether there is user action or not.
No audio playing in the tab that loads.
Updated•8 years ago
|
Keywords: crash,
crashreportid
Comment 1•8 years ago
|
||
Here is the link to the crashes on nightly: http://bit.ly/2fsByoE. Not sure if this belongs in the Core|Audio component but will leave it here for now.
Crashes started with 20161105030211 build.
Updated•8 years ago
|
Component: General → Audio/Video: Playback
Product: Firefox → Core
Comment 2•8 years ago
|
||
Based on the top frame of the stack, this looks like it could be a regression from bug 1302350, though it looks like that might have been in the 11-04 build first. Can you look into this, Alastor? Thanks.
Flags: needinfo?(alwu)
Assignee | ||
Updated•8 years ago
|
Assignee: nobody → alwu
Flags: needinfo?(alwu)
![]() |
||
Updated•8 years ago
|
Crash Signature: [@ mozilla::dom::HTMLMediaElement::NotifyAudioPlaybackChanged] → [@ mozilla::dom::HTMLMediaElement::NotifyAudioPlaybackChanged]
[@ mozilla::dom::AudioChannelAgent::IsPlayingStarted]
[@ mozilla::dom::HTMLMediaElement::IsAllowedToPlay]
[@ mozilla::dom::HTMLMediaElement::AudioCaptureStreamChangeIfNeeded]
Assignee | ||
Comment 7•8 years ago
|
||
Already found the possible root cause, testing now...
Updated•8 years ago
|
Priority: -- → P1
Comment hidden (mozreview-request) |
Comment 9•8 years ago
|
||
mozreview-review |
Comment on attachment 8808450 [details]
Bug 1315521 - remove CC for audio channel agent.
https://reviewboard.mozilla.org/r/91256/#review91094
Attachment #8808450 -
Flags: review?(jwwang) → review+
Assignee | ||
Comment 10•8 years ago
|
||
Comment 11•8 years ago
|
||
Pushed by alwu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/87b698764664
remove CC for audio channel agent. r=jwwang
Comment 12•8 years ago
|
||
Backed out in https://hg.mozilla.org/integration/autoland/rev/ab0995a0dc10 - apparently Jetpack depends on that, so you wound up causing https://treeherder.mozilla.org/logviewer.html#?job_id=6286030&repo=autoland
Comment 13•8 years ago
|
||
The audio agent has a strong reference to the outer window, which has a strong reference to the inner window, which can hold alive the media element, which has a strong reference to the audio agent. That's probably the cycle that is causing the leak.
Assignee | ||
Updated•8 years ago
|
Crash Signature: [@ mozilla::dom::HTMLMediaElement::NotifyAudioPlaybackChanged]
[@ mozilla::dom::AudioChannelAgent::IsPlayingStarted]
[@ mozilla::dom::HTMLMediaElement::IsAllowedToPlay]
[@ mozilla::dom::HTMLMediaElement::AudioCaptureStreamChangeIfNeeded] → [@ mozilla::dom::HTMLMediaElement::NotifyAudioPlaybackChanged]
[@ mozilla::dom::AudioChannelAgent::IsPlayingStarted]
[@ mozilla::dom::HTMLMediaElement::IsAllowedToPlay]
[@ mozilla::dom::HTMLMediaElement::AudioCaptureStreamChangeIfNeeded]
[@ mozilla:…
Assignee | ||
Comment 15•8 years ago
|
||
The possible root cause is UAF, and we have two different solutions. One is "remove CC for audio channel agent", and another is "check whether the agent exist before calling agent's method".
I tried to use the first one to solve this bug, but it got the leaking problem. However, in the bug1315551, I have another patch which is similar with the second solution and it was landed into m-c now.
Therefore, we can wait and see whether the bug1315551 can also fix this crash. If so, we might not need to remove the CC for audio channel agent and close this bug. If not, I would try to figure out the way to avoid the leaking.
Reporter | ||
Comment 16•8 years ago
|
||
This issue appears fixed on my end. I ran the latest Nightly build for an hour and it did not crash. Previously, it would crash after about a minute or so each time it was opened.
Comment 17•8 years ago
|
||
[@ mozilla::dom::AudioChannelAgent::IsPlayingStarted const ] looks like it might be an OS X specific variant of this crash. For instance: bp-e497e1b8-07a1-4dc0-9eb9-c2a972161108
Crash Signature: mozilla::dom::HTMLMediaElement::IsTabActivated] → mozilla::dom::HTMLMediaElement::IsTabActivated] [@ mozilla::dom::AudioChannelAgent::IsPlayingStarted const ]
Assignee | ||
Updated•8 years ago
|
Crash Signature: mozilla::dom::HTMLMediaElement::IsTabActivated] [@ mozilla::dom::AudioChannelAgent::IsPlayingStarted const ] → mozilla::dom::HTMLMediaElement::IsTabActivated]
[@ mozilla::dom::AudioChannelAgent::IsPlayingStarted const ]
[@ mozilla::dom::HTMLMediaElement::NotifyAudioChannelAgent]
Comment 19•8 years ago
|
||
(In reply to martin from comment #16)
I can confirm this... since yesterday nightly is no crashing anymore
Assignee | ||
Comment 20•8 years ago
|
||
According to comment16 & comment 19, close this bug.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
Assignee | ||
Comment 21•8 years ago
|
||
FYI, this crash was fixed by bug1315551.
Comment 22•8 years ago
|
||
(In reply to Alastor Wu [:alwu] from comment #21)
> FYI, this crash was fixed by bug1315551.
In that case we should mark the bug status appropriately, which is fixed.
status-firefox52:
--- → fixed
Depends on: 1315551
Resolution: WORKSFORME → FIXED
Whiteboard: [fixed by bug 1315551]
Target Milestone: --- → mozilla52
Updated•8 years ago
|
status-firefox50:
--- → unaffected
status-firefox51:
--- → unaffected
Keywords: regressionwindow-wanted
You need to log in
before you can comment on or make changes to this bug.
Description
•