Open Bug 1626608 Opened 6 years ago Updated 2 days ago

Intermittent FATAL ERROR: AsyncShutdown timeout in xpcom-will-shutdown Conditions: [{"name":"MediaRecorder::Session... after /mediacapture-record/idlharness.window.html

Categories

(Core :: Audio/Video: Recording, defect, P3)

defect

Tracking

()

Tracking Status
firefox-esr68 --- unaffected
firefox74 --- wontfix
firefox75 --- wontfix
firefox76 - wontfix
firefox77 --- fix-optional

People

(Reporter: NarcisB, Unassigned)

References

Details

(Keywords: regression)

[Tracking Requested - why for this release]:

Central as Beta simulation:
https://treeherder.mozilla.org/#/jobs?repo=try&selectedJob=295728390&resultStatus=testfailed%2Cbusted%2Cexception%2Crunnable&revision=a8530183bf8b0986eed56b2881944b7589bc9028
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=295728390&repo=try&lineNumber=3979

Log snippet:
[task 2020-04-01T10:59:00.928Z] 10:59:00 INFO - TEST-OK | /mediacapture-record/idlharness.window.html | took 2869ms
[task 2020-04-01T10:59:00.944Z] 10:59:00 INFO - PID 14719 | 1585738740938 Marionette INFO Stopped listening on port 58418
[task 2020-04-01T10:59:01.270Z] 10:59:01 INFO - PID 14719 | FATAL ERROR: AsyncShutdown timeout in xpcom-will-shutdown Conditions: [{"name":"MediaRecorder::Session 7fe51d50fea0 shutdown","state":"(none)","filename":"/builds/worker/checkouts/gecko/dom/media/MediaRecorder.cpp","lineNumber":1068,"stack":"MediaRecorder::Session: shutdown"},{"name":"MediaRecorder::Session 7fe51d50ff50 shutdown","state":"(none)","filename":"/builds/worker/checkouts/gecko/dom/media/MediaRecorder.cpp","lineNumber":1068,"stack":"MediaRecorder::Session: shutdown"},{"name":"MediaRecorder::Session 7fe51d556190 shutdown","state":"(none)","filename":"/builds/worker/checkouts/gecko/dom/media/MediaRecorder.cpp","lineNumber":1068,"stack":"MediaRecorder::Session: shutdown"},{"name":"MediaRecorder::Session 7fe51d556240 shutdown","state":"(none)","filename":"/builds/worker/checkouts/gecko/dom/media/MediaRecorder.cpp","lineNumber":1068,"stack":"MediaRecorder::Session: shutdown"},{"name":"MediaRecorder::Session 7fe51d5565b0 shutdown","state":"(none)","filename":"/builds/worker/checkouts/gecko/dom/media/MediaRecorder.cpp","lineNumber":1068,"stack":"MediaRecorder::Session: shutdown"}] At least one completion condition failed to complete within a reasonable amount of time. Causing a crash to ensure that we do not leave the user with an unresponsive process draining resources.
[task 2020-04-01T10:59:01.270Z] 10:59:01 INFO - PID 14719 | [Child 16104, Main Thread] ###!!! ABORT: file /builds/worker/checkouts/gecko/dom/media/MediaRecorder.cpp, line 1068
[task 2020-04-01T10:59:27.216Z] 10:59:27 INFO - PID 14719 | #01: NS_InvokeByIndex
[task 2020-04-01T10:59:27.217Z] 10:59:27 INFO -
[task 2020-04-01T10:59:27.217Z] 10:59:27 INFO - PID 14719 | #02: CallMethodHelper::Call() [js/xpconnect/src/XPCWrappedNative.cpp:1175]
[task 2020-04-01T10:59:27.218Z] 10:59:27 INFO -
[task 2020-04-01T10:59:27.218Z] 10:59:27 INFO - PID 14719 | #03: XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode) [js/xpconnect/src/XPCWrappedNative.cpp:1141]
[task 2020-04-01T10:59:27.218Z] 10:59:27 INFO -
[task 2020-04-01T10:59:27.219Z] 10:59:27 INFO - PID 14719 | #04: XPC_WN_CallMethod(JSContext*, unsigned int, JS::Value*) [js/xpconnect/src/XPCWrappedNativeJSOps.cpp:947]
[task 2020-04-01T10:59:27.219Z] 10:59:27 INFO -
[task 2020-04-01T10:59:27.220Z] 10:59:27 INFO - PID 14719 | #05: CallJSNative(JSContext*, bool ()(JSContext, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) [js/src/vm/Interpreter.cpp:489]

Flags: needinfo?(james)
Component: web-platform-tests → Audio/Video: Recording
Product: Testing → Core
Version: Version 3 → unspecified
Flags: needinfo?(james) → needinfo?(padenot)

I think the only thing in this range that touched this is bug 1616175. Karl, I can have a look if you're busy, let me know.

Flags: needinfo?(padenot) → needinfo?(karlt)

Bugbug thinks this bug is a regression, but please revert this change in case of error.

Keywords: regression
See Also: → 1627147

https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=295727235&repo=mozilla-central&lineNumber=17895 has the same FATAL ERROR: AsyncShutdown timeout error and PROCESS-CRASH | /mediacapture-record/idlharness.window.html | application crashed [@ nsDebugImpl::Abort(char const*, int)]
but "Result: success".

It is actually bug 1627147 that is causing the fail result on Beta.

The FATAL ERROR: AsyncShutdown timeout dates back to at least
https://treeherder.mozilla.org/#/jobs?repo=mozilla-central&selectedJob=279720701&revision=ba237def08d57263dda0232d34526ee3b3b265ca
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=279720701&repo=mozilla-central&lineNumber=34165

I haven't found logs for runs prior to that.
Bug 1591125 indicates that it existed in October.

Flags: needinfo?(karlt)
Priority: -- → P2
See Also: → 1591125
Summary: Perma FATAL ERROR: AsyncShutdown timeout in xpcom-will-shutdown Conditions: [{"name":"MediaRecorder::Session... - when Gecko 76 merges to Beta on 2020-04-06 → Perma FATAL ERROR: AsyncShutdown timeout in xpcom-will-shutdown Conditions: [{"name":"MediaRecorder::Session... after /mediacapture-record/idlharness.window.html

The shutdown timeout is not in ESR68 even though /mediacapture-record/idlharness.window.html exists there, but the previous test /mediacapture-record/MediaRecorder-stop.html is timing out.
https://treeherder.mozilla.org/#/jobs?repo=mozilla-esr68&revision=6a1c567e654b1ee83425a517ad410067a086f06a&selectedJob=295762030
https://firefoxci.taskcluster-artifacts.net/E2ohs0yGSCSSPbMfgHRK5w/0/public/logs/live_backing.log

Not observed in yesterday's beta simulation but for the 4 previous days.

This might be a false-positive cause it's also present in the green runs: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=296388780&repo=try&lineNumber=17706
Today's beta-sim looks like https://treeherder.mozilla.org/#/jobs?repo=try&group_state=expanded&resultStatus=success%2Ctestfailed%2Cbusted%2Cexception%2Crunnable&revision=411986c096f02dbe354f5e7e249df33c0c68d113&searchStr=wpt6
It only showed up in TH because there were also failures from Bug 1626601 present and with those fixed the runs are green.

Given this was a pre-existing issue I'll untrack this for 76.

Severity: normal → S3

It was quiet for a while here, since 3 months it is happening very rarely again.

Summary: Perma FATAL ERROR: AsyncShutdown timeout in xpcom-will-shutdown Conditions: [{"name":"MediaRecorder::Session... after /mediacapture-record/idlharness.window.html → Intermittent FATAL ERROR: AsyncShutdown timeout in xpcom-will-shutdown Conditions: [{"name":"MediaRecorder::Session... after /mediacapture-record/idlharness.window.html
Priority: P2 → P3
You need to log in before you can comment on or make changes to this bug.