Bug: Intermittent browser/components/shell/test/browser_headless_screenshot_2.js | Firefox process should exit with code 0 - Got 1, expected +0
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2021-09-16 00:31:58+00:00
Resolved: 2022-07-25 23:06:45+00:00

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

---
```
[task 2021-09-15T23:45:42.908Z] 23:45:42     INFO - TEST-START | browser/components/shell/test/browser_headless_screenshot_2.js
[task 2021-09-15T23:45:42.974Z] 23:45:42     INFO - GECKO(3233) | *** You are running in headless mode.
[task 2021-09-15T23:45:43.107Z] 23:45:43     INFO - GECKO(3233) | >>> 1631749543106	Marionette	INFO	Marionette enabled
[task 2021-09-15T23:45:43.107Z] 23:45:43     INFO - GECKO(3233) | >>> 1631749543106	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-09-15T23:45:43.135Z] 23:45:43     INFO - GECKO(3233) | >>> 1631749543134	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-09-15T23:45:43.767Z] 23:45:43     INFO - GECKO(3233) | >>> Screenshot saved to: /opt/worker/tasks/task_163174634874552/build/tests/mochitest/screenshot.png
[task 2021-09-15T23:45:44.005Z] 23:45:44     INFO - GECKO(3233) | *** You are running in headless mode.
[task 2021-09-15T23:45:44.141Z] 23:45:44     INFO - GECKO(3233) | >>> 1631749544140	Marionette	INFO	Marionette enabled
[task 2021-09-15T23:45:44.141Z] 23:45:44     INFO - GECKO(3233) | >>> 1631749544140	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-09-15T23:45:44.169Z] 23:45:44     INFO - GECKO(3233) | >>> 1631749544168	Marionette	TRACE	Received observer notification command-line-startup
[task 2021-09-15T23:45:44.450Z] 23:45:44     INFO - TEST-INFO | started process screencapture
[task 2021-09-15T23:45:44.565Z] 23:45:44     INFO - TEST-INFO | screencapture: exit 0
[task 2021-09-15T23:45:44.565Z] 23:45:44     INFO - Buffered messages logged at 23:45:42
[task 2021-09-15T23:45:44.565Z] 23:45:44     INFO - Entering test bound 
[task 2021-09-15T23:45:44.566Z] 23:45:44     INFO - Buffered messages logged at 23:45:43
[task 2021-09-15T23:45:44.566Z] 23:45:44     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | Firefox process should exit with code 0 - 
[task 2021-09-15T23:45:44.567Z] 23:45:44     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | A screenshot should be saved as screenshot.png - 
[task 2021-09-15T23:45:44.567Z] 23:45:44     INFO - TEST-PASS | browser/components/shell/test/browser_headless_screenshot_2.js | Screenshot should not be an empty file - 
[task 2021-09-15T23:45:44.567Z] 23:45:44     INFO - Buffered messages finished
[task 2021-09-15T23:45:44.568Z] 23:45:44     INFO - TEST-UNEXPECTED-FAIL | browser/components/shell/test/browser_headless_screenshot_2.js | Firefox process should exit with code 0 - Got 1, expected +0
[task 2021-09-15T23:45:44.568Z] 23:45:44     INFO - Stack trace:
[task 2021-09-15T23:45:44.568Z] 23:45:44     INFO - chrome://mochikit/content/browser-test.js:test_is:1364
[task 2021-09-15T23:45:44.568Z] 23:45:44     INFO - chrome://mochitests/content/browser/browser/components/shell/test/head.js:runFirefox:45
[task 2021-09-15T23:45:44.569Z] 23:45:44     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-09-15T23:45:44.569Z] 23:45:44     INFO - TEST-UNEXPECTED-FAIL | browser/components/shell/test/browser_headless_screenshot_2.js | A screenshot should be saved as screenshot.png - 
[task 2021-09-15T23:45:44.569Z] 23:45:44     INFO - Stack trace:
[task 2021-09-15T23:45:44.569Z] 23:45:44     INFO - chrome://mochikit/content/browser-test.js:test_ok:1336
[task 2021-09-15T23:45:44.570Z] 23:45:44     INFO - chrome://mochitests/content/browser/browser/components/shell/test/head.js:testFileCreationPositive:53
[task 2021-09-15T23:45:44.570Z] 23:45:44     INFO - GECKO(3233) | *** You are running in headless mode.
[task 2021-09-15T23:45:44.639Z] 23:45:44     INFO - GECKO(3233) | >>> 1631749544638	Marionette	INFO	Marionette enabled
[task 2021-09-15T23:45:44.639Z] 23:45:44     INFO - GECKO(3233) | 1631749544638	Marionette	TRACE	Received observer notification profile-after-change
[task 2021-09-15T23:45:44.669Z] 23:45:44     INFO - GECKO(3233) | >>> 1631749544667	Marionette	TRACE	Received observer notification command-line-startup
```