Bug: Intermittent browser/components/sessionstore/test/browser_911547.js | leaked 1 docShell(s) until shutdown
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-10-01 14:57:36+00:00
Resolved: 2021-10-06 18:10:24+00:00

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

---
```
 INFO - GECKO(5180) | ###!!! [Parent][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-10-01T13:55:05.356Z] 13:55:05     INFO - GECKO(5180) | Destroying context 0D116000 surface 0513F040 on display 05120800
[task 2021-10-01T13:55:05.382Z] 13:55:05     INFO - GECKO(5180) | [GPU 7556, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4438
[task 2021-10-01T13:55:05.387Z] 13:55:05     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 21bb9800 == 0 [pid = 3156] [id = 4] [url = resource://gre-resources/hiddenWindow.html]
[task 2021-10-01T13:55:06.080Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (144d0c00) [pid = 3156] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-10-01T13:55:06.084Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (1445cb00) [pid = 3156] [serial = 3] [outer = 0] [url = chrome://browser/content/browser.xhtml]
[task 2021-10-01T13:55:06.085Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (29f48700) [pid = 3156] [serial = 12] [outer = 0] [url = chrome://mochikit/content/browser-harness.xhtml]
[task 2021-10-01T13:55:06.086Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (29639400) [pid = 3156] [serial = 13] [outer = 0] [url = about:blank]
[task 2021-10-01T13:55:06.087Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (21edaf00) [pid = 3156] [serial = 5] [outer = 0] [url = chrome://extensions/content/dummy.xhtml]
[task 2021-10-01T13:55:06.087Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (24abc400) [pid = 3156] [serial = 6] [outer = 0] [url = chrome://extensions/content/dummy.xhtml]
[task 2021-10-01T13:55:06.088Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (144c7c00) [pid = 3156] [serial = 1147] [outer = 0] [url = about:blank]
[task 2021-10-01T13:55:06.089Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (1445c700) [pid = 3156] [serial = 7] [outer = 0] [url = about:blank]
[task 2021-10-01T13:55:06.090Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (21e1ad00) [pid = 3156] [serial = 9] [outer = 0] [url = resource://gre-resources/hiddenWindow.html]
[task 2021-10-01T13:55:06.094Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (2735d000) [pid = 3156] [serial = 11] [outer = 0] [url = resource://gre-resources/hiddenWindow.html]
[task 2021-10-01T13:55:06.107Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3357
[task 2021-10-01T13:55:06.188Z] 13:55:06     INFO - GECKO(5180) | [Parent 3156, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4438
[task 2021-10-01T13:55:06.234Z] 13:55:06     INFO - TEST-INFO | Main app process: exit 0
[task 2021-10-01T13:55:06.235Z] 13:55:06     INFO - TEST-INFO | Confirming we saw 1629 DOCSHELL created and 1562 destroyed log strings.
[task 2021-10-01T13:55:06.235Z] 13:55:06     INFO - TEST-INFO | Confirming we saw 4225 DOMWINDOW created and 3941 destroyed log strings.
[task 2021-10-01T13:55:06.236Z] 13:55:06    ERROR - TEST-UNEXPECTED-FAIL | browser/components/sessionstore/test/browser_911547.js | leaked 1 docShell(s) until shutdown
[task 2021-10-01T13:55:06.237Z] 13:55:06     INFO - TEST-INFO | browser/components/sessionstore/test/browser_911547.js | docShell(s) leaked: [pid = 6416] [id = 90]
<...>
```