Open Bug 1535431 Opened 1 year ago Updated 1 year ago

Hit MOZ_CRASH(sInstance is null. sInitPhase=4) at src/dom/media/MediaShutdownManager.cpp:43

Categories

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

defect

Tracking

()

Tracking Status
firefox67 --- affected

People

(Reporter: tsmith, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: assertion, crash)

Attachments

(1 file)

I am currently reducing the testcase and will attach when complete.

Hit MOZ_CRASH(sInstance is null. sInitPhase=4) at src/dom/media/MediaShutdownManager.cpp:43

#0 MOZ_Crash(char const*, int, char const*) src/obj-firefox/dist/include/mozilla/Assertions.h:314:3
#1 MOZ_CrashPrintf src/mfbt/Assertions.cpp:55:3
#2 mozilla::MediaShutdownManager::Instance() src/dom/media/MediaShutdownManager.cpp:42:5
#3 mozilla::ChannelMediaDecoder::Load(nsIChannel*, bool, nsIStreamListener**) src/dom/media/ChannelMediaDecoder.cpp:249:17
#4 nsresult mozilla::dom::HTMLMediaElement::SetupDecoder<mozilla::ChannelMediaDecoder, nsIChannel*&, bool&, nsIStreamListener**&>(mozilla::ChannelMediaDecoder*, nsIChannel*&, bool&, nsIStreamListener**&) src/dom/html/HTMLMediaElement.cpp:4444:27
#5 mozilla::dom::HTMLMediaElement::InitializeDecoderForChannel(nsIChannel*, nsIStreamListener**) src/dom/html/HTMLMediaElement.cpp:4528:10
#6 mozilla::dom::HTMLMediaElement::MediaLoadListener::OnStartRequest(nsIRequest*) src/dom/html/HTMLMediaElement.cpp:680:7
#7 nsBaseChannel::OnStartRequest(nsIRequest*) src/netwerk/base/nsBaseChannel.cpp:764:23
#8 nsInputStreamPump::OnStateStart() src/netwerk/base/nsInputStreamPump.cpp:487:21
#9 nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream*) src/netwerk/base/nsInputStreamPump.cpp:396:21
#10 RunAsyncWaitCallback src/xpcom/io/NonBlockingAsyncInputStream.cpp:411:13
#11 mozilla::NonBlockingAsyncInputStream::AsyncWaitRunnable::Run() src/xpcom/io/NonBlockingAsyncInputStream.cpp:29
#12 nsThread::ProcessNextEvent(bool, bool*) src/xpcom/threads/nsThread.cpp:1179:14
#13 NS_InvokeByIndex src/xpcom/reflect/xptcall/md/unix/xptcinvoke_asm_x86_64_unix.S:106
#14 Invoke src/js/xpconnect/src/XPCWrappedNative.cpp:1630:10
#15 Call src/js/xpconnect/src/XPCWrappedNative.cpp:1178
#16 XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) src/js/xpconnect/src/XPCWrappedNative.cpp:1144
#17 XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) src/js/xpconnect/src/XPCWrappedNativeJSOps.cpp:941:10
#18 0x34e39a5964df  (<unknown module>)
Priority: -- → P2
Attached file testcase.html

This is the best I could do. It took about a day and a half and is down from ~500KB. It is not 100% reliable but it seems to work about 1 in 15x.

STR:

  1. Open test case in browser (with no other open tabs)
  2. Wait and allow test case to close browser
You need to log in before you can comment on or make changes to this bug.