Bug: Intermittent browser/components/newtab/test/browser/browser_aboutwelcome_import.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-04-11 23:37:47+00:00
Resolved: 2024-04-29 12:03:39+00:00

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

---
```
INFO - TEST-START | browser/components/newtab/test/browser/browser_aboutwelcome_import.js
[task 2023-04-11T22:34:03.713Z] 22:34:03     INFO - GECKO(1757) | [Child 1768: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 12b31b000 == 6 [pid = 1768] [id = 19]
[task 2023-04-11T22:34:03.713Z] 22:34:03     INFO - GECKO(1757) | [Child 1768: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 30 (10e0149c0) [pid = 1768] [serial = 59] [outer = 0]
[task 2023-04-11T22:34:03.714Z] 22:34:03     INFO - GECKO(1757) | [Child 1768: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 31 (12b31b800) [pid = 1768] [serial = 60] [outer = 10e0149c0]
[task 2023-04-11T22:34:03.746Z] 22:34:03     INFO - GECKO(1757) | [Child 1768: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 32 (12b336000) [pid = 1768] [serial = 61] [outer = 10e0149c0]
[task 2023-04-11T22:34:03.753Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeChild:
[task 2023-04-11T22:34:03.753Z] 22:34:03     INFO - GECKO(1757) |   Received page event DOMDocElementInserted
[task 2023-04-11T22:34:03.819Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.820Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:GET_ATTRIBUTION_DATA
[task 2023-04-11T22:34:03.822Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeChild:
[task 2023-04-11T22:34:03.823Z] 22:34:03     INFO - GECKO(1757) |   Loading about:welcome with aboutwelcome-experiment-0.2621747510393705 experiment
[task 2023-04-11T22:34:03.828Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.829Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:NEED_DEFAULT
[task 2023-04-11T22:34:03.836Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.837Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:DOES_APP_NEED_PIN
[task 2023-04-11T22:34:03.858Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.858Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:FXA_METRICS_FLOW_URI
[task 2023-04-11T22:34:03.859Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.860Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-04-11T22:34:03.860Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.860Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:SET_WELCOME_MESSAGE_SEEN
[task 2023-04-11T22:34:03.861Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.861Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:EVALUATE_SCREEN_TARGETING
[task 2023-04-11T22:34:03.862Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.862Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-04-11T22:34:03.869Z] 22:34:03     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:03.869Z] 22:34:03     INFO - GECKO(1757) |   Received content event: AWPage:GET_SELECTED_THEME
[task 2023-04-11T22:34:05.607Z] 22:34:05     INFO - GECKO(1757) | [Child 1768: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 12b337c00 == 5 [pid = 1768] [id = 15] [url = about:welcome]
<...>
INFO - GECKO(1757) | [Child 1768: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (11984ec00) [pid = 1768] [serial = 55] [outer = 0] [url = about:welcome]
[task 2023-04-11T22:34:11.174Z] 22:34:11     INFO - GECKO(1757) | 2023-04-11 22:34:11.173 firefox[1757:26068] Persistent UI failed to open file file:///Users/cltbld/Library/Saved%20Application%20State/org.mozilla.nightlydebug.savedState/window_1.data: No such file or directory (2)
[task 2023-04-11T22:34:11.415Z] 22:34:11     INFO - GECKO(1757) | [WARN  rkv::backend::impl_safe::environment] `load_ratio()` is irrelevant for this storage backend.
[task 2023-04-11T22:34:11.422Z] 22:34:11     INFO - GECKO(1757) | console.error: (new Error("Polling for changes failed: Unexpected content-type \"text/plain;charset=US-ASCII\".", "resource://services-settings/remote-settings.sys.mjs", 324))
[task 2023-04-11T22:34:11.991Z] 22:34:11     INFO - GECKO(1757) | [Child 1766: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 11ed42400 == 0 [pid = 1766] [id = 0] [url = about:blank]
[task 2023-04-11T22:34:12.715Z] 22:34:12     INFO - TEST-INFO | started process screencapture
[task 2023-04-11T22:34:12.836Z] 22:34:12     INFO - TEST-INFO | screencapture: exit 0
[task 2023-04-11T22:34:12.836Z] 22:34:12     INFO - Buffered messages logged at 22:34:03
[task 2023-04-11T22:34:12.836Z] 22:34:12     INFO - Entering test bound test_wait_import_modal
[task 2023-04-11T22:34:12.837Z] 22:34:12     INFO - Buffered messages finished
[task 2023-04-11T22:34:12.837Z] 22:34:12     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_aboutwelcome_import.js | Uncaught exception in test bound test_wait_import_modal - Should render main.AW_IMPORT in renders IMPORT screen - timed out after 50 tries.
[task 2023-04-11T22:34:12.838Z] 22:34:12     INFO - Leaving test bound test_wait_import_modal
[task 2023-04-11T22:34:12.838Z] 22:34:12     INFO - Entering test bound test_wait_import_spotlight
[task 2023-04-11T22:34:12.839Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 12a531800 == 6 [pid = 1757] [id = 5]
[task 2023-04-11T22:34:12.839Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 11 (13acb0470) [pid = 1757] [serial = 12] [outer = 0]
[task 2023-04-11T22:34:12.840Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 12 (12dcc7c00) [pid = 1757] [serial = 13] [outer = 13acb0470]
[task 2023-04-11T22:34:12.840Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 12dcca400 == 7 [pid = 1757] [id = 6]
[task 2023-04-11T22:34:12.840Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 13 (13acb3ca0) [pid = 1757] [serial = 14] [outer = 0]
[task 2023-04-11T22:34:12.841Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 14 (12e6a2800) [pid = 1757] [serial = 15] [outer = 13acb3ca0]
[task 2023-04-11T22:34:12.841Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 12e6a3000 == 8 [pid = 1757] [id = 7]
[task 2023-04-11T22:34:12.842Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 15 (13acb0850) [pid = 1757] [serial = 16] [outer = 0]
[task 2023-04-11T22:34:12.842Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 16 (12e6a4c00) [pid = 1757] [serial = 17] [outer = 13acb0850]
[task 2023-04-11T22:34:12.843Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/chrome/nsChromeRegistry.cpp:182
[task 2023-04-11T22:34:12.843Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: 'NS_FAILED(rv)', file /builds/worker/checkouts/gecko/chrome/nsChromeProtocolHandler.cpp:73
[task 2023-04-11T22:34:12.843Z] 22:34:12     INFO - Console message: Invalid chrome URI (need path): chrome://browser/
[task 2023-04-11T22:34:12.844Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 17 (13fb28800) [pid = 1757] [serial = 18] [outer = 13acb3ca0]
[task 2023-04-11T22:34:12.844Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: Failed to retarget HTML data delivery to the parser thread.: file /builds/worker/checkouts/gecko/parser/html/nsHtml5StreamParser.cpp:1235
[task 2023-04-11T22:34:12.869Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 13fca3000 == 9 [pid = 1757] [id = 8]
[task 2023-04-11T22:34:12.869Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 18 (1381dada0) [pid = 1757] [serial = 19] [outer = 0]
[task 2023-04-11T22:34:12.872Z] 22:34:12     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 19 (13fca3400) [pid = 1757] [serial = 20] [outer = 1381dada0]
[task 2023-04-11T22:34:12.973Z] 22:34:12     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:12.974Z] 22:34:12     INFO - GECKO(1757) |   Received content event: AWPage:SET_WELCOME_MESSAGE_SEEN
[task 2023-04-11T22:34:12.974Z] 22:34:12     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:12.974Z] 22:34:12     INFO - GECKO(1757) |   Received content event: AWPage:EVALUATE_SCREEN_TARGETING
[task 2023-04-11T22:34:12.975Z] 22:34:12     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:12.975Z] 22:34:12     INFO - GECKO(1757) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-04-11T22:34:12.976Z] 22:34:12     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:12.976Z] 22:34:12     INFO - GECKO(1757) |   Received content event: AWPage:GET_SELECTED_THEME
INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:13.015Z] 22:34:13     INFO - GECKO(1757) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-04-11T22:34:13.024Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 20 (1314a5000) [pid = 1757] [serial = 21] [outer = 1381dada0]
[task 2023-04-11T22:34:13.223Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1298abc00 == 10 [pid = 1757] [id = 9]
[task 2023-04-11T22:34:13.224Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 21 (137f70280) [pid = 1757] [serial = 22] [outer = 0]
[task 2023-04-11T22:34:13.224Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 22 (1298ac000) [pid = 1757] [serial = 23] [outer = 137f70280]
[task 2023-04-11T22:34:13.347Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-11T22:34:13.358Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-11T22:34:13.403Z] 22:34:13     INFO - GECKO(1757) | ###!!! ERROR: Potential deadlock detected:
[task 2023-04-11T22:34:13.403Z] 22:34:13     INFO - GECKO(1757) | === Cyclical dependency starts at
[task 2023-04-11T22:34:13.404Z] 22:34:13     INFO - GECKO(1757) | --- RecursiveMutex : gfxPlatformFontList lock calling context
[task 2023-04-11T22:34:13.404Z] 22:34:13     INFO - GECKO(1757) |   [stack trace unavailable]
[task 2023-04-11T22:34:13.404Z] 22:34:13     INFO - GECKO(1757) | --- Next dependency:
[task 2023-04-11T22:34:13.405Z] 22:34:13     INFO - GECKO(1757) | --- Mutex : gfxFontFamily lock (currently acquired)
[task 2023-04-11T22:34:13.405Z] 22:34:13     INFO - GECKO(1757) |  calling context
[task 2023-04-11T22:34:13.405Z] 22:34:13     INFO - GECKO(1757) |   [stack trace unavailable]
[task 2023-04-11T22:34:13.406Z] 22:34:13     INFO - GECKO(1757) | === Cycle completed at
[task 2023-04-11T22:34:13.406Z] 22:34:13     INFO - GECKO(1757) | --- RecursiveMutex : gfxPlatformFontList lock calling context
[task 2023-04-11T22:34:13.407Z] 22:34:13     INFO - GECKO(1757) |   [stack trace unavailable]
[task 2023-04-11T22:34:13.407Z] 22:34:13     INFO - GECKO(1757) | Deadlock may happen for some other execution
[task 2023-04-11T22:34:13.407Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: Potential deadlock detected:
[task 2023-04-11T22:34:13.408Z] 22:34:13     INFO - GECKO(1757) | Cyclical dependency starts at
[task 2023-04-11T22:34:13.408Z] 22:34:13     INFO - GECKO(1757) | RecursiveMutex : gfxPlatformFontList lock
[task 2023-04-11T22:34:13.408Z] 22:34:13     INFO - GECKO(1757) | Next dependency:
[task 2023-04-11T22:34:13.409Z] 22:34:13     INFO - GECKO(1757) | Mutex : gfxFontFamily lock (currently acquired)
[task 2023-04-11T22:34:13.409Z] 22:34:13     INFO - GECKO(1757) | Cycle completed at
[task 2023-04-11T22:34:13.409Z] 22:34:13     INFO - GECKO(1757) | RecursiveMutex : gfxPlatformFontList lock
[task 2023-04-11T22:34:13.410Z] 22:34:13     INFO - GECKO(1757) | Deadlock may happen for some other execution
[task 2023-04-11T22:34:13.410Z] 22:34:13     INFO - GECKO(1757) | : file /builds/worker/checkouts/gecko/xpcom/threads/BlockingResourceBase.cpp:247
[task 2023-04-11T22:34:13.644Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 23 (12335d000) [pid = 1757] [serial = 24] [outer = 137f70280]
[task 2023-04-11T22:34:13.715Z] 22:34:13     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:13.715Z] 22:34:13     INFO - GECKO(1757) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-04-11T22:34:13.715Z] 22:34:13     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:13.716Z] 22:34:13     INFO - GECKO(1757) |   Received content event: AWPage:SPECIAL_ACTION
[task 2023-04-11T22:34:13.716Z] 22:34:13     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:13.716Z] 22:34:13     INFO - GECKO(1757) |   Received content event: AWPage:WAIT_FOR_MIGRATION_CLOSE
[task 2023-04-11T22:34:13.876Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-11T22:34:13.879Z] 22:34:13     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:475
[task 2023-04-11T22:34:14.206Z] 22:34:14     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:163
[task 2023-04-11T22:34:14.206Z] 22:34:14     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: '!inner', file /builds/worker/checkouts/gecko/dom/ipc/jsactor/JSWindowActorProtocol.cpp:163
[task 2023-04-11T22:34:14.208Z] 22:34:14     INFO - GECKO(1757) | [Parent 1757, Main Thread] WARNING: '!mCancelable', file /builds/worker/checkouts/gecko/image/imgRequestProxy.cpp:476
[task 2023-04-11T22:34:14.212Z] 22:34:14     INFO - Leaving test bound test_wait_import_spotlight
INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:14.243Z] 22:34:14     INFO - GECKO(1757) |   Received content event: AWPage:TELEMETRY_EVENT
[task 2023-04-11T22:34:14.720Z] 22:34:14     INFO - GECKO(1757) | MEMORY STAT | vsize 16289MB | residentFast 426MB | heapAllocated 173MB
[task 2023-04-11T22:34:14.720Z] 22:34:14     INFO - TEST-OK | browser/components/newtab/test/browser/browser_aboutwelcome_import.js | took 11039ms
[task 2023-04-11T22:34:14.721Z] 22:34:14     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-04-11T22:34:14.721Z] 22:34:14     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_aboutwelcome_import.js | Found an unexpected tab at the end of test run: about:welcome - 
[task 2023-04-11T22:34:14.750Z] 22:34:14     INFO - GECKO(1757) | [Child 1766: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 11ed46c00 == 1 [pid = 1766] [id = 1]
[task 2023-04-11T22:34:14.750Z] 22:34:14     INFO - GECKO(1757) | [Child 1766: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (1057147d0) [pid = 1766] [serial = 3] [outer = 0]
[task 2023-04-11T22:34:14.751Z] 22:34:14     INFO - GECKO(1757) | [Child 1766: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (11ed47c00) [pid = 1766] [serial = 4] [outer = 1057147d0]
[task 2023-04-11T22:34:14.769Z] 22:34:14     INFO - checking window state
[task 2023-04-11T22:34:14.802Z] 22:34:14     INFO - GECKO(1757) | console.debug: AboutWelcomeParent:
[task 2023-04-11T22:34:14.802Z] 22:34:14     INFO - GECKO(1757) |   Terminate reason is welcome-tab-closed
[task 2023-04-11T22:34:14.809Z] 22:34:14     INFO - TEST-START | browser/components/newtab/test/browser/browser_aboutwelcome_mobile_downloads.js
```