Bug: Intermittent browser/components/shell/test/browser_headless_screenshot_1.js | Firefox process should exit with code 0 - Got 1, expected +0
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-08-06 13:38:48+00:00
Resolved: 2021-08-06 13:39:13+00:00

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

---
```
[task 2021-08-06T12:18:33.170Z] 12:18:33     INFO - TEST-START | browser/components/shell/test/browser_headless_screenshot_1.js
[task 2021-08-06T12:18:33.237Z] 12:18:33     INFO - GECKO(1810) | *** You are running in headless mode.
[task 2021-08-06T12:18:33.373Z] 12:18:33     INFO - GECKO(1810) | >>> 1628252313371	Marionette	INFO	Marionette enabled
[task 2021-08-06T12:18:33.373Z] 12:18:33     INFO - GECKO(1810) | 1628252313371	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-08-06T12:18:33.401Z] 12:18:33     INFO - GECKO(1810) | >>> 1628252313400	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-08-06T12:18:33.962Z] 12:18:33     INFO - GECKO(1810) | >>> Screenshot saved to: /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png
[task 2021-08-06T12:18:33.973Z] 12:18:33     INFO - GECKO(1810) | JavaScript error: resource:///modules/Interactions.jsm, line 230: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
[task 2021-08-06T12:18:34.339Z] 12:18:34     INFO - GECKO(1810) | >>> 1628252314338	Marionette	INFO	Marionette enabled
[task 2021-08-06T12:18:34.339Z] 12:18:34     INFO - GECKO(1810) | 1628252314338	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-08-06T12:18:34.369Z] 12:18:34     INFO - GECKO(1810) | >>> 1628252314367	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-08-06T12:18:34.931Z] 12:18:34     INFO - GECKO(1810) | >>> Screenshot saved to: /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png
[task 2021-08-06T12:18:34.940Z] 12:18:34     INFO - GECKO(1810) | JavaScript error: resource:///modules/Interactions.jsm, line 230: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
[task 2021-08-06T12:18:35.186Z] 12:18:35     INFO - GECKO(1810) | *** You are running in headless mode.
[task 2021-08-06T12:18:35.317Z] 12:18:35     INFO - GECKO(1810) | >>> 1628252315316	Marionette	INFO	Marionette enabled
[task 2021-08-06T12:18:35.318Z] 12:18:35     INFO - GECKO(1810) | >>> 1628252315316	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-08-06T12:18:35.345Z] 12:18:35     INFO - GECKO(1810) | >>> 1628252315344	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-08-06T12:18:35.903Z] 12:18:35     INFO - GECKO(1810) | >>> Screenshot saved to: /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png
[task 2021-08-06T12:18:35.914Z] 12:18:35     INFO - GECKO(1810) | JavaScript error: resource:///modules/Interactions.jsm, line 230: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
[task 2021-08-06T12:18:36.276Z] 12:18:36     INFO - GECKO(1810) | >>> 1628252316274	Marionette	INFO	Marionette enabled
[task 2021-08-06T12:18:36.276Z] 12:18:36     INFO - GECKO(1810) | 1628252316274	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-08-06T12:18:36.305Z] 12:18:36     INFO - GECKO(1810) | >>> 1628252316304	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-08-06T12:18:36.883Z] 12:18:36     INFO - GECKO(1810) | >>> Screenshot saved to: /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png
[task 2021-08-06T12:18:36.892Z] 12:18:36     INFO - GECKO(1810) | JavaScript error: resource:///modules/Interactions.jsm, line 230: NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIUserIdleService.removeIdleObserver]
[task 2021-08-06T12:18:37.124Z] 12:18:37     INFO - GECKO(1810) | *** You are running in headless mode.
[task 2021-08-06T12:18:37.237Z] 12:18:37     INFO - GECKO(1810) | >>> 1628252317236	Marionette	INFO	Marionette enabled
[task 2021-08-06T12:18:37.239Z] 12:18:37     INFO - GECKO(1810) | >>> 1628252317236	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-08-06T12:18:37.298Z] 12:18:37     INFO - GECKO(1810) | >>> 1628252317262	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-08-06T12:18:37.561Z] 12:18:37     INFO - TEST-INFO | started process screencapture
[task 2021-08-06T12:18:37.670Z] 12:18:37     INFO - TEST-INFO | screencapture: exit 0
[task 2021-08-06T12:18:37.670Z] 12:18:37     INFO - Buffered messages logged at 12:18:33
[task 2021-08-06T12:18:37.671Z] 12:18:37     INFO - Entering test bound 
[task 2021-08-06T12:18:37.671Z] 12:18:37     INFO - Buffered messages logged at 12:18:34
[task 2021-08-06T12:18:37.672Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | Firefox process should exit with code 0 - 
[task 2021-08-06T12:18:37.672Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | A screenshot should be saved as /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png - 
[task 2021-08-06T12:18:37.673Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | Screenshot should not be an empty file - 
[task 2021-08-06T12:18:37.673Z] 12:18:37     INFO - Buffered messages logged at 12:18:35
[task 2021-08-06T12:18:37.674Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | Firefox process should exit with code 0 - 
[task 2021-08-06T12:18:37.674Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | A screenshot should be saved as /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png - 
[task 2021-08-06T12:18:37.675Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | Screenshot should not be an empty file - 
[task 2021-08-06T12:18:37.675Z] 12:18:37     INFO - Buffered messages logged at 12:18:36
[task 2021-08-06T12:18:37.675Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | Firefox process should exit with code 0 - 
[task 2021-08-06T12:18:37.676Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | A screenshot should be saved as /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png - 
[task 2021-08-06T12:18:37.677Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | Screenshot should not be an empty file - 
[task 2021-08-06T12:18:37.677Z] 12:18:37     INFO - Buffered messages logged at 12:18:37
[task 2021-08-06T12:18:37.677Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | Firefox process should exit with code 0 - 
[task 2021-08-06T12:18:37.678Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | A screenshot should be saved as /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png - 
[task 2021-08-06T12:18:37.678Z] 12:18:37     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_1.js | Screenshot should not be an empty file - 
[task 2021-08-06T12:18:37.679Z] 12:18:37     INFO - Buffered messages finished
[task 2021-08-06T12:18:37.679Z] 12:18:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/shell/test/browser_headless_screenshot_1.js | Firefox process should exit with code 0 - Got 1, expected +0
[task 2021-08-06T12:18:37.679Z] 12:18:37     INFO - Stack trace:
[task 2021-08-06T12:18:37.679Z] 12:18:37     INFO - chrome://mochikit/content/browser-test.js:test_is:1371
[task 2021-08-06T12:18:37.679Z] 12:18:37     INFO - chrome://mochitests/content/browser/browser/components/shell/test/head.js:runFirefox:45
[task 2021-08-06T12:18:37.680Z] 12:18:37     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-06T12:18:37.681Z] 12:18:37     INFO - TEST-UNEXPECTED-FAIL | browser/components/shell/test/browser_headless_screenshot_1.js | A screenshot should be saved as /var/folders/8d/27zjr6tj7t76grr015qgfvwr000014/T/headless_test_screenshot.png - 
[task 2021-08-06T12:18:37.681Z] 12:18:37     INFO - Stack trace:
[task 2021-08-06T12:18:37.681Z] 12:18:37     INFO - chrome://mochikit/content/browser-test.js:test_ok:1343
[task 2021-08-06T12:18:37.681Z] 12:18:37     INFO - chrome://mochitests/content/browser/browser/components/shell/test/head.js:testFileCreationPositive:53
[task 2021-08-06T12:18:37.681Z] 12:18:37     INFO - Leaving test bound 
[task 2021-08-06T12:18:37.682Z] 12:18:37     INFO - GECKO(1810) | MEMORY STAT | vsize 7794MB | residentFast 278MB | heapAllocated 99MB
[task 2021-08-06T12:18:37.682Z] 12:18:37     INFO - TEST-OK | browser/components/shell/test/browser_headless_screenshot_1.js | took 4400ms
[task 2021-08-06T12:18:37.682Z] 12:18:37     INFO - checking window state
```