Bug: Intermittent test-verify browser/components/preferences/tests/browser_connection_bug388287.js | leaked 8 window(s) until shutdown [url = chrome://browser/content/preferences/dialogs/connection.xhtml]
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-04-28 14:14:21+00:00
Resolved: 2021-08-10 17:04:35+00:00

**Filed by:** imoraru [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=338007613&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/UOUpJPfqTQ-y_Ix4pE_NxQ/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/UOUpJPfqTQ-y_Ix4pE_NxQ/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-04-28T10:20:47.310Z] 10:20:47     INFO - TEST-START | browser/components/preferences/tests/browser_connection_bug388287.js
[task 2021-04-28T10:20:47.310Z] 10:20:47     INFO - GECKO(1560) | [Parent 1560: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 121eeb400 == 17 [pid = 1560] [id = 70]
<...>
[task 2021-04-28T10:21:59.582Z] 10:21:59     INFO - GECKO(1560) | [Parent 1560, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3361
[task 2021-04-28T10:21:59.587Z] 10:21:59     INFO - GECKO(1560) | [Parent 1560, Main Thread] WARNING: '!obs', file /builds/worker/checkouts/gecko/toolkit/components/sessionstore/RestoreTabContentObserver.cpp:58
[task 2021-04-28T10:21:59.629Z] 10:21:59     INFO - GECKO(1560) | [Parent 1560, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4442
[task 2021-04-28T10:21:59.797Z] 10:21:59     INFO - TEST-INFO | Main app process: exit 0
[task 2021-04-28T10:21:59.798Z] 10:21:59     INFO - TEST-INFO | Confirming we saw 95 DOCSHELL created and 95 destroyed log strings.
[task 2021-04-28T10:21:59.798Z] 10:21:59     INFO - TEST-INFO | Confirming we saw 250 DOMWINDOW created and 250 destroyed log strings.
[task 2021-04-28T10:21:59.798Z] 10:21:59    ERROR - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_connection_bug388287.js | leaked 8 window(s) until shutdown [url = chrome://browser/content/preferences/dialogs/connection.xhtml]
[task 2021-04-28T10:21:59.798Z] 10:21:59    ERROR - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_connection_bug388287.js | leaked 2 window(s) until shutdown [url = about:preferences]
[task 2021-04-28T10:21:59.798Z] 10:21:59     INFO - TEST-INFO | browser/components/preferences/tests/browser_connection_bug388287.js | windows(s) leaked: [pid = 1560] [serial = 47], [pid = 1560] [serial = 46], [pid = 1560] [serial = 49], [pid = 1560] [serial = 34], [pid = 1560] [serial = 52], [pid = 1560] [serial = 38], [pid = 1560] [serial = 36], [pid = 1560] [serial = 39], [pid = 1560] [serial = 43], [pid = 1560] [serial = 44]
[task 2021-04-28T10:21:59.799Z] 10:21:59     INFO - TEST-INFO | browser/components/preferences/tests/browser_connection_bug388287.js | This test created 0 hidden window(s)
[task 2021-04-28T10:21:59.799Z] 10:21:59     INFO - TEST-INFO | browser/components/preferences/tests/browser_connection_bug388287.js | This test created 1 hidden docshell(s)
[task 2021-04-28T10:21:59.799Z] 10:21:59    ERROR - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_connection_bug388287.js | leaked 8 window(s) until shutdown [url = chrome://browser/content/preferences/dialogs/connection.xhtml]
[task 2021-04-28T10:21:59.799Z] 10:21:59    ERROR - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_connection_bug388287.js | leaked 2 window(s) until shutdown [url = about:preferences]
[task 2021-04-28T10:21:59.800Z] 10:21:59     INFO - TEST-INFO | browser/components/preferences/tests/browser_connection_bug388287.js | windows(s) leaked: [pid = 1560] [serial = 63], [pid = 1560] [serial = 55], [pid = 1560] [serial = 62], [pid = 1560] [serial = 58], [pid = 1560] [serial = 53], [pid = 1560] [serial = 68], [pid = 1560] [serial = 71], [pid = 1560] [serial = 66], [pid = 1560] [serial = 65], [pid = 1560] [serial = 57]
[task 2021-04-28T10:21:59.800Z] 10:21:59     INFO - TEST-INFO | browser/components/preferences/tests/browser_connection_bug388287.js | This test created 0 hidden window(s)
<...>
[task 2021-04-28T10:21:59.810Z] 10:21:59     INFO - TEST-INFO | browser/components/preferences/tests/browser_connection_bug388287.js | This test created 0 hidden window(s)
[task 2021-04-28T10:21:59.811Z] 10:21:59     INFO - TEST-INFO | browser/components/preferences/tests/browser_connection_bug388287.js | This test created 1 hidden docshell(s)
[task 2021-04-28T10:21:59.811Z] 10:21:59     INFO - runtests.py | Application ran for: 0:05:02.932055
[task 2021-04-28T10:21:59.811Z] 10:21:59     INFO - zombiecheck | Reading PID log: /var/folders/7l/l9w_073j04l19jj86lzw2y6m000017/T/tmp2EyNLNpidlog
[task 2021-04-28T10:21:59.811Z] 10:21:59     INFO - ==> process 1560 launched child process 1567
[task 2021-04-28T10:21:59.814Z] 10:21:59     INFO - ==> process 1560 launched child process 1568
[task 2021-04-28T10:21:59.814Z] 10:21:59     INFO - ==> process 1560 launched child process 1570
[task 2021-04-28T10:21:59.814Z] 10:21:59     INFO - ==> process 1560 launched child process 1571
[task 2021-04-28T10:21:59.815Z] 10:21:59     INFO - ==> process 1560 launched child process 1572
[task 2021-04-28T10:21:59.815Z] 10:21:59     INFO - ==> process 1560 launched child process 1573
[task 2021-04-28T10:21:59.815Z] 10:21:59     INFO - ==> process 1560 launched child process 1574
[task 2021-04-28T10:21:59.815Z] 10:21:59     INFO - ==> process 1560 launched child process 1626
[task 2021-04-28T10:21:59.815Z] 10:21:59     INFO - zombiecheck | Checking for orphan process with PID: 1568
[task 2021-04-28T10:21:59.815Z] 10:21:59     INFO - zombiecheck | Checking for orphan process with PID: 1570
[task 2021-04-28T10:21:59.816Z] 10:21:59     INFO - zombiecheck | Checking for orphan process with PID: 1571
[task 2021-04-28T10:21:59.816Z] 10:21:59     INFO - zombiecheck | Checking for orphan process with PID: 1572
[task 2021-04-28T10:21:59.816Z] 10:21:59     INFO - zombiecheck | Checking for orphan process with PID: 1573
[task 2021-04-28T10:21:59.816Z] 10:21:59     INFO - zombiecheck | Checking for orphan process with PID: 1574
[task 2021-04-28T10:21:59.816Z] 10:21:59     INFO - zombiecheck | Checking for orphan process with PID: 1626
[task 2021-04-28T10:21:59.816Z] 10:21:59     INFO - zombiecheck | Checking for orphan process with PID: 1567
[task 2021-04-28T10:21:59.816Z] 10:21:59     INFO - Stopping web server
[task 2021-04-28T10:21:59.816Z] 10:21:59     INFO - Server shut down.
[task 2021-04-28T10:21:59.902Z] 10:21:59     INFO - Web server killed.
[task 2021-04-28T10:21:59.902Z] 10:21:59     INFO - Stopping web socket server
[task 2021-04-28T10:22:00.026Z] 10:22:00     INFO - Stopping ssltunnel
[task 2021-04-28T10:22:00.130Z] 10:22:00     INFO - leakcheck | Processing log file /var/folders/7l/l9w_073j04l19jj86lzw2y6m000017/T/tmpuc2RWI.mozrunner/runtests_leaks.log
[task 2021-04-28T10:22:00.130Z] 10:22:00     INFO - TEST-INFO | leakcheck | default process: leak threshold set at 0 bytes
[task 2021-04-28T10:22:00.130Z] 10:22:00     INFO - TEST-INFO | leakcheck | forkserver process: leak threshold set at 0 bytes
[task 2021-04-28T10:22:00.131Z] 10:22:00     INFO - TEST-INFO | leakcheck | gmplugin process: leak threshold set at 20000 bytes
[task 2021-04-28T10:22:00.131Z] 10:22:00     INFO - TEST-INFO | leakcheck | gpu process: leak threshold set at 0 bytes
[task 2021-04-28T10:22:00.131Z] 10:22:00     INFO - TEST-INFO | leakcheck | plugin process: leak threshold set at 0 bytes
[task 2021-04-28T10:22:00.131Z] 10:22:00     INFO - TEST-INFO | leakcheck | rdd process: leak threshold set at 0 bytes
[task 2021-04-28T10:22:00.131Z] 10:22:00     INFO - TEST-INFO | leakcheck | socket process: leak threshold set at 0 bytes
[task 2021-04-28T10:22:00.132Z] 10:22:00     INFO - TEST-INFO | leakcheck | tab process: leak threshold set at 0 bytes
[task 2021-04-28T10:22:00.132Z] 10:22:00     INFO - TEST-INFO | leakcheck | vr process: leak threshold set at 0 bytes
[task 2021-04-28T10:22:00.132Z] 10:22:00     INFO - leakcheck | Processing leak log file /var/folders/7l/l9w_073j04l19jj86lzw2y6m000017/T/tmpuc2RWI.mozrunner/runtests_leaks_tab_pid1574.log
[task 2021-04-28T10:22:00.132Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.132Z] 10:22:00     INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, tab process 1574
[task 2021-04-28T10:22:00.133Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.133Z] 10:22:00     INFO -      |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|
[task 2021-04-28T10:22:00.133Z] 10:22:00     INFO -      |                                      | Per-Inst   Leaked|   Total      Rem|
[task 2021-04-28T10:22:00.133Z] 10:22:00     INFO -    0 |TOTAL                                 |       39        0|   16400        0|
[task 2021-04-28T10:22:00.133Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.134Z] 10:22:00     INFO - nsTraceRefcnt::DumpStatistics: 375 entries
[task 2021-04-28T10:22:00.134Z] 10:22:00     INFO - TEST-PASS | leakcheck | tab no leaks detected!
[task 2021-04-28T10:22:00.134Z] 10:22:00     INFO - leakcheck | Processing leak log file /var/folders/7l/l9w_073j04l19jj86lzw2y6m000017/T/tmpuc2RWI.mozrunner/runtests_leaks_tab_pid1570.log
[task 2021-04-28T10:22:00.134Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.134Z] 10:22:00     INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, tab process 1570
[task 2021-04-28T10:22:00.134Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.135Z] 10:22:00     INFO -      |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|
[task 2021-04-28T10:22:00.135Z] 10:22:00     INFO -      |                                      | Per-Inst   Leaked|   Total      Rem|
[task 2021-04-28T10:22:00.135Z] 10:22:00     INFO -    0 |TOTAL                                 |       34        0|  231973        0|
[task 2021-04-28T10:22:00.135Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.135Z] 10:22:00     INFO - nsTraceRefcnt::DumpStatistics: 942 entries
[task 2021-04-28T10:22:00.136Z] 10:22:00     INFO - TEST-PASS | leakcheck | tab no leaks detected!
[task 2021-04-28T10:22:00.136Z] 10:22:00     INFO - leakcheck | Processing leak log file /var/folders/7l/l9w_073j04l19jj86lzw2y6m000017/T/tmpuc2RWI.mozrunner/runtests_leaks_tab_pid1571.log
[task 2021-04-28T10:22:00.136Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.136Z] 10:22:00     INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, tab process 1571
[task 2021-04-28T10:22:00.136Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.137Z] 10:22:00     INFO -      |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|
[task 2021-04-28T10:22:00.137Z] 10:22:00     INFO -      |                                      | Per-Inst   Leaked|   Total      Rem|
[task 2021-04-28T10:22:00.137Z] 10:22:00     INFO -    0 |TOTAL                                 |       45        0|   55410        0|
[task 2021-04-28T10:22:00.137Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.138Z] 10:22:00     INFO - nsTraceRefcnt::DumpStatistics: 631 entries
[task 2021-04-28T10:22:00.138Z] 10:22:00     INFO - TEST-PASS | leakcheck | tab no leaks detected!
[task 2021-04-28T10:22:00.138Z] 10:22:00     INFO - leakcheck | Processing leak log file /var/folders/7l/l9w_073j04l19jj86lzw2y6m000017/T/tmpuc2RWI.mozrunner/runtests_leaks_tab_pid1573.log
[task 2021-04-28T10:22:00.138Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.138Z] 10:22:00     INFO - == BloatView: ALL (cumulative) LEAK AND BLOAT STATISTICS, tab process 1573
[task 2021-04-28T10:22:00.138Z] 10:22:00     INFO - 
[task 2021-04-28T10:22:00.139Z] 10:22:00     INFO -      |<----------------Class--------------->|<-----Bytes------>|<----Objects---->|
[task 2021-04-28T10:22:00.139Z] 10:22:00     INFO -      |                                      | Per-Inst   Leaked|   Total      Rem|
[task 2021-04-28T10:22:00.140Z] 10:22:00     INFO -    0 |TOTAL                                 |       38        0|   12979        0|
[task 2021-04-28T10:22:00.140Z] 10:22:00     INFO - <...>```