Closed Bug 1453584 Opened 6 years ago Closed 6 years ago

Intermittent Assertion failure: !nsContentUtils::IsInStableOrMetaStableState(), at /builds/worker/workspace/build/src/dom/events/EventDispatcher.cpp:831

Categories

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

defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

References

Details

(Keywords: crash, intermittent-failure)

Crash Data

Crash Signature: [@ mozilla::EventDispatcher::Dispatch(nsISupports *,nsPresContext *,mozilla::WidgetEvent *,nsIDOMEvent *,nsEventStatus *,mozilla::EventDispatchingCallback *,nsTArray<mozilla::dom::EventTarget *> *)] → [@ mozilla::EventDispatcher::Dispatch(nsISupports *,nsPresContext *,mozilla::WidgetEvent *,nsIDOMEvent *,nsEventStatus *,mozilla::EventDispatchingCallback *,nsTArray<mozilla::dom::EventTarget *> *)] [@ mozilla::EventDispatcher::Dispatch]
Crash Signature: [@ mozilla::EventDispatcher::Dispatch(nsISupports *,nsPresContext *,mozilla::WidgetEvent *,nsIDOMEvent *,nsEventStatus *,mozilla::EventDispatchingCallback *,nsTArray<mozilla::dom::EventTarget *> *)] [@ mozilla::EventDispatcher::Dispatch] → [@ mozilla::EventDispatcher::Dispatch(nsISupports *,nsPresContext *,mozilla::WidgetEvent *,nsIDOMEvent *,nsEventStatus *,mozilla::EventDispatchingCallback *,nsTArray<mozilla::dom::EventTarget *> *)]
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → INCOMPLETE
https://treeherder.mozilla.org/logviewer.html#?job_id=189052011&repo=mozilla-central
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Summary: Intermittent /mixed-content/picture-tag/no-opt-in/same-host-http/top-level/swap-scheme-redirect/blockable/no-opt-in-blocks.https.html | application crashed [@ mozilla::EventDispatch | After Assertion failure: !nsContentUtils::IsInStableOrMetaStableState() → Intermittent Assertion failure: !nsContentUtils::IsInStableOrMetaStableState(), at /builds/worker/workspace/build/src/dom/events/EventDispatcher.cpp:831
Media code again doing something unexpected during stable state.
Component: DOM: Events → Audio/Video
How did you finger out that media code is failing here? I am trying to triage the bug and I cannot find which media component should be used. Thanks
Flags: needinfo?(bugs)
Hmm, looks like this is actually many different bugs.
The initial issue is in 
04:18:09     INFO -  4  xul.dll!mozilla::dom::TabChild::RecvRenderLayers(bool const &,unsigned __int64 const &) [TabChild.cpp:2318adaec61f07eccf66c3f742497aa973b15f2f : 2664 + 0x6f]
04:18:09     INFO -     rbx = 0x00000000000002aa   rbp = 0x00000098b19fa270
04:18:09     INFO -     rsp = 0x00000098b19fa730   r12 = 0x0000000000000000
04:18:09     INFO -     r13 = 0x00000098b19fa310   r14 = 0x0000000000000000
04:18:09     INFO -     r15 = 0x0000000000000000   rip = 0x00007ffc3ac41a99
04:18:09     INFO -     Found by: call frame info
04:18:09     INFO -  5  xul.dll!mozilla::dom::TabChild::ForcePaint(unsigned __int64) [TabChild.cpp:2318adaec61f07eccf66c3f742497aa973b15f2f : 3461 + 0x1d]
04:18:09     INFO -     rbx = 0x00000000000002aa   rbp = 0x00000098b19fa270
04:18:09     INFO -     rsp = 0x00000098b19fa7f0   r12 = 0x0000000000000000
04:18:09     INFO -     r13 = 0x00000098b19fa310   r14 = 0x0000000000000000
04:18:09     INFO -     r15 = 0x0000000000000000   rip = 0x00007ffc3ac2b859
04:18:09     INFO -     Found by: call frame info
04:18:09     INFO -  6  xul.dll!static void `anonymous namespace'::HangMonitorChild::InterruptCallback() [ProcessHangMonitor.cpp:2318adaec61f07eccf66c3f742497aa973b15f2f : 358 + 0xb]
04:18:09     INFO -     rbx = 0x00000000000002aa   rbp = 0x00000098b19fa270
04:18:09     INFO -     rsp = 0x00000098b19fa820   r12 = 0x0000000000000000
04:18:09     INFO -     r13 = 0x00000098b19fa310   r14 = 0x0000000000000000
04:18:09     INFO -     r15 = 0x0000000000000000   rip = 0x00007ffc3ac1409e

So TabChild.


But comment 10 has totally different stack.

[task 2018-07-19T23:15:54.191Z] 23:15:54     INFO - PID 5452 | #16: nsXPCWrappedJSClass::CallMethod(nsXPCWrappedJS*, unsigned short, nsXPTMethodInfo const*, nsXPTCMiniVariant*) (/builds/worker/workspace/build/src/js/xpconnect/src/XPCWrappedJSClass.cpp:1123)
[task 2018-07-19T23:15:54.195Z] 23:15:54     INFO - PID 5452 | #17: nsXPCWrappedJS::CallMethod(unsigned short, nsXPTMethodInfo const*, nsXPTCMiniVariant*) (/builds/worker/workspace/build/src/js/xpconnect/src/XPCWrappedJS.cpp:611)
[task 2018-07-19T23:15:54.232Z] 23:15:54     INFO - PID 5452 | #18: PrepareAndDispatch (/builds/worker/workspace/build/src/xpcom/reflect/xptcall/md/unix/xptcstubs_x86_64_linux.cpp:130)
[task 2018-07-19T23:15:54.301Z] 23:15:54     INFO - PID 5452 | #19: SharedStub (xptcstubs_x86_64_linux.cpp:?)
[task 2018-07-19T23:15:54.326Z] 23:15:54     INFO - PID 5452 | #20: mozJSComponentLoader::ModuleEntry::GetFactory(mozilla::Module const&, mozilla::Module::CIDEntry const&) (/builds/worker/workspace/build/src/js/xpconnect/loader/mozJSComponentLoader.cpp:1461)
[task 2018-07-19T23:15:54.349Z] 23:15:54     INFO - PID 5452 | #21: nsFactoryEntry::GetFactory() (/builds/worker/workspace/build/src/xpcom/components/nsComponentManager.cpp:1824)
[task 2018-07-19T23:15:54.353Z] 23:15:54     INFO - PID 5452 | #22: nsComponentManagerImpl::CreateInstanceByContractID(char const*, nsISupports*, nsID const&, void**) (/builds/worker/workspace/build/src/xpcom/components/nsComponentManager.cpp:1114)
[task 2018-07-19T23:15:54.356Z] 23:15:54     INFO - PID 5452 | #23: nsComponentManagerImpl::GetServiceByContractID(char const*, nsID const&, void**) (/builds/worker/workspace/build/src/xpcom/components/nsComponentManager.cpp:1478)
[task 2018-07-19T23:15:54.359Z] 23:15:54     INFO - PID 5452 | #24: CallGetService(char const*, nsID const&, void**) (/builds/worker/workspace/build/src/xpcom/components/nsComponentManagerUtils.cpp:69)
[task 2018-07-19T23:15:54.362Z] 23:15:54     INFO - PID 5452 | #25: nsGetServiceByContractID::operator()(nsID const&, void**) const (/builds/worker/workspace/build/src/xpcom/components/nsComponentManagerUtils.cpp:280)
[task 2018-07-19T23:15:54.370Z] 23:15:54     INFO - PID 5452 | #26: nsCOMPtr<nsIAsyncShutdownService>::assign_from_gs_contractid(nsGetServiceByContractID, nsID const&) (/builds/worker/workspace/build/src/xpcom/base/nsCOMPtr.h:1222)
[task 2018-07-19T23:15:54.375Z] 23:15:54     INFO - PID 5452 | #27: nsCOMPtr<nsIAsyncShutdownService>::swap(nsIAsyncShutdownService*&) (/builds/worker/workspace/build/src/xpcom/base/nsCOMPtr.h:751)
[task 2018-07-19T23:15:54.440Z] 23:15:54     INFO - PID 5452 | #28: mozilla::services::GetAsyncShutdown() (/builds/worker/workspace/build/src/obj-firefox/dist/include/mozilla/Services.h:253)
[task 2018-07-19T23:15:54.442Z] 23:15:54     INFO - PID 5452 | #29: mozilla::MediaShutdownManager::InitStatics() (/builds/worker/workspace/build/src/dom/media/MediaShutdownManager.cpp:82)
[task 2018-07-19T23:15:54.586Z] 23:15:54     INFO - PID 5452 | #30: mozilla::MediaDecoder::MediaDecoder(mozilla::MediaDecoderInit&) (/builds/worker/workspace/build/src/dom/media/MediaDecoder.cpp:280)
[task 2018-07-19T23:15:54.683Z] 23:15:54     INFO - PID 5452 | #31: mozilla::DecoderDoctorLifeLogger<mozilla::MediaSourceDecoder>::DecoderDoctorLifeLogger() (/builds/worker/workspace/build/src/obj-firefox/dist/include/DecoderDoctorLogger.h:498)
[task 2018-07-19T23:15:54.782Z] 23:15:54     INFO - PID 5452 | #32: mozilla::dom::HTMLMediaElement::LoadResource() (/builds/worker/workspace/build/src/dom/html/HTMLMediaElement.cpp:2631 (discriminator 4))
[task 2018-07-19T23:15:54.784Z] 23:15:54     INFO - PID 5452 | #33: mozilla::dom::HTMLMediaElement::SelectResource() (/builds/worker/workspace/build/src/dom/html/HTMLMediaElement.cpp:2129)
[task 2018-07-19T23:15:54.789Z] 23:15:54     INFO - PID 5452 | #34: mozilla::dom::HTMLMediaElement::SelectResourceWrapper() (/builds/worker/workspace/build/src/dom/html/HTMLMediaElement.cpp:2070)
[task 2018-07-19T23:15:54.797Z] 23:15:54     INFO - PID 5452 | #35: mozilla::detail::RunnableMethodImpl<mozilla::dom::HTMLMediaElement*, void (mozilla::dom::HTMLMediaElement::*)(), true, (mozilla::RunnableKind)0>::Run() (/builds/worker/workspace/build/src/obj-firefox/dist/include/nsThreadUtils.h:1221)
[task 2018-07-19T23:15:54.805Z] 23:15:54     INFO - PID 5452 | #36: mozilla::dom::nsSyncSection::Run() (/builds/worker/workspace/build/src/dom/html/HTMLMediaElement.cpp:1904)
[task 2018-07-19T23:15:54.849Z] 23:15:54     INFO - PID 5452 | #37: mozilla::CycleCollectedJSContext::ProcessStableStateQueue() (/builds/worker/workspace/build/src/xpcom/base/CycleCollectedJSContext.cpp:330)
There media code triggers inside stable state some calls to JS.
Flags: needinfo?(bugs)
Component: Audio/Video → Audio/Video: Playback
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.