Bug: Intermittent browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | Test timed out | Uncaught exception received from previously timed out test - loadend listener on #thepreviewimage not removed before the end of test
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-09-15 14:00:30+00:00
Resolved: 2022-07-26 00:15:38+00:00

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

---
```
[task 2021-09-15T11:28:12.165Z] 11:28:12     INFO - TEST-START | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js
[task 2021-09-15T11:28:12.176Z] 11:28:12     INFO - GECKO(5828) | Chrome file doesn't exist: Z:\task_163170361174545\build\tests\mochitest\browser\browser\base\content\test\pageinfo\head.js
[task 2021-09-15T11:28:12.185Z] 11:28:12     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 14b8f305000 == 4 [pid = 6844] [id = 3]
[task 2021-09-15T11:28:12.185Z] 11:28:12     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 9 (14b8f2ac200) [pid = 6844] [serial = 9] [outer = 0]
[task 2021-09-15T11:28:12.186Z] 11:28:12     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 10 (14b8f308800) [pid = 6844] [serial = 10] [outer = 14b8f2ac200]
[task 2021-09-15T11:28:12.214Z] 11:28:12     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 11 (14b8f3e3c00) [pid = 6844] [serial = 11] [outer = 14b8f2ac200]
[task 2021-09-15T11:28:12.509Z] 11:28:12     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 22ed81e2c00 == 9 [pid = 7748] [id = 8]
[task 2021-09-15T11:28:12.522Z] 11:28:12     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 18 (22ed7e48e40) [pid = 7748] [serial = 18] [outer = 0]
[task 2021-09-15T11:28:12.522Z] 11:28:12     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 19 (22ed8bf2000) [pid = 7748] [serial = 19] [outer = 22ed7e48e40]
[task 2021-09-15T11:28:12.528Z] 11:28:12     INFO - GECKO(5828) | [Parent 7748, Main Thread] WARNING: NS_ENSURE_TRUE(uri) failed: file /builds/worker/checkouts/gecko/caps/BasePrincipal.cpp:1332
[task 2021-09-15T11:28:12.528Z] 11:28:12     INFO - GECKO(5828) | [Parent 7748, Main Thread] WARNING: NS_ENSURE_TRUE(rootFrame) failed: file /builds/worker/checkouts/gecko/dom/base/nsGlobalWindowOuter.cpp:4233
[task 2021-09-15T11:28:12.573Z] 11:28:12     INFO - GECKO(5828) | [Parent 7748, Main Thread] WARNING: NS_ENSURE_TRUE(root) failed: file /builds/worker/checkouts/gecko/layout/base/nsDocumentViewer.cpp:2616
[task 2021-09-15T11:28:12.597Z] 11:28:12     INFO - GECKO(5828) | Warning: asking to enable_gpu_markers but no supporting extension was found
[task 2021-09-15T11:28:14.736Z] 11:28:14     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 22ecc58d000 == 8 [pid = 7748] [id = 0] [url = chrome://gfxsanity/content/sanityparent.html]
[task 2021-09-15T11:28:14.767Z] 11:28:14     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 22ed67e5800 == 7 [pid = 7748] [id = 6] [url = chrome://browser/content/pageinfo/pageInfo.xhtml]
[task 2021-09-15T11:28:14.783Z] 11:28:14     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 22ed5c27000 == 6 [pid = 7748] [id = 7] [url = chrome://browser/content/pageinfo/pageInfo.xhtml]
[task 2021-09-15T11:28:15.102Z] 11:28:15     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 18 (22ebfdd2900) [pid = 7748] [serial = 1] [outer = 0] [url = chrome://gfxsanity/content/sanityparent.html]
[task 2021-09-15T11:28:15.702Z] 11:28:15     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 24988c6c000 == 1 [pid = 1628] [id = 1] [url = about:blank]
[task 2021-09-15T11:28:15.704Z] 11:28:15     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 249885b2000 == 0 [pid = 1628] [id = 0] [url = about:blank]
[task 2021-09-15T11:28:15.717Z] 11:28:15     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (2498851fe40) [pid = 1628] [serial = 5] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:16.905Z] 11:28:16     INFO - GECKO(5828) | [Child 4296: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 2459d179c00 == 2 [pid = 4296] [id = 1] [url = about:blank]
[task 2021-09-15T11:28:16.908Z] 11:28:16     INFO - GECKO(5828) | [Child 4296: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 2459b7b8c00 == 1 [pid = 4296] [id = 0] [url = chrome://gfxsanity/content/sanitytest.html]
[task 2021-09-15T11:28:16.920Z] 11:28:16     INFO - GECKO(5828) | [Child 4296: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (2459b7bf900) [pid = 4296] [serial = 1] [outer = 0] [url = chrome://gfxsanity/content/sanitytest.html]
[task 2021-09-15T11:28:16.929Z] 11:28:16     INFO - GECKO(5828) | [Child 4296: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (2459b7bf580) [pid = 4296] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:19.132Z] 11:28:19     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 17 (22ecc73e800) [pid = 7748] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:19.135Z] 11:28:19     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 16 (22ed31bf400) [pid = 7748] [serial = 10] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:19.408Z] 11:28:19     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 15 (22ed8a5e740) [pid = 7748] [serial = 16] [outer = 0] [url = chrome://browser/content/pageinfo/pageInfo.xhtml]
[task 2021-09-15T11:28:19.414Z] 11:28:19     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (22ed58fdac0) [pid = 7748] [serial = 14] [outer = 0] [url = chrome://browser/content/pageinfo/pageInfo.xhtml]
[task 2021-09-15T11:28:19.843Z] 11:28:19     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (249885b3000) [pid = 1628] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:19.846Z] 11:28:19     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (24988c78400) [pid = 1628] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:19.891Z] 11:28:19     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (2498851f900) [pid = 1628] [serial = 1] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:20.275Z] 11:28:20     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 14b8c4bd800 == 3 [pid = 6844] [id = 0] [url = https://example.com/browser/browser/base/content/test/pageinfo/image.html]
[task 2021-09-15T11:28:20.278Z] 11:28:20     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 14b8f30d400 == 2 [pid = 6844] [id = 2] [url = http://example.com/browser/browser/base/content/test/pageinfo/moz.png]
[task 2021-09-15T11:28:20.279Z] 11:28:20     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 14b8c4bf000 == 1 [pid = 6844] [id = 1] [url = http://example.com/browser/browser/base/content/test/pageinfo/iframes.html]
[task 2021-09-15T11:28:20.360Z] 11:28:20     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (14b8c42bac0) [pid = 6844] [serial = 4] [outer = 0] [url = http://example.com/browser/browser/base/content/test/pageinfo/iframes.html]
[task 2021-09-15T11:28:20.361Z] 11:28:20     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (14b8c42b740) [pid = 6844] [serial = 1] [outer = 0] [url = https://example.com/browser/browser/base/content/test/pageinfo/image.html]
[task 2021-09-15T11:28:20.362Z] 11:28:20     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (14b8f2ac740) [pid = 6844] [serial = 7] [outer = 0] [url = http://example.com/browser/browser/base/content/test/pageinfo/moz.png]
[task 2021-09-15T11:28:21.047Z] 11:28:21     INFO - GECKO(5828) | [Child 4296: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (2459d178c00) [pid = 4296] [serial = 3] [outer = 0] [url = chrome://gfxsanity/content/sanitytest.html]
[task 2021-09-15T11:28:21.050Z] 11:28:21     INFO - GECKO(5828) | [Child 4296: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (2459b7b9c00) [pid = 4296] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:21.051Z] 11:28:21     INFO - GECKO(5828) | [Child 4296: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (2459d17ac00) [pid = 4296] [serial = 5] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:21.626Z] 11:28:21     INFO - GECKO(5828) | [Child 1868: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 14 (20d3bbc8c00) [pid = 1868] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:21.629Z] 11:28:21     INFO - GECKO(5828) | [Child 1868: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (20d3bbc7400) [pid = 1868] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:21.630Z] 11:28:21     INFO - GECKO(5828) | [Child 1868: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (20d3d4a3400) [pid = 1868] [serial = 6] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:21.630Z] 11:28:21     INFO - GECKO(5828) | [Child 1868: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 11 (20d3d4a5000) [pid = 1868] [serial = 8] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:21.631Z] 11:28:21     INFO - GECKO(5828) | [Child 1868: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 10 (20d3d4a6c00) [pid = 1868] [serial = 10] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:21.690Z] 11:28:21     INFO - GECKO(5828) | [Child 1868: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 9 (20d3d4bc040) [pid = 1868] [serial = 5] [outer = 0] [url = moz-extension://f1a16140-caac-4faa-a065-98128be927a6/_generated_background_page.html]
[task 2021-09-15T11:28:21.701Z] 11:28:21     INFO - GECKO(5828) | [Child 1868: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 20d3d4a2000 == 4 [pid = 1868] [id = 2] [url = moz-extension://f1a16140-caac-4faa-a065-98128be927a6/_generated_background_page.html]
[task 2021-09-15T11:28:22.027Z] 11:28:22     INFO - GECKO(5828) | [Child 3460: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (2add11b6800) [pid = 3460] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:23.454Z] 11:28:23     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 13 (22ed7f21400) [pid = 7748] [serial = 15] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:23.456Z] 11:28:23     INFO - GECKO(5828) | [Parent 7748: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 12 (22ed89f3c00) [pid = 7748] [serial = 17] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:23.987Z] 11:28:23     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (24981ebcc00) [pid = 1628] [serial = 3] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:23.990Z] 11:28:23     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (24988c77000) [pid = 1628] [serial = 4] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:24.420Z] 11:28:24     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 7 (14b8c4be800) [pid = 6844] [serial = 2] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:24.423Z] 11:28:24     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 6 (14b8c4c0000) [pid = 6844] [serial = 5] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:24.424Z] 11:28:24     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 5 (14b8f308800) [pid = 6844] [serial = 10] [outer = 0] [url = about:blank]
[task 2021-09-15T11:28:24.425Z] 11:28:24     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (14b8cc75000) [pid = 6844] [serial = 3] [outer = 0] [url = https://example.com/browser/browser/base/content/test/pageinfo/image.html]
[task 2021-09-15T11:28:24.426Z] 11:28:24     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (14b8c4c1000) [pid = 6844] [serial = 8] [outer = 0] [url = http://example.com/browser/browser/base/content/test/pageinfo/moz.png]
[task 2021-09-15T11:28:24.426Z] 11:28:24     INFO - GECKO(5828) | [Child 6844: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (14b8f308000) [pid = 6844] [serial = 6] [outer = 0] [url = http://example.com/browser/browser/base/content/test/pageinfo/iframes.html]
[task 2021-09-15T11:28:25.793Z] 11:28:25     INFO - GECKO(5828) | [Child 1868: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 8 (20d3db56c00) [pid = 1868] [serial = 13] [outer = 0] [url = moz-extension://f1a16140-caac-4faa-a065-98128be927a6/_generated_background_page.html]
[task 2021-09-15T11:29:42.206Z] 11:29:42     INFO - TEST-INFO | started process screenshot
[task 2021-09-15T11:29:42.830Z] 11:29:42     INFO - TEST-INFO | screenshot: exit 0
[task 2021-09-15T11:29:42.841Z] 11:29:42     INFO - Buffered messages logged at 11:28:12
[task 2021-09-15T11:29:42.842Z] 11:29:42     INFO - Entering test bound 
[task 2021-09-15T11:29:42.844Z] 11:29:42     INFO - Console message: [JavaScript Error: "The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol." {file: "data:text/html,<style type='text/css'>%23test-image,%23not-test-image {background-image: url('about:logo?c');}</style><img src='about:logo?b' height=300 width=350 alt=2 id='not-test-image'><img src='about:logo?b' height=300 width=350 alt=2><img src='about:logo?a' height=200 width=250><img src='about:logo?b' height=200 width=250 alt=1><img src='about:logo?b' height=100 width=150 alt=2 id='test-image'>" line: 0}]
[task 2021-09-15T11:29:42.844Z] 11:29:42     INFO - Buffered messages logged at 11:28:32
[task 2021-09-15T11:29:42.845Z] 11:29:42     INFO - Console message: [JavaScript Warning: "telemetry.state_file_read_errors - Unknown scalar."]
[task 2021-09-15T11:29:42.846Z] 11:29:42     INFO - Console message: [JavaScript Warning: "telemetry.generated_new_client_id - Unknown scalar."]
[task 2021-09-15T11:29:42.846Z] 11:29:42     INFO - Buffered messages finished
[task 2021-09-15T11:29:42.847Z] 11:29:42     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | Test timed out - 
[task 2021-09-15T11:29:42.847Z] 11:29:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-15T11:29:42.848Z] 11:29:42     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | Uncaught exception received from previously timed out test - loadend listener on #thepreviewimage not removed before the end of test
[task 2021-09-15T11:29:42.848Z] 11:29:42     INFO - GECKO(5828) | MEMORY STAT | vsize 2104218MB | vsizeMaxContiguous 65623262MB | residentFast 275MB | heapAllocated 81MB
[task 2021-09-15T11:29:42.849Z] 11:29:42     INFO - TEST-OK | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | took 90052ms
[task 2021-09-15T11:29:42.849Z] 11:29:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-15T11:29:42.850Z] 11:29:42     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | Found a tab after previous test timed out: data:text/html,<style type='text/css'>%23test-image,%23not-test-image {background-image: url('about:logo?c');}</style><img src='about:logo?b' height=300 width=350 alt=2 id='not-test-image'><img src='about:logo?b' height=300 width=350 alt=2><img src='about:logo?a' height=200 width=250><img src='about:logo?b' height=200 width=250 alt=1><img src='about:logo?b' height=100 width=150 alt=2 id='test-image'> - 
[task 2021-09-15T11:29:42.851Z] 11:29:42     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 24981e21c00 == 1 [pid = 1628] [id = 2]
[task 2021-09-15T11:29:42.851Z] 11:29:42     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (2498851f580) [pid = 1628] [serial = 7] [outer = 0]
[task 2021-09-15T11:29:42.852Z] 11:29:42     INFO - GECKO(5828) | [Child 1628: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (24981ebcc00) [pid = 1628] [serial = 8] [outer = 2498851f580]
[task 2021-09-15T11:29:42.852Z] 11:29:42     INFO - checking window state
[task 2021-09-15T11:29:42.853Z] 11:29:42     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-15T11:29:42.853Z] 11:29:42     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/pageinfo/browser_pageinfo_image_info.js | Found a Browser:page-info after previous test timed out - 
[task 2021-09-15T11:29:42.854Z] 11:29:42     INFO - GECKO(5828) | must wait for focus
[task 2021-09-15T11:29:42.854Z] 11:29:42     INFO - GECKO(5828) | [GPU 7100, Compositor] WARNING: Possibly dropping task posted to updater thread: file /builds/worker/checkouts/gecko/gfx/layers/apz/src/APZUpdater.cpp:361
[task 2021-09-15T11:29:42.855Z] 11:29:42     INFO - TEST-START | browser/base/content/test/pageinfo/browser_pageinfo_images.js
```