Bug: Intermittent FATAL ERROR: AsyncShutdown timeout in IOUtils: waiting for profileBeforeChange IO to complete Conditions: [{"name":"SessionFile: Finish writing Session Restore data","state":{"options":{"isFinalWrite":false,"performShutdownCleanup":false},"at
Status: RESOLVED
Priority: --
Resolution: DUPLICATE
Created: 2022-02-09 00:00:20+00:00
Resolved: 2022-03-26 02:40:18+00:00

**Filed by:** mlaza [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=367116024&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/GAqf-s5sSqepQHLUFuXnog/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2022-02-08T21:16:04.579Z] 21:16:04     INFO - TEST-OK | browser/base/content/test/sanitize/browser_sanitizeDialog.js | took 7053ms
[task 2022-02-08T21:16:04.592Z] 21:16:04     INFO - checking window state
[task 2022-02-08T21:16:05.567Z] 21:16:05     INFO - GECKO(2424) | ###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost
[task 2022-02-08T21:16:05.577Z] 21:16:05     INFO - GECKO(2424) | ###!!! [Parent][PCompositorManagerParent] Error: RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost
[task 2022-02-08T21:16:05.577Z] 21:16:05     INFO - GECKO(2424) | ###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost
[task 2022-02-08T21:16:06.047Z] 21:16:06     INFO - GECKO(2424) | [Parent 6228, IPC I/O Parent] WARNING: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_win.cc:167
[task 2022-02-08T21:16:06.056Z] 21:16:06     INFO - GECKO(2424) | [Parent 6228, IPC I/O Parent] WARNING: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_win.cc:167
[task 2022-02-08T21:16:06.060Z] 21:16:06     INFO - GECKO(2424) | [Parent 6228, IPC I/O Parent] WARNING: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_win.cc:167
[task 2022-02-08T21:16:06.602Z] 21:16:06     INFO - GECKO(2424) | Completed ShutdownLeaks collections in process 6720
[task 2022-02-08T21:16:06.635Z] 21:16:06     INFO - GECKO(2424) | Completed ShutdownLeaks collections in process 7164
[task 2022-02-08T21:16:06.656Z] 21:16:06     INFO - GECKO(2424) | Completed ShutdownLeaks collections in process 7592
[task 2022-02-08T21:16:06.734Z] 21:16:06     INFO - GECKO(2424) | Completed ShutdownLeaks collections in process 3412
[task 2022-02-08T21:16:07.251Z] 21:16:07     INFO - GECKO(2424) | Completed ShutdownLeaks collections in process 6228
[task 2022-02-08T21:16:07.266Z] 21:16:07     INFO - TEST-START | Shutdown
[task 2022-02-08T21:16:07.266Z] 21:16:07     INFO - Browser Chrome Test Summary
[task 2022-02-08T21:16:07.267Z] 21:16:07     INFO - Passed:  619
[task 2022-02-08T21:16:07.267Z] 21:16:07     INFO - Failed:  0
[task 2022-02-08T21:16:07.268Z] 21:16:07     INFO - Todo:    0
[task 2022-02-08T21:16:07.268Z] 21:16:07     INFO - Mode:    e10s
[task 2022-02-08T21:16:07.269Z] 21:16:07     INFO - *** End BrowserChrome Test Results ***
[task 2022-02-08T21:16:07.420Z] 21:16:07     INFO - GECKO(2424) | 1644354967423	Marionette	TRACE	Received observer notification quit-application
[task 2022-02-08T21:16:07.425Z] 21:16:07     INFO - GECKO(2424) | 1644354967424	Marionette	INFO	Stopped listening on port 2828
[task 2022-02-08T21:16:07.426Z] 21:16:07     INFO - GECKO(2424) | 1644354967425	Marionette	DEBUG	Marionette stopped listening
[task 2022-02-08T21:16:07.536Z] 21:16:07     INFO - GECKO(2424) | JavaScript error: resource://gre/modules/URLQueryStrippingListService.jsm, line 90: TypeError: can't access property "removeEventListener", Services.cpmm.sharedData is null
[task 2022-02-08T21:16:07.620Z] 21:16:07     INFO - GECKO(2424) | JavaScript error: resource://gre/modules/URLQueryStrippingListService.jsm, line 90: TypeError: can't access property "removeEventListener", Services.cpmm.sharedData is null
[task 2022-02-08T21:16:07.626Z] 21:16:07     INFO - GECKO(2424) | ###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost
[task 2022-02-08T21:16:07.627Z] 21:16:07     INFO - GECKO(2424) | JavaScript error: resource://gre/modules/URLQueryStrippingListService.jsm, line 90: TypeError: can't access property "removeEventListener", Services.cpmm.sharedData is null
[task 2022-02-08T21:16:07.632Z] 21:16:07     INFO - GECKO(2424) | JavaScript error: resource://gre/modules/URLQueryStrippingListService.jsm, line 90: TypeError: can't access property "removeEventListener", Services.cpmm.sharedData is null
[task 2022-02-08T21:16:17.599Z] 21:16:17     INFO - GECKO(2424) | WARNING: At least one completion condition is taking too long to complete. Conditions: [{"name":"SessionFile: Finish writing Session Restore data","state":{"options":{"isFinalWrite":false,"performShutdownCleanup":false},"attempts":69,"successes":68,"failures":0},"filename":"resource:///modules/sessionstore/SessionFile.jsm","lineNumber":488,"stack":["resource:///modules/sessionstore/SessionFile.jsm:write:488","resource:///modules/sessionstore/SessionFile.jsm:write:63","resource:///modules/sessionstore/SessionSaver.jsm:_writeState:367","resource:///modules/sessionstore/SessionSaver.jsm:_saveState:301","resource:///modules/sessionstore/SessionSaver.jsm:run:161","resource:///modules/sessionstore/SessionSaver.jsm:run:76","resource:///modules/sessionstore/SessionStore.jsm:ssi_onPurgeSessionHistory/<:2316"]}] Barrier: IOUtils: waiting for profileBeforeChange IO to complete
[task 2022-02-08T21:16:17.619Z] 21:16:17     INFO - GECKO(2424) | WARNING: At least one completion condition is taking too long to complete. Conditions: [{"name":"IOUtils Blocker (profile-before-change)","state":"(none)","filename":"/builds/worker/checkouts/gecko/dom/system/IOUtils.cpp","lineNumber":1901,"stack":"IOUtils::EventQueue::SetShutdownHooks"}] Barrier: profile-before-change
[task 2022-02-08T21:16:22.547Z] 21:16:22     INFO - GECKO(2424) | console.error: (new Error("SessionFile is closed", "resource:///modules/sessionstore/SessionFile.jsm", 443))
[task 2022-02-08T21:21:08.601Z] 21:21:08     INFO - GECKO(2424) | FATAL ERROR: AsyncShutdown timeout in IOUtils: waiting for profileBeforeChange IO to complete Conditions: [{"name":"SessionFile: Finish writing Session Restore data","state":{"options":{"isFinalWrite":false,"performShutdownCleanup":false},"attempts":69,"successes":68,"failures":0},"filename":"resource:///modules/sessionstore/SessionFile.jsm","lineNumber":488,"stack":["resource:///modules/sessionstore/SessionFile.jsm:write:488","resource:///modules/sessionstore/SessionFile.jsm:write:63","resource:///modules/sessionstore/SessionSaver.jsm:_writeState:367","resource:///modules/sessionstore/SessionSaver.jsm:_saveState:301","resource:///modules/sessionstore/SessionSaver.jsm:run:161","resource:///modules/sessionstore/SessionSaver.jsm:run:76","resource:///modules/sessionstore/SessionStore.jsm:ssi_onPurgeSessionHistory/<:2316"]}] 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 2022-02-08T21:21:08.606Z] 21:21:08     INFO - GECKO(2424) | WARNING: No crash reporter available
[task 2022-02-08T21:21:08.606Z] 21:21:08     INFO - GECKO(2424) | [Parent 6228, Main Thread] ###!!! ABORT: file resource:///modules/sessionstore/SessionFile.jsm:488
[task 2022-02-08T21:21:10.430Z] 21:21:10     INFO - TEST-INFO | Main app process: exit 80000003
[task 2022-02-08T21:21:10.437Z] 21:21:10     INFO - Buffered messages finished
[task 2022-02-08T21:21:10.437Z] 21:21:10    ERROR - TEST-UNEXPECTED-FAIL | Last test finished | application terminated with exit code 2147483651
[task 2022-02-08T21:21:10.438Z] 21:21:10     INFO - runtests.py | Application ran for: 0:06:27.880867
```