Bug: Intermittent browser/components/shell/test/browser_headless_screenshot_2.js | Test timed out -
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-06-16 22:04:16+00:00
Resolved: 2021-07-13 17:00:26+00:00

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

---
```
[task 2021-06-16T21:12:24.554Z] 21:12:24     INFO - TEST-START | browser/components/shell/test/browser_headless_screenshot_2.js
[task 2021-06-16T21:12:24.609Z] 21:12:24     INFO - GECKO(7234) | *** You are running in headless mode.
[task 2021-06-16T21:12:24.785Z] 21:12:24     INFO - GECKO(7234) | >>> 1623877944781	Marionette	INFO	Marionette enabled
[task 2021-06-16T21:12:24.787Z] 21:12:24     INFO - GECKO(7234) | >>> 1623877944784	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-06-16T21:12:24.839Z] 21:12:24     INFO - GECKO(7234) | >>> 1623877944837	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-06-16T21:12:25.255Z] 21:12:25     INFO - GECKO(7234) | >>> Screenshot saved to: /builds/worker/workspace/build/tests/mochitest/screenshot.png
[task 2021-06-16T21:12:25.277Z] 21:12:25     INFO - GECKO(7234) | JavaScript error: resource:///modules/Interactions.jsm, line 347: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
[task 2021-06-16T21:12:25.318Z] 21:12:25     INFO - GECKO(7234) | >>> console.error: (new Error("Connection closed before committing the transaction.", "resource://gre/modules/Sqlite.jsm", 687))
[task 2021-06-16T21:12:25.510Z] 21:12:25     INFO - GECKO(7234) | *** You are running in headless mode.
[task 2021-06-16T21:12:25.654Z] 21:12:25     INFO - GECKO(7234) | >>> 1623877945653	Marionette	INFO	Marionette enabled
[task 2021-06-16T21:12:25.655Z] 21:12:25     INFO - GECKO(7234) | 1623877945653	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-06-16T21:12:25.703Z] 21:12:25     INFO - GECKO(7234) | >>> 1623877945701	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-06-16T21:12:26.143Z] 21:12:26     INFO - GECKO(7234) | >>> Screenshot saved to: /builds/worker/workspace/build/tests/mochitest/screenshot.png
[task 2021-06-16T21:12:26.164Z] 21:12:26     INFO - GECKO(7234) | JavaScript error: resource:///modules/Interactions.jsm, line 347: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
[task 2021-06-16T21:12:26.387Z] 21:12:26     INFO - GECKO(7234) | *** You are running in headless mode.
[task 2021-06-16T21:12:26.545Z] 21:12:26     INFO - GECKO(7234) | >>> 1623877946543	Marionette	INFO	Marionette enabled
[task 2021-06-16T21:12:26.548Z] 21:12:26     INFO - GECKO(7234) | >>> 1623877946543	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-06-16T21:12:26.592Z] 21:12:26     INFO - GECKO(7234) | >>> 1623877946590	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-06-16T21:12:27.019Z] 21:12:27     INFO - GECKO(7234) | >>> Screenshot saved to: /builds/worker/workspace/build/tests/mochitest/screenshot.png
[task 2021-06-16T21:12:27.038Z] 21:12:27     INFO - GECKO(7234) | JavaScript error: resource:///modules/Interactions.jsm, line 347: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
[task 2021-06-16T21:12:27.264Z] 21:12:27     INFO - GECKO(7234) | *** You are running in headless mode.
[task 2021-06-16T21:12:27.398Z] 21:12:27     INFO - GECKO(7234) | >>> 1623877947395	Marionette	INFO	Marionette enabled
[task 2021-06-16T21:12:27.399Z] 21:12:27     INFO - GECKO(7234) | 1623877947395	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-06-16T21:12:27.444Z] 21:12:27     INFO - GECKO(7234) | >>> 1623877947442	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-06-16T21:12:27.844Z] 21:12:27     INFO - GECKO(7234) | >>> Screenshot saved to: /builds/worker/workspace/build/tests/mochitest/screenshot.png
[task 2021-06-16T21:12:27.866Z] 21:12:27     INFO - GECKO(7234) | JavaScript error: resource:///modules/Interactions.jsm, line 347: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
[task 2021-06-16T21:12:27.924Z] 21:12:27     INFO - GECKO(7234) | >>> console.error: (new Error("Connection closed before committing the transaction.", "resource://gre/modules/Sqlite.jsm", 687))
[task 2021-06-16T21:13:09.556Z] 21:13:09     INFO - TEST-INFO | started process screentopng
[task 2021-06-16T21:13:09.782Z] 21:13:09     INFO - TEST-INFO | screentopng: exit 0
[task 2021-06-16T21:13:09.783Z] 21:13:09     INFO - Buffered messages logged at 21:12:24
[task 2021-06-16T21:13:09.783Z] 21:13:09     INFO - Entering test bound 
[task 2021-06-16T21:13:09.784Z] 21:13:09     INFO - Buffered messages logged at 21:12:25
[task 2021-06-16T21:13:09.784Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | Firefox process should exit with code 0 - 
[task 2021-06-16T21:13:09.785Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | A screenshot should be saved as screenshot.png - 
[task 2021-06-16T21:13:09.786Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | Screenshot should not be an empty file - 
[task 2021-06-16T21:13:09.786Z] 21:13:09     INFO - Buffered messages logged at 21:12:26
[task 2021-06-16T21:13:09.787Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | Firefox process should exit with code 0 - 
[task 2021-06-16T21:13:09.788Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | A screenshot should be saved as screenshot.png - 
[task 2021-06-16T21:13:09.788Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | Screenshot should not be an empty file - 
[task 2021-06-16T21:13:09.789Z] 21:13:09     INFO - Buffered messages logged at 21:12:27
[task 2021-06-16T21:13:09.789Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | Firefox process should exit with code 0 - 
[task 2021-06-16T21:13:09.790Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | A screenshot should be saved as screenshot.png - 
[task 2021-06-16T21:13:09.791Z] 21:13:09     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | Screenshot should not be an empty file - 
[task 2021-06-16T21:13:09.791Z] 21:13:09     INFO - Buffered messages finished
[task 2021-06-16T21:13:09.792Z] 21:13:09     INFO - TEST-UNEXPECTED-FAIL | browser/components/shell/test/browser_headless_screenshot_2.js | Test timed out - 
[task 2021-06-16T21:13:09.792Z] 21:13:09     INFO - GECKO(7234) | MEMORY STAT | vsize 2882MB | residentFast 263MB | heapAllocated 94MB
[task 2021-06-16T21:13:09.793Z] 21:13:09     INFO - TEST-OK | browser/components/shell/test/browser_headless_screenshot_2.js | took 45007ms
```