Closed Bug 1655175 Opened 5 years ago Closed 5 years ago

Crash in [@ mozilla::dom::HTMLMediaElement::MediaControlKeyListener::InitMediaAgent]

Categories

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

Unspecified
Windows 7
defect

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox79 --- unaffected
firefox80 --- disabled
firefox81 --- fixed

People

(Reporter: u608768, Assigned: alwu)

References

(Regression)

Details

(Keywords: crash, regression)

Crash Data

Attachments

(1 file)

This bug is for crash report bp-0b2ae810-1625-47cb-a93a-31df80200724.

Top 10 frames of crashing thread:

0 xul.dll mozilla::dom::HTMLMediaElement::MediaControlKeyListener::InitMediaAgent dom/html/HTMLMediaElement.cpp:555
1 xul.dll mozilla::dom::HTMLMediaElement::MediaControlKeyListener::Start dom/html/HTMLMediaElement.cpp:414
2 xul.dll mozilla::dom::HTMLMediaElement::StartListeningMediaControlKeyIfNeeded dom/html/HTMLMediaElement.cpp:7878
3 xul.dll mozilla::dom::HTMLMediaElement::MetadataLoaded dom/html/HTMLMediaElement.cpp:5529
4 xul.dll mozilla::MediaDecoder::MetadataLoaded dom/media/MediaDecoder.cpp:692
5 xul.dll mozilla::ChannelMediaDecoder::MetadataLoaded dom/media/ChannelMediaDecoder.cpp:543
6 xul.dll mozilla::detail::ListenerImpl<mozilla::AbstractThread, `lambda at /builds/worker/checkouts/gecko/dom/media/MediaEventSource.h:340:37', mozilla::UniquePtr<mozilla::MediaInfo, mozilla::DefaultDelete<mozilla::MediaInfo> >, mozilla::UniquePtr<nsDataHashtable<nsCStringHashKey, nsTString<char> >, mozilla::DefaultDelete<nsDataHashtable<nsCStringHashKey, nsTString<char> > > >, mozilla::MediaDecoderEventVisibility>::ApplyWithArgs dom/media/MediaEventSource.h:207
7 xul.dll mozilla::detail::RunnableMethodImpl<mozilla::detail::Listener<mozilla::UniquePtr<mozilla::MediaInfo, mozilla::DefaultDelete<mozilla::MediaInfo> >, mozilla::UniquePtr<nsDataHashtable<nsCStringHashKey, nsTString<char> >, mozilla::DefaultDelete<nsDataHashtable<nsCStringHashKey, nsTString<char> > > >, mozilla::MediaDecoderEventVisibility>*, void  xpcom/threads/nsThreadUtils.h:1240
8 xul.dll mozilla::AutoTaskDispatcher::TaskGroupRunnable::Run xpcom/threads/TaskDispatcher.h:228
9 xul.dll mozilla::XPCOMThreadWrapper::Runner::Run xpcom/threads/AbstractThread.cpp:194

Started in build 20200723212842. Regression window: https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=08c29f9d87799463cdf99ab81f08f62339b49328&tochange=1415430432706ec6b8c7590cda9b8ca87397e7a7.

alwu, could this have been bug 1654959?

Flags: needinfo?(alwu)
Assignee: nobody → alwu
Severity: -- → S3
Flags: needinfo?(alwu)
Priority: -- → P1
Regressed by: 1653390
No longer regressed by: 1654959
Has Regression Range: --- → yes

mOwner would be reset during CC unlink [1], so we should avoid to access it after unlink happens.

[1] https://searchfox.org/mozilla-central/rev/828f2319c0195d7f561ed35533aef6fe183e68e3/dom/html/HTMLMediaElement.cpp#2027

Pushed by alwu@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7255ff741205 avoid to access owner media element after unlink. r=bryce
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch

Set release status flags based on info from the regressing bug 1653390

Comment on attachment 9166042 [details]
Bug 1655175 - avoid to access owner media element after unlink.

Beta/Release Uplift Approval Request

  • User impact if declined: Crash in some contain situations.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce: No
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): This change prevents from accessing a null weak pointer, and it didn't introduce any new behavior or logic.
  • String changes made/needed: No
Attachment #9166042 - Flags: approval-mozilla-beta?

Is this bound to some nightly-only pref? Do we know why this spiked on July 23 but has hardly been seen since?

Flags: needinfo?(alwu)

Not sure why it spiked only on July 23th. It's related to the media control which is only on by default on Nightly, however, AFAIK some users have already also enabled that on other version Firefox, so I think it's better to uplift this change on beta.

Flags: needinfo?(alwu)

Comment on attachment 9166042 [details]
Bug 1655175 - avoid to access owner media element after unlink.

We don't seem to be seeing this crash outside of nightly, so I'd rather let this ride the trains.

Attachment #9166042 - Flags: approval-mozilla-beta? → approval-mozilla-beta-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: