Bug: Intermittent Assertion failure: NS_IsMainThread(), at /builds/worker/checkouts/gecko/toolkit/components/places/Shutdown.cpp:19
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-11-26 14:33:04+00:00
Resolved: 2021-12-21 17:01:22+00:00

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

---
```
[task 2021-11-26T13:36:54.369Z] 13:36:54     INFO - TEST-START | browser/components/shell/test/browser_headless_screenshot_4.js
[task 2021-11-26T13:36:54.456Z] 13:36:54     INFO - GECKO(3203) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpud1txshi.mozrunner/runtests_leaks.log
[task 2021-11-26T13:36:54.457Z] 13:36:54     INFO - GECKO(3203) | [4906, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:251
[task 2021-11-26T13:36:54.458Z] 13:36:54     INFO - GECKO(3203) | *** You are running in headless mode.
[task 2021-11-26T13:36:54.718Z] 13:36:54     INFO - GECKO(3203) | >>> 1637933814715	Marionette	INFO	Marionette enabled
[task 2021-11-26T13:36:54.722Z] 13:36:54     INFO - GECKO(3203) | >>> 1637933814715	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-11-26T13:36:54.827Z] 13:36:54     INFO - GECKO(3203) | >>> 1637933814824	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-11-26T13:36:54.964Z] 13:36:54     INFO - GECKO(3203) | [Parent 4906: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fa78d080800 == 1 [pid = 4906] [id = 0]
[task 2021-11-26T13:36:54.965Z] 13:36:54     INFO - GECKO(3203) | [Parent 4906: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fa7a798d580) [pid = 4906] [serial = 1] [outer = 0]
[task 2021-11-26T13:36:54.968Z] 13:36:54     INFO - GECKO(3203) | [Parent 4906: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fa78d081000) [pid = 4906] [serial = 2] [outer = 7fa7a798d580]
[task 2021-11-26T13:36:55.054Z] 13:36:55     INFO - GECKO(3203) | [Parent 4906, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4239
[task 2021-11-26T13:36:55.070Z] 13:36:55     INFO - GECKO(3203) | [Parent 4906: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7fa791c36800) [pid = 4906] [serial = 3] [outer = 7fa7a798d580]
[task 2021-11-26T13:36:55.156Z] 13:36:55     INFO - GECKO(3203) | >>> Warning: asking to enable_gpu_markers but no supporting extension was found
[task 2021-11-26T13:36:55.207Z] 13:36:55     INFO - GECKO(3203) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpud1txshi.mozrunner/runtests_leaks_tab_pid4957.log
[task 2021-11-26T13:36:55.209Z] 13:36:55     INFO - GECKO(3203) | [4957, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:251
[task 2021-11-26T13:36:55.238Z] 13:36:55     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: could not set real-time limit in CubebUtils::InitLibrary: file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:644
[task 2021-11-26T13:36:55.335Z] 13:36:55     INFO - GECKO(3203) | [Child 4957: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7f8830f6c800 == 1 [pid = 4957] [id = 0]
[task 2021-11-26T13:36:55.336Z] 13:36:55     INFO - GECKO(3203) | [Child 4957: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7f884647d200) [pid = 4957] [serial = 1] [outer = 0]
[task 2021-11-26T13:36:55.339Z] 13:36:55     INFO - GECKO(3203) | [Child 4957: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7f8830f05800) [pid = 4957] [serial = 2] [outer = 7f884647d200]
[task 2021-11-26T13:36:55.731Z] 13:36:55     INFO - GECKO(3203) | [2021-11-26T13:36:55Z WARN  rkv::backend::impl_safe::environment] `load_ratio()` is irrelevant for this storage backend.
[task 2021-11-26T13:36:55.785Z] 13:36:55     INFO - GECKO(3203) | [Child 4957: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7f8830f07c00) [pid = 4957] [serial = 3] [outer = 7f884647d200]
[task 2021-11-26T13:36:55.838Z] 13:36:55     INFO - GECKO(3203) | [Parent 4906, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/dom/base/ThirdPartyUtil.cpp:421
[task 2021-11-26T13:36:55.839Z] 13:36:55     INFO - GECKO(3203) | [Parent 4906, Main Thread] WARNING: Failed to retarget HTML data delivery to the parser thread.: file /builds/worker/checkouts/gecko/parser/html/nsHtml5StreamParser.cpp:1208
[task 2021-11-26T13:36:55.911Z] 13:36:55     INFO - GECKO(3203) | >>> Screenshot saved to: /tmp/headless_test_screenshot.png
[task 2021-11-26T13:36:55.980Z] 13:36:55     INFO - GECKO(3203) | [Parent 4906, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:361
[task 2021-11-26T13:36:56.070Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, Socket Thread] WARNING: cannot post event if not initialized: file /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:197
[task 2021-11-26T13:36:56.271Z] 13:36:56     INFO - GECKO(3203) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-11-26T13:36:56.277Z] 13:36:56     INFO - GECKO(3203) | [Child 4957: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7f8830f6c800 == 0 [pid = 4957] [id = 0] [url = http://mochi.test:8888/browser/browser/components/shell/test/headless.html]
[task 2021-11-26T13:36:56.278Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.283Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:1058
[task 2021-11-26T13:36:56.284Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:514
[task 2021-11-26T13:36:56.287Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:1058
[task 2021-11-26T13:36:56.287Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:514
[task 2021-11-26T13:36:56.289Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:1058
[task 2021-11-26T13:36:56.290Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:514
[task 2021-11-26T13:36:56.290Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:1058
[task 2021-11-26T13:36:56.291Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:514
[task 2021-11-26T13:36:56.291Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:1058
[task 2021-11-26T13:36:56.291Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, mozStorage #1] WARNING: NS_ENSURE_TRUE(DB) failed: file /builds/worker/checkouts/gecko/toolkit/components/places/FaviconHelpers.cpp:514
[task 2021-11-26T13:36:56.297Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.298Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.305Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.321Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: idb: '0.000001s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.322Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: cache: '0.000196s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.322Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: sdb: '0.000208s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.323Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.323Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: ls: '0.000215s: starting', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.330Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.331Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: idb: '0.009081s: Live database entry removed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.331Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: idb: '0.009107s: gLiveDatabaseHashtable entry removed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.332Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: idb: '0.009620s: Live database entry removed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.336Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: idb: '0.009634s: gLiveDatabaseHashtable entry removed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.337Z] 13:36:56     INFO - GECKO(3203) | [Child 4957: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f884647d200) [pid = 4957] [serial = 1] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/shell/test/headless.html]
[task 2021-11-26T13:36:56.337Z] 13:36:56     INFO - GECKO(3203) | [Child 4957: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7f8830f05800) [pid = 4957] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-11-26T13:36:56.337Z] 13:36:56     INFO - GECKO(3203) | [Child 4957: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7f8830f07c00) [pid = 4957] [serial = 3] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/shell/test/headless.html]
[task 2021-11-26T13:36:56.338Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3351
[task 2021-11-26T13:36:56.340Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: idb: '0.012982s: Live database entry removed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.341Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: idb: '0.013002s: gLiveDatabaseHashtable entry removed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.344Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: idb: '0.013136s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.344Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: cache: '0.013246s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.345Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: sdb: '0.013284s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.347Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, IPDL Background] WARNING: ls: '0.013293s: completed', file /builds/worker/checkouts/gecko/dom/quota/ActorsParent.cpp:3819
[task 2021-11-26T13:36:56.348Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.349Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.350Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.351Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:56.353Z] 13:36:56     INFO - GECKO(3203) | [Child 4957, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4439
[task 2021-11-26T13:36:56.374Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fa78d080800 == 0 [pid = 4906] [id = 0] [url = chrome://global/content/win.xhtml]
[task 2021-11-26T13:36:56.817Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fa791c36800) [pid = 4906] [serial = 3] [outer = 0] [url = chrome://global/content/win.xhtml]
[task 2021-11-26T13:36:56.818Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fa7a798d580) [pid = 4906] [serial = 1] [outer = 0] [url = chrome://global/content/win.xhtml]
[task 2021-11-26T13:36:56.819Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fa78d081000) [pid = 4906] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-11-26T13:36:56.855Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3351
[task 2021-11-26T13:36:56.885Z] 13:36:56     INFO - GECKO(3203) | [Parent 4906, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4439
[task 2021-11-26T13:36:56.964Z] 13:36:56     INFO - GECKO(3203) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpud1txshi.mozrunner/runtests_leaks.log
[task 2021-11-26T13:36:56.965Z] 13:36:56     INFO - GECKO(3203) | [5006, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:251
[task 2021-11-26T13:36:56.966Z] 13:36:56     INFO - GECKO(3203) | *** You are running in headless mode.
[task 2021-11-26T13:36:57.226Z] 13:36:57     INFO - GECKO(3203) | >>> 1637933817223	Marionette	INFO	Marionette enabled
[task 2021-11-26T13:36:57.233Z] 13:36:57     INFO - GECKO(3203) | >>> 1637933817223	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-11-26T13:36:57.335Z] 13:36:57     INFO - GECKO(3203) | >>> 1637933817332	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-11-26T13:36:57.472Z] 13:36:57     INFO - GECKO(3203) | [Parent 5006: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7efde1f81c00 == 1 [pid = 5006] [id = 0]
[task 2021-11-26T13:36:57.473Z] 13:36:57     INFO - GECKO(3203) | [Parent 5006: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7efdfc88d900) [pid = 5006] [serial = 1] [outer = 0]
[task 2021-11-26T13:36:57.474Z] 13:36:57     INFO - GECKO(3203) | [Parent 5006: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7efde1f7f000) [pid = 5006] [serial = 2] [outer = 7efdfc88d900]
[task 2021-11-26T13:36:57.562Z] 13:36:57     INFO - GECKO(3203) | [Parent 5006, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4239
[task 2021-11-26T13:36:57.573Z] 13:36:57     INFO - GECKO(3203) | [Parent 5006: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7efddd89c400) [pid = 5006] [serial = 3] [outer = 7efdfc88d900]
[task 2021-11-26T13:36:57.659Z] 13:36:57     INFO - GECKO(3203) | >>> Warning: asking to enable_gpu_markers but no supporting extension was found
[task 2021-11-26T13:36:57.715Z] 13:36:57     INFO - GECKO(3203) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to /tmp/tmpud1txshi.mozrunner/runtests_leaks_tab_pid5061.log
[task 2021-11-26T13:36:57.716Z] 13:36:57     INFO - GECKO(3203) | [5061, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:251
[task 2021-11-26T13:36:57.734Z] 13:36:57     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: could not set real-time limit in CubebUtils::InitLibrary: file /builds/worker/checkouts/gecko/dom/media/CubebUtils.cpp:644
[task 2021-11-26T13:36:57.829Z] 13:36:57     INFO - GECKO(3203) | [Child 5061: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 7fee6906f800 == 1 [pid = 5061] [id = 0]
[task 2021-11-26T13:36:57.831Z] 13:36:57     INFO - GECKO(3203) | [Child 5061: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (7fee7e67d200) [pid = 5061] [serial = 1] [outer = 0]
[task 2021-11-26T13:36:57.832Z] 13:36:57     INFO - GECKO(3203) | [Child 5061: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (7fee6906fc00) [pid = 5061] [serial = 2] [outer = 7fee7e67d200]
[task 2021-11-26T13:36:57.973Z] 13:36:57     INFO - GECKO(3203) | [Child 3404: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7f55047d3c00) [pid = 3404] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-11-26T13:36:58.265Z] 13:36:58     INFO - GECKO(3203) | [2021-11-26T13:36:58Z WARN  rkv::backend::impl_safe::environment] `load_ratio()` is irrelevant for this storage backend.
[task 2021-11-26T13:36:58.326Z] 13:36:58     INFO - GECKO(3203) | [Child 5061: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (7fee643afc00) [pid = 5061] [serial = 3] [outer = 7fee7e67d200]
[task 2021-11-26T13:36:58.356Z] 13:36:58     INFO - GECKO(3203) | [Parent 5006, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/dom/base/ThirdPartyUtil.cpp:421
[task 2021-11-26T13:36:58.360Z] 13:36:58     INFO - GECKO(3203) | [Parent 5006, Main Thread] WARNING: Failed to retarget HTML data delivery to the parser thread.: file /builds/worker/checkouts/gecko/parser/html/nsHtml5StreamParser.cpp:1208
[task 2021-11-26T13:36:58.456Z] 13:36:58     INFO - GECKO(3203) | >>> Screenshot saved to: /tmp/headless_test_screenshot.png
[task 2021-11-26T13:36:58.536Z] 13:36:58     INFO - GECKO(3203) | [Parent 5006, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:361
[task 2021-11-26T13:36:58.620Z] 13:36:58     INFO - GECKO(3203) | [Parent 5006, Socket Thread] WARNING: cannot post event if not initialized: file /builds/worker/checkouts/gecko/netwerk/protocol/http/nsHttpConnectionMgr.cpp:197
[task 2021-11-26T13:36:58.822Z] 13:36:58     INFO - GECKO(3203) | [Child 5061: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7fee6906f800 == 0 [pid = 5061] [id = 0] [url = http://mochi.test:8888/browser/browser/components/shell/test/headless.html]
[task 2021-11-26T13:36:58.823Z] 13:36:58     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:36:58.827Z] 13:36:58     INFO - GECKO(3203) | Assertion failure: NS_IsMainThread(), at /builds/worker/checkouts/gecko/toolkit/components/places/Shutdown.cpp:19
[task 2021-11-26T13:36:58.842Z] 13:36:58     INFO -  Initializing stack-fixing for the first stack frame, this may take a while...
[task 2021-11-26T13:37:11.292Z] 13:37:11     INFO - GECKO(3203) | #01: mozilla::places::PlacesShutdownBlocker::PlacesShutdownBlocker(nsTString<char16_t> const&) [toolkit/components/places/Shutdown.cpp:19]
[task 2021-11-26T13:37:11.294Z] 13:37:11     INFO - GECKO(3203) | #02: mozilla::places::Database::Database() [toolkit/components/places/Database.cpp:342]
[task 2021-11-26T13:37:11.296Z] 13:37:11     INFO - GECKO(3203) | #03: mozilla::places::Database::GetSingleton() [toolkit/components/places/Database.cpp:331]
[task 2021-11-26T13:37:11.297Z] 13:37:11     INFO - GECKO(3203) | #04: mozilla::places::AsyncAssociateIconToPage::Run() [toolkit/components/places/FaviconHelpers.cpp:823]
[task 2021-11-26T13:37:11.298Z] 13:37:11     INFO - GECKO(3203) | #05: mozilla::places::AsyncFetchAndSetIconForPage::Run() [toolkit/components/places/FaviconHelpers.cpp:542]
[task 2021-11-26T13:37:11.299Z] 13:37:11     INFO - GECKO(3203) | #06: nsThread::ProcessNextEvent(bool, bool*) [xpcom/threads/nsThread.cpp:1178]
[task 2021-11-26T13:37:11.299Z] 13:37:11     INFO - GECKO(3203) | #07: NS_ProcessNextEvent(nsIThread*, bool) [xpcom/threads/nsThreadUtils.cpp:467]
[task 2021-11-26T13:37:11.301Z] 13:37:11     INFO - GECKO(3203) | #08: mozilla::ipc::MessagePumpForNonMainThreads::Run(base::MessagePump::Delegate*) [ipc/glue/MessagePump.cpp:301]
[task 2021-11-26T13:37:11.302Z] 13:37:11     INFO - GECKO(3203) | #09: MessageLoop::RunInternal() [ipc/chromium/src/base/message_loop.cc:331]
[task 2021-11-26T13:37:11.303Z] 13:37:11     INFO - GECKO(3203) | #10: MessageLoop::Run() [ipc/chromium/src/base/message_loop.cc:307]
[task 2021-11-26T13:37:11.304Z] 13:37:11     INFO - GECKO(3203) | #11: nsThread::ThreadFunc(void*) [xpcom/threads/nsThread.cpp:393]
[task 2021-11-26T13:37:11.322Z] 13:37:11     INFO - GECKO(3203) | #12: _pt_root [nsprpub/pr/src/pthreads/ptthread.c:204]
[task 2021-11-26T13:37:11.324Z] 13:37:11     INFO - GECKO(3203) | #13: ??? [/lib/x86_64-linux-gnu/libpthread.so.0 + 0x76db]
[task 2021-11-26T13:37:11.337Z] 13:37:11     INFO - GECKO(3203) | #14: clone [/lib/x86_64-linux-gnu/libc.so.6 + 0x121a3f]
[task 2021-11-26T13:37:11.337Z] 13:37:11     INFO - GECKO(3203) | #15: ??? (???:???)
[task 2021-11-26T13:37:11.337Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.338Z] 13:37:11     INFO - GECKO(3203) | ExceptionHandler::GenerateDump cloned child 5107
[task 2021-11-26T13:37:11.338Z] 13:37:11     INFO - GECKO(3203) | ExceptionHandler::SendContinueSignalToChild sent continue signal to child
[task 2021-11-26T13:37:11.338Z] 13:37:11     INFO - GECKO(3203) | ExceptionHandler::WaitForContinueSignal waiting for continue signal...
[task 2021-11-26T13:37:11.339Z] 13:37:11     INFO - GECKO(3203) | [Parent 5006: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 7efde1f81c00 == 0 [pid = 5006] [id = 0] [url = chrome://global/content/win.xhtml]
[task 2021-11-26T13:37:11.339Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.339Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.340Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.340Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.340Z] 13:37:11     INFO - GECKO(3203) | [Child 5061: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (7fee7e67d200) [pid = 5061] [serial = 1] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/shell/test/headless.html]
[task 2021-11-26T13:37:11.344Z] 13:37:11     INFO - GECKO(3203) | [Child 5061: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (7fee6906fc00) [pid = 5061] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-11-26T13:37:11.345Z] 13:37:11     INFO - GECKO(3203) | [Child 5061: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (7fee643afc00) [pid = 5061] [serial = 3] [outer = 0] [url = http://mochi.test:8888/browser/browser/components/shell/test/headless.html]
[task 2021-11-26T13:37:11.345Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3351
[task 2021-11-26T13:37:11.345Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.346Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.346Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.346Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:523
[task 2021-11-26T13:37:11.346Z] 13:37:11     INFO - GECKO(3203) | [Child 5061, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4439
[task 2021-11-26T13:37:11.347Z] 13:37:11     INFO - TEST-INFO | started process screentopng
[task 2021-11-26T13:37:11.601Z] 13:37:11     INFO - TEST-INFO | screentopng: exit 0
[task 2021-11-26T13:37:11.602Z] 13:37:11     INFO - Buffered messages logged at 13:36:54
[task 2021-11-26T13:37:11.603Z] 13:37:11     INFO - Entering test bound 
[task 2021-11-26T13:37:11.605Z] 13:37:11     INFO - Buffered messages logged at 13:36:56
[task 2021-11-26T13:37:11.606Z] 13:37:11     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_4.js | Firefox process should exit with code 0 - 
[task 2021-11-26T13:37:11.607Z] 13:37:11     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_4.js | A screenshot should be saved in the tmp directory - 
[task 2021-11-26T13:37:11.609Z] 13:37:11     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_4.js | Screenshot should be 800 pixels wide - 
[task 2021-11-26T13:37:11.612Z] 13:37:11     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_4.js | Screenshot should be 600 pixels tall - 
[task 2021-11-26T13:37:11.613Z] 13:37:11     INFO - Buffered messages finished
[task 2021-11-26T13:37:11.613Z] 13:37:11     INFO - TEST-UNEXPECTED-FAIL | browser/components/shell/test/browser_headless_screenshot_4.js | Firefox process should exit with code 0 - Got 11, expected +0
[task 2021-11-26T13:37:11.613Z] 13:37:11     INFO - Stack trace:
[task 2021-11-26T13:37:11.614Z] 13:37:11     INFO - chrome://mochikit/content/browser-test.js:test_is:1364
[task 2021-11-26T13:37:11.614Z] 13:37:11     INFO - chrome://mochitests/content/browser/browser/components/shell/test/head.js:runFirefox:45
[task 2021-11-26T13:37:11.615Z] 13:37:11     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_4.js | A screenshot should be saved in the tmp directory 
```