Bug: Intermittent TV browser/components/shell/test/browser_headless_screenshot_3.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. -
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-03-02 06:08:44+00:00
Resolved: 2022-01-11 17:04:53+00:00

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

---
```
[task 2021-03-02T01:41:03.465Z] 01:41:03     INFO - TEST-START | browser/components/shell/test/browser_headless_screenshot_3.js
[task 2021-03-02T01:41:04.211Z] 01:41:04     INFO - GECKO(2461) | *** You are running in chaos test mode. See ChaosMode.h. ***
[task 2021-03-02T01:41:04.211Z] 01:41:04     INFO - GECKO(2461) | *** You are running in headless mode.
[task 2021-03-02T01:41:04.567Z] 01:41:04     INFO - GECKO(2461) | >>> 1614649264531	Marionette	TRACE	Marionette enabled
[task 2021-03-02T01:41:04.567Z] 01:41:04     INFO - GECKO(2461) | 1614649264532	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-03-02T01:41:04.692Z] 01:41:04     INFO - GECKO(2461) | >>> 1614649264673	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-03-02T01:41:04.823Z] 01:41:04     INFO - GECKO(2461) | >>> expected exactly one URL when using `screenshot`
[task 2021-03-02T01:41:05.759Z] 01:41:05     INFO - GECKO(2461) | >>> console.log: "RemoteSettingsWorker error: Error: Can't import when we've started shutting down."
[task 2021-03-02T01:41:07.535Z] 01:41:07     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 215: Error: Unable to arm timer, the object has been finalized.
<...>
[task 2021-03-02T01:41:16.010Z] 01:41:16     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 215: Error: Unable to arm timer, the object has been finalized.
[task 2021-03-02T01:41:16.207Z] 01:41:16     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 718: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "IOUtils Blocker"
[task 2021-03-02T01:41:18.499Z] 01:41:18     INFO - GECKO(2461) | *** You are running in chaos test mode. See ChaosMode.h. ***
[task 2021-03-02T01:41:18.499Z] 01:41:18     INFO - GECKO(2461) | *** You are running in headless mode.
[task 2021-03-02T01:41:18.870Z] 01:41:18     INFO - GECKO(2461) | >>> 1614649278843	Marionette	TRACE	Marionette enabled
[task 2021-03-02T01:41:18.874Z] 01:41:18     INFO - GECKO(2461) | >>> 1614649278843	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-03-02T01:41:19.003Z] 01:41:19     INFO - GECKO(2461) | >>> 1614649278980	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-03-02T01:41:23.611Z] 01:41:23     INFO - GECKO(2461) | >>> Screenshot saved to: /Users/cltbld/tasks/task_1614647768/build/tests/mochitest/screenshot.png
[task 2021-03-02T01:41:26.266Z] 01:41:26     INFO - GECKO(2461) | >>> console.error: (new Error("Connection closed before committing the transaction.", "resource://gre/modules/Sqlite.jsm", 687))
[task 2021-03-02T01:41:26.814Z] 01:41:26     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: Object
[task 2021-03-02T01:41:27.452Z] 01:41:27     INFO - GECKO(2461) | *** You are running in chaos test mode. See ChaosMode.h. ***
[task 2021-03-02T01:41:27.452Z] 01:41:27     INFO - GECKO(2461) | *** You are running in headless mode.
[task 2021-03-02T01:41:27.870Z] 01:41:27     INFO - GECKO(2461) | >>> 1614649287834	Marionette	TRACE	Marionette enabled
[task 2021-03-02T01:41:27.874Z] 01:41:27     INFO - GECKO(2461) | >>> 1614649287834	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-03-02T01:41:27.995Z] 01:41:27     INFO - GECKO(2461) | >>> 1614649287973	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-03-02T01:41:32.173Z] 01:41:32     INFO - GECKO(2461) | >>> Screenshot saved to: /Users/cltbld/tasks/task_1614647768/build/tests/mochitest/screenshot.png
[task 2021-03-02T01:41:34.522Z] 01:41:34     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 215: Error: Unable to arm timer, the object has been finalized.
[task 2021-03-02T01:41:34.522Z] 01:41:34     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 215: Error: Unable to arm timer, the object has been finalized.
[task 2021-03-02T01:41:34.725Z] 01:41:34     INFO - GECKO(2461) | >>> console.error: (new Error("Connection closed before committing the transaction.", "resource://gre/modules/Sqlite.jsm", 687))
[task 2021-03-02T01:41:35.157Z] 01:41:35     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 718: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "Flush WebExtension StartupCache"
[task 2021-03-02T01:41:35.336Z] 01:41:35     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: Object
[task 2021-03-02T01:41:35.994Z] 01:41:35     INFO - GECKO(2461) | *** You are running in chaos test mode. See ChaosMode.h. ***
[task 2021-03-02T01:41:35.994Z] 01:41:35     INFO - GECKO(2461) | *** You are running in headless mode.
[task 2021-03-02T01:41:36.399Z] 01:41:36     INFO - GECKO(2461) | >>> 1614649296373	Marionette	TRACE	Marionette enabled
[task 2021-03-02T01:41:36.426Z] 01:41:36     INFO - GECKO(2461) | >>> 1614649296373	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-03-02T01:41:36.573Z] 01:41:36     INFO - GECKO(2461) | >>> 1614649296518	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-03-02T01:41:41.389Z] 01:41:41     INFO - GECKO(2461) | >>> Screenshot saved to: /Users/cltbld/tasks/task_1614647768/build/tests/mochitest/screenshot.png
[task 2021-03-02T01:41:43.819Z] 01:41:43     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 215: Error: Unable to arm timer, the object has been finalized.
[task 2021-03-02T01:41:43.819Z] 01:41:43     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 215: Error: Unable to arm timer, the object has been finalized.
[task 2021-03-02T01:41:44.111Z] 01:41:44     INFO - GECKO(2461) | >>> console.error: (new Error("Connection closed before committing the transaction.", "resource://gre/modules/Sqlite.jsm", 687))
[task 2021-03-02T01:41:44.464Z] 01:41:44     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 718: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "Flush WebExtension StartupCache"
[task 2021-03-02T01:41:44.693Z] 01:41:44     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: Object
[task 2021-03-02T01:41:45.344Z] 01:41:45     INFO - GECKO(2461) | *** You are running in chaos test mode. See ChaosMode.h. ***
[task 2021-03-02T01:41:45.344Z] 01:41:45     INFO - GECKO(2461) | *** You are running in headless mode.
[task 2021-03-02T01:41:45.740Z] 01:41:45     INFO - GECKO(2461) | >>> 1614649305710	Marionette	TRACE	Marionette enabled
[task 2021-03-02T01:41:45.746Z] 01:41:45     INFO - GECKO(2461) | >>> 1614649305710	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-03-02T01:41:45.888Z] 01:41:45     INFO - GECKO(2461) | >>> 1614649305853	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-03-02T01:41:50.089Z] 01:41:50     INFO - GECKO(2461) | >>> Screenshot saved to: /Users/cltbld/tasks/task_1614647768/build/tests/mochitest/screenshot.png
[task 2021-03-02T01:41:52.204Z] 01:41:52     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 215: Error: Unable to arm timer, the object has been finalized.
[task 2021-03-02T01:41:52.207Z] 01:41:52     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/DeferredTask.jsm, line 215: Error: Unable to arm timer, the object has been finalized.
[task 2021-03-02T01:41:52.483Z] 01:41:52     INFO - GECKO(2461) | >>> console.error: (new Error("Connection closed before committing the transaction.", "resource://gre/modules/Sqlite.jsm", 687))
[task 2021-03-02T01:41:52.810Z] 01:41:52     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 718: Error: Phase "profile-before-change" is finished, it is too late to register completion condition "Flush WebExtension StartupCache"
[task 2021-03-02T01:41:52.917Z] 01:41:52     INFO - GECKO(2461) | JavaScript error: resource://gre/modules/AsyncShutdown.jsm, line 575: uncaught exception: Object
[task 2021-03-02T01:41:53.833Z] 01:41:53     INFO - TEST-INFO | started process screencapture
[task 2021-03-02T01:41:53.910Z] 01:41:53     INFO - TEST-INFO | screencapture: exit 0
[task 2021-03-02T01:41:53.910Z] 01:41:53     INFO - Buffered messages logged at 01:41:03
[task 2021-03-02T01:41:53.910Z] 01:41:53     INFO - Entering test bound 
[task 2021-03-02T01:41:53.910Z] 01:41:53     INFO - Buffered messages logged at 01:41:11
[task 2021-03-02T01:41:53.911Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Firefox process should exit with code 0 - 
[task 2021-03-02T01:41:53.911Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | A screenshot should not be saved - 
[task 2021-03-02T01:41:53.911Z] 01:41:53     INFO - Buffered messages logged at 01:41:18
[task 2021-03-02T01:41:53.911Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Firefox process should exit with code 0 - 
[task 2021-03-02T01:41:53.911Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | A screenshot should not be saved - 
[task 2021-03-02T01:41:53.911Z] 01:41:53     INFO - Buffered messages logged at 01:41:27
[task 2021-03-02T01:41:53.911Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Firefox process should exit with code 0 - 
[task 2021-03-02T01:41:53.912Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | A screenshot should be saved as screenshot.png - 
[task 2021-03-02T01:41:53.912Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Screenshot should not be an empty file - 
[task 2021-03-02T01:41:53.912Z] 01:41:53     INFO - Buffered messages logged at 01:41:35
[task 2021-03-02T01:41:53.912Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Firefox process should exit with code 0 - 
[task 2021-03-02T01:41:53.912Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | A screenshot should be saved as screenshot.png - 
[task 2021-03-02T01:41:53.912Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Screenshot should not be an empty file - 
[task 2021-03-02T01:41:53.912Z] 01:41:53     INFO - Buffered messages logged at 01:41:45
[task 2021-03-02T01:41:53.913Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Firefox process should exit with code 0 - 
[task 2021-03-02T01:41:53.913Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | A screenshot should be saved as screenshot.png - 
[task 2021-03-02T01:41:53.913Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Screenshot should not be an empty file - 
[task 2021-03-02T01:41:53.913Z] 01:41:53     INFO - Buffered messages logged at 01:41:53
[task 2021-03-02T01:41:53.913Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Firefox process should exit with code 0 - 
[task 2021-03-02T01:41:53.913Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | A screenshot should be saved as screenshot.png - 
[task 2021-03-02T01:41:53.914Z] 01:41:53     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_3.js | Screenshot should not be an empty file - 
[task 2021-03-02T01:41:53.914Z] 01:41:53     INFO - Leaving test bound 
[task 2021-03-02T01:41:53.916Z] 01:41:53     INFO - Buffered messages finished
[task 2021-03-02T01:41:53.917Z] 01:41:53     INFO - TEST-UNEXPECTED-FAIL | browser/components/shell/test/browser_headless_screenshot_3.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. - 
[task 2021-03-02T01:41:53.917Z] 01:41:53     INFO - GECKO(2461) | MEMORY STAT vsizeMaxContiguous not supported in this build configuration.
[task 2021-03-02T01:41:53.917Z] 01:41:53     INFO - GECKO(2461) | MEMORY STAT | vsize 7612MB | residentFast 251MB | heapAllocated 88MB
[task 2021-03-02T01:41:53.917Z] 01:41:53     INFO - TEST-OK | browser/components/shell/test/browser_headless_screenshot_3.js | took 50373ms
[task 2021-03-02T01:41:53.917Z] 01:41:53     INFO - checking window state
[task 2021-03-02T01:41:54.017Z] 01:41:54     INFO - TEST-START | browser/components/shell/test/browser_headless_screenshot_3.js```