Bug: Intermittent browser/base/content/test/performance/browser_windowclose.js | Uncaught exception - [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://mochitests/content/browser/browser/base/content/test/perfo
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-09-22 01:54:53+00:00
Resolved: 2022-03-22 17:01:48+00:00

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

---
```
[task 2021-09-22T00:53:58.286Z] 00:53:58     INFO - TEST-START | browser/base/content/test/performance/browser_windowclose.js
[task 2021-09-22T00:53:58.539Z] 00:53:58     INFO - GECKO(5044) | [GFX1]: Failed to create DrawTarget, Type: 3 Size: Size(1280,1031)
[task 2021-09-22T00:53:58.587Z] 00:53:58     INFO - GECKO(5044) | JavaScript error: chrome://mochitests/content/browser/browser/base/content/test/performance/head.js, line 418: NS_ERROR_FAILURE
[task 2021-09-22T00:53:58.651Z] 00:53:58     INFO - TEST-INFO | started process screenshot
[task 2021-09-22T00:53:58.705Z] 00:53:58     INFO - TEST-INFO | screenshot: exit 0
[task 2021-09-22T00:53:58.705Z] 00:53:58     INFO - Buffered messages logged at 00:53:58
[task 2021-09-22T00:53:58.706Z] 00:53:58     INFO - Entering test bound 
[task 2021-09-22T00:53:58.707Z] 00:53:58     INFO - TEST-PASS | browser/base/content/test/performance/browser_windowclose.js | We shouldn't have added any new expected reflows for window close. - 0 == 0 - 
[task 2021-09-22T00:53:58.707Z] 00:53:58     INFO - Console message: [JavaScript Error: "NS_ERROR_FAILURE" {file: "chrome://mochitests/content/browser/browser/base/content/test/performance/head.js" line: 418}]
[task 2021-09-22T00:53:58.708Z] 00:53:58     INFO - TEST-PASS | browser/base/content/test/performance/browser_windowclose.js | 0 unexpected reflows - true == true - 
[task 2021-09-22T00:53:58.709Z] 00:53:58     INFO - Buffered messages finished
[task 2021-09-22T00:53:58.710Z] 00:53:58     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_windowclose.js | Uncaught exception - [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://mochitests/content/browser/browser/base/content/test/performance/head.js :: afterPaintListener :: line 418"  data: no]
[task 2021-09-22T00:53:58.710Z] 00:53:58     INFO - Stack trace:
[task 2021-09-22T00:53:58.710Z] 00:53:58     INFO - afterPaintListener@chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:418:9
[task 2021-09-22T00:53:58.710Z] 00:53:58     INFO - recordFrames@chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:454:5
[task 2021-09-22T00:53:58.710Z] 00:53:58     INFO - withPerfObserver@chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:684:35
[task 2021-09-22T00:53:58.710Z] 00:53:58     INFO - @chrome://mochitests/content/browser/browser/base/content/test/performance/browser_windowclose.js:45:9
[task 2021-09-22T00:53:58.711Z] 00:53:58     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-22T00:53:58.713Z] 00:53:58     INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_windowclose.js | A promise chain failed to handle a rejection: [Exception... "Failure"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://mochitests/content/browser/browser/base/content/test/performance/head.js :: afterPaintListener :: line 418"  data: no] - stack: afterPaintListener@chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:418:9
[task 2021-09-22T00:53:58.714Z] 00:53:58     INFO - recordFrames@chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:454:5
[task 2021-09-22T00:53:58.714Z] 00:53:58     INFO - withPerfObserver@chrome://mochitests/content/browser/browser/base/content/test/performance/head.js:684:35
[task 2021-09-22T00:53:58.714Z] 00:53:58     INFO - @chrome://mochitests/content/browser/browser/base/content/test/performance/browser_windowclose.js:45:9
[task 2021-09-22T00:53:58.714Z] 00:53:58     INFO - Rejection date: Wed Sep 22 2021 00:53:58 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 285
[task 2021-09-22T00:53:58.714Z] 00:53:58     INFO - Stack trace:
[task 2021-09-22T00:53:58.714Z] 00:53:58     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:285
[task 2021-09-22T00:53:58.714Z] 00:53:58     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1122
[task 2021-09-22T00:53:58.715Z] 00:53:58     INFO - Leaving test bound 
[task 2021-09-22T00:53:58.716Z] 00:53:58     INFO - GECKO(5044) | MEMORY STAT | vsize 1751MB | vsizeMaxContiguous 37MB | residentFast 914MB | heapAllocated 895MB
[task 2021-09-22T00:53:58.716Z] 00:53:58     INFO - TEST-OK | browser/base/content/test/performance/browser_windowclose.js | took 385ms
[task 2021-09-22T00:53:58.717Z] 00:53:58     INFO - checking window state
[task 2021-09-22T00:53:58.717Z] 00:53:58     INFO - TEST-START | browser/base/content/test/performance/browser_windowopen.js
```