Bug: Intermittent TV browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | Uncaught exception in test bound test - at resource://testing-common/BrowserTestUtils.sys.mjs:333 - {}
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2023-02-21 22:53:05+00:00
Resolved: 2023-02-21 22:54:58+00:00

**Filed by:** abutkovits [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=406436324&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/IsUbMbFuSyKksKgxEBtU_g/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/IsUbMbFuSyKksKgxEBtU_g/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2023-02-21T21:50:09.243Z] 21:50:09     INFO - TEST-PASS | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | The screenshot toolbar button is visible - 
[task 2023-02-21T21:50:09.244Z] 21:50:09     INFO - Buffered messages finished
[task 2023-02-21T21:50:09.245Z] 21:50:09     INFO - TEST-UNEXPECTED-FAIL | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | Uncaught exception in test bound test - at resource://testing-common/BrowserTestUtils.sys.mjs:333 - {}
[task 2023-02-21T21:50:09.245Z] 21:50:09     INFO - Stack trace:
[task 2023-02-21T21:50:09.245Z] 21:50:09     INFO - is_visible@resource://testing-common/BrowserTestUtils.sys.mjs:333:15
[task 2023-02-21T21:50:09.245Z] 21:50:09     INFO - test/</<@chrome://mochitests/content/browser/browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js:33:35
[task 2023-02-21T21:50:09.245Z] 21:50:09     INFO - waitForMutationCondition@resource://testing-common/BrowserTestUtils.sys.mjs:1545:9
[task 2023-02-21T21:50:09.245Z] 21:50:09     INFO - test/<@chrome://mochitests/content/browser/browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js:29:30
[task 2023-02-21T21:50:09.246Z] 21:50:09     INFO - Leaving test bound test
[task 2023-02-21T21:50:09.246Z] 21:50:09     INFO - Not taking screenshot here: see the one that was previously logged
[task 2023-02-21T21:50:09.250Z] 21:50:09     INFO - TEST-UNEXPECTED-FAIL | browser/components/screenshots/tests/browser/browser_screenshots_page_unload.js | A promise chain failed to handle a rejection: can't access property "currentWindowGlobal", browser.browsingContext is null - stack: getActor@resource:///modules/ScreenshotsUtils.sys.mjs:159:17
[task 2023-02-21T21:50:09.250Z] 21:50:09     INFO - togglePanelAndOverlay@resource:///modules/ScreenshotsUtils.sys.mjs:211:22
[task 2023-02-21T21:50:09.250Z] 21:50:09     INFO - Rejection date: Tue Feb 21 2023 21:50:09 GMT+0000 (Greenwich Mean Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":566,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest","sourceId":532,"lineNumber":675,"columnNumber":29,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"testScope/test_finish/<","sourceId":532,"lineNumber":1680,"columnNumber":25,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"run","sourceId":532,"lineNumber":1599,"columnNumber":9,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"run@chrome://mochikit/content/browser-test.js:1599:9\n","nativeSavedFrame":{}},"formattedStack":"testScope/test_finish/<@chrome://mochikit/content/browser-test.js:1680:25\nrun@chrome://mochikit/content/browser-test.js:1599:9\n","nativeSavedFrame":{}},"formattedStack":"nextTest@chrome://mochikit/content/browser-test.js:675:29\ntestScope/test_finish/<@chrome://mochikit/content/browser-test.js:1680:25\nrun@chrome://mochikit/content/browser-test.js:1599:9\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nnextTest@chrome://mochikit/content/browser-test.js:675:29\ntestScope/test_finish/<@chrome://mochikit/content/browser-test.js:1680:25\nrun@chrome://mochikit/content/browser-test.js:1599:9\n","nativeSavedFrame":{}}
[task 2023-02-21T21:50:09.251Z] 21:50:09     INFO - Stack trace:
[task 2023-02-21T21:50:09.251Z] 21:50:09     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2023-02-21T21:50:09.251Z] 21:50:09     INFO - chrome://mochikit/content/browser-test.js:nextTest:675
[task 2023-02-21T21:50:09.251Z] 21:50:09     INFO - chrome://mochikit/content/browser-test.js:testScope/test_finish/<:1680
[task 2023-02-21T21:50:09.251Z] 21:50:09     INFO - chrome://mochikit/content/browser-test.js:run:1599
[task 2023-02-21T21:50:09.252Z] 21:50:09     INFO - GECKO(2356) | JavaScript error: resource:///modules/ScreenshotsUtils.sys.mjs, line 159: TypeError: can't access property "currentWindowGlobal", browser.browsingContext is null
[task 2023-02-21T21:50:09.252Z] 21:50:09     INFO - Console message: [JavaScript Error: "TypeError: can't access property "currentWindowGlobal", browser.browsingContext is null" {file: "resource:///modules/ScreenshotsUtils.sys.mjs" line: 159}]
[task 2023-02-21T21:50:09.253Z] 21:50:09     INFO - GECKO(2356) | [Child 7940: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1ce70c79000 == 0 [pid = 7940] [id = 0] [url = http://example.com/browser/browser/components/screenshots/tests/browser/test-page.html]
[task 2023-02-21T21:50:09.254Z] 21:50:09     INFO - GECKO(2356) | [Child 7940: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (1ce6bd80bb0) [pid = 7940] [serial = 1] [outer = 0] [url = http://example.com/browser/browser/components/screenshots/tests/browser/test-page.html]
[task 2023-02-21T21:50:09.254Z] 21:50:09     INFO - GECKO(2356) | [Child 7940: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (1ce70c7c800) [pid = 7940] [serial = 2] [outer = 0] [url = about:blank]
[task 2023-02-21T21:50:09.255Z] 21:50:09     INFO - GECKO(2356) | [Child 7940: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (1ce70c7f800) [pid = 7940] [serial = 3] [outer = 0] [url = http://example.com/browser/browser/components/screenshots/tests/browser/test-page.html]
[task 2023-02-21T21:50:09.255Z] 21:50:09     INFO - GECKO(2356) | [Child 7940, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3396
[task 2023-02-21T21:50:09.256Z] 21:50:09     INFO - GECKO(2356) | [Child 7940, Main Thread] WARNING: NS_ENSURE_TRUE(InitStaticMembers()) failed: file /builds/worker/workspace/obj-build/dist/include/mozilla/Preferences.h:129
[task 2023-02-21T21:50:09.256Z] 21:50:09     INFO - GECKO(2356) | [Child 7940, Main Thread] WARNING: NS_ENSURE_TRUE(Preferences::InitStaticMembers()) failed: file /builds/worker/checkouts/gecko/modules/libpref/Preferences.cpp:4691
[task 2023-02-21T21:50:09.393Z] 21:50:09     INFO - GECKO(2356) | [GPU 5920, Compositor] WARNING: bad Shmem: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:446
[task 2023-02-21T21:50:09.396Z] 21:50:09     INFO - GECKO(2356) | [GPU 5920, Compositor] WARNING: bad Shmem: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:446
[task 2023-02-21T21:50:09.396Z] 21:50:09     INFO - GECKO(2356) | [GPU 5920, Compositor] WARNING: bad Shmem: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:446
[task 2023-02-21T21:50:09.397Z] 21:50:09     INFO - GECKO(2356) | [GPU 5920, Compositor] WARNING: bad Shmem: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:446
[task 2023-02-21T21:50:09.413Z] 21:50:09     INFO - GECKO(2356) | [Child 2864, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.415Z] 21:50:09     INFO - GECKO(2356) | [Child 2864, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.416Z] 21:50:09     INFO - GECKO(2356) | JavaScript error: resource://gre/modules/XULStore.jsm, line 58: Error: Can't find profile directory.
[task 2023-02-21T21:50:09.416Z] 21:50:09     INFO - GECKO(2356) | [Child 2864, Main Thread] WARNING: '!mLocalStore', file /builds/worker/checkouts/gecko/dom/xul/XULPersist.cpp:146
[task 2023-02-21T21:50:09.420Z] 21:50:09     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 58}]
[task 2023-02-21T21:50:09.420Z] 21:50:09     INFO - load@resource://gre/modules/XULStore.jsm:58:15
[task 2023-02-21T21:50:09.420Z] 21:50:09     INFO - XULStore@resource://gre/modules/XULStore.jsm:17:10
[task 2023-02-21T21:50:09.420Z] 21:50:09     INFO - 
[task 2023-02-21T21:50:09.679Z] 21:50:09     INFO - GECKO(2356) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_167701017217383\AppData\Local\Temp\tmphhk0f9d5.mozrunner\runtests_leaks_tab_pid5300.log
[task 2023-02-21T21:50:09.680Z] 21:50:09     INFO - GECKO(2356) | [5300, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:345
[task 2023-02-21T21:50:09.689Z] 21:50:09     INFO - GECKO(2356) | ### XPCOM_MEM_BLOAT_LOG defined -- logging bloat/leaks to C:\Users\task_167701017217383\AppData\Local\Temp\tmphhk0f9d5.mozrunner\runtests_leaks_tab_pid7044.log
[task 2023-02-21T21:50:09.689Z] 21:50:09     INFO - GECKO(2356) | [7044, Main Thread] WARNING: XPCOM_MEM_BLOAT_LOG is set, disabling native allocations.: file /builds/worker/checkouts/gecko/tools/profiler/core/platform.cpp:345
[task 2023-02-21T21:50:09.692Z] 21:50:09     INFO - GECKO(2356) | [Child 5300, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.701Z] 21:50:09     INFO - GECKO(2356) | [Child 7044, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.714Z] 21:50:09     INFO - GECKO(2356) | [Child 5300, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.718Z] 21:50:09     INFO - GECKO(2356) | [Child 5300, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.730Z] 21:50:09     INFO - GECKO(2356) | [Child 7044, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.731Z] 21:50:09     INFO - GECKO(2356) | [Child 7044, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.732Z] 21:50:09     INFO - GECKO(2356) | [Child 5300, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.743Z] 21:50:09     INFO - GECKO(2356) | [Child 7044, Main Thread] WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005 (NS_ERROR_FAILURE): file /builds/worker/checkouts/gecko/toolkit/xre/nsXREDirProvider.cpp:478
[task 2023-02-21T21:50:09.863Z] 21:50:09     INFO - GECKO(2356) | MEMORY STAT | vsize 2112437MB | vsizeMaxContiguous 66396665MB | residentFast 307MB | heapAllo
```