Bug: Intermittent toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | We should have recovered and completed the 2nd capture after the crash -
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2020-01-24 14:32:33+00:00
Resolved: 2022-07-25 23:13:48+00:00

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

---

[task 2020-01-24T13:56:15.563Z] 13:56:15     INFO - TEST-START | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js
[task 2020-01-24T13:56:15.645Z] 13:56:15     INFO - GECKO(2454) | Et tu, Brute?
[task 2020-01-24T13:56:16.011Z] 13:56:16     INFO - GECKO(2454) | [Parent 2454, Gecko_IOThread] WARNING: pipe error: Bad file descriptor: file /builds/worker/workspace/build/src/ipc/chromium/src/chrome/common/ipc_channel_posix.cc, line 733
[task 2020-01-24T13:56:16.145Z] 13:56:16     INFO - GECKO(2454) | Crash cleaned up
[task 2020-01-24T13:56:21.036Z] 13:56:21     INFO - TEST-INFO | started process screencapture
[task 2020-01-24T13:56:21.245Z] 13:56:21     INFO - TEST-INFO | screencapture: exit 0
[task 2020-01-24T13:56:21.247Z] 13:56:21     INFO - Buffered messages logged at 13:56:15
[task 2020-01-24T13:56:21.248Z] 13:56:21     INFO - Entering test bound thumbnails_bg_crash_during_capture
[task 2020-01-24T13:56:21.248Z] 13:56:21     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | Thumbnail should be cached after capture - 
[task 2020-01-24T13:56:21.248Z] 13:56:21     INFO - Crashing the thumbnail content process.
[task 2020-01-24T13:56:21.250Z] 13:56:21     INFO - Console message: [JavaScript Error: "BackgroundThumbnails remote process crashed - recovering" {file: "resource://gre/modules/BackgroundPageThumbs.jsm" line: 344}]
[task 2020-01-24T13:56:21.251Z] 13:56:21     INFO - _ensureBrowser/<@resource://gre/modules/BackgroundPageThumbs.jsm:344:10
[task 2020-01-24T13:56:21.251Z] 13:56:21     INFO - EventListener.handleEvent*_ensureBrowser@resource://gre/modules/BackgroundPageThumbs.jsm:338:13
[task 2020-01-24T13:56:21.251Z] 13:56:21     INFO - _processCaptureQueue@resource://gre/modules/BackgroundPageThumbs.jsm:398:10
[task 2020-01-24T13:56:21.251Z] 13:56:21     INFO - _ensureParentWindowReady/this._listener.onStateChange@resource://gre/modules/BackgroundPageThumbs.jsm:243:14
[task 2020-01-24T13:56:21.251Z] 13:56:21     INFO - 
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - Console message: [JavaScript Error: "[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIControllers.removeController]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  location: "JS frame :: chrome://global/content/elements/browser-custom-element.js :: destroy :: line 1352"  data: no]"]
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - destroy@chrome://global/content/elements/browser-custom-element.js:1352:28
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - disconnectedCallback@chrome://global/content/elements/browser-custom-element.js:422:12
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - _destroyBrowser@resource://gre/modules/BackgroundPageThumbs.jsm:380:24
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - _ensureBrowser/<@resource://gre/modules/BackgroundPageThumbs.jsm:347:12
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - EventListener.handleEvent*_ensureBrowser@resource://gre/modules/BackgroundPageThumbs.jsm:338:13
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - _processCaptureQueue@resource://gre/modules/BackgroundPageThumbs.jsm:398:10
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - _ensureParentWindowReady/this._listener.onStateChange@resource://gre/modules/BackgroundPageThumbs.jsm:243:14
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - 
[task 2020-01-24T13:56:21.252Z] 13:56:21     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | Got the right kind of error - 
[task 2020-01-24T13:56:21.254Z] 13:56:21     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | Thumbnail should not have been saved due to the crash - 
[task 2020-01-24T13:56:21.255Z] 13:56:21     INFO - Buffered messages logged at 13:56:16
[task 2020-01-24T13:56:21.255Z] 13:56:21     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | Saw a crash from this test - 
[task 2020-01-24T13:56:21.255Z] 13:56:21     INFO - Buffered messages logged at 13:56:21
[task 2020-01-24T13:56:21.255Z] 13:56:21     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | waitUrl capture should have finished first - 
[task 2020-01-24T13:56:21.257Z] 13:56:21     INFO - Buffered messages finished
[task 2020-01-24T13:56:21.257Z] 13:56:21     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | We should have recovered and completed the 2nd capture after the crash - 
[task 2020-01-24T13:56:21.257Z] 13:56:21     INFO - Stack trace:
[task 2020-01-24T13:56:21.257Z] 13:56:21     INFO - chrome://mochikit/content/browser-test.js:test_ok:1292
[task 2020-01-24T13:56:21.257Z] 13:56:21     INFO - chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js:onDone:27
[task 2020-01-24T13:56:21.257Z] 13:56:21     INFO - chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:bgCaptureWithMethod/</aOptions.onDone:218
[task 2020-01-24T13:56:21.262Z] 13:56:21     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:done:580
[task 2020-01-24T13:56:21.263Z] 13:56:21     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:_done:600
[task 2020-01-24T13:56:21.263Z] 13:56:21     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:notify:554
[task 2020-01-24T13:56:21.263Z] 13:56:21     INFO - Not taking screenshot here: see the one that was previously logged
[task 2020-01-24T13:56:21.264Z] 13:56:21     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | Uncaught exception - at chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:243 - Error: page-thumbnail:error
[task 2020-01-24T13:56:21.264Z] 13:56:21     INFO - Stack trace:
[task 2020-01-24T13:56:21.264Z] 13:56:21     INFO - observe@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:243:20
[task 2020-01-24T13:56:21.264Z] 13:56:21     INFO - _onCaptureOrTimeout@resource://gre/modules/BackgroundPageThumbs.jsm:419:20
[task 2020-01-24T13:56:21.264Z] 13:56:21     INFO - done@resource://gre/modules/BackgroundPageThumbs.jsm:577:22
[task 2020-01-24T13:56:21.264Z] 13:56:21     INFO - _done@resource://gre/modules/BackgroundPageThumbs.jsm:600:7
[task 2020-01-24T13:56:21.265Z] 13:56:21     INFO - notify@resource://gre/modules/BackgroundPageThumbs.jsm:554:10
[task 2020-01-24T13:56:21.265Z] 13:56:21     INFO - Leaving test bound thumbnails_bg_crash_during_capture
[task 2020-01-24T13:56:21.266Z] 13:56:21     INFO - Console message: [JavaScript Error: "[Exception... "Component returned failure code: 0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST) [nsIFile.remove]"  nsresult: "0x80520006 (NS_ERROR_FILE_TARGET_DOES_NOT_EXIST)"  location: "JS frame :: chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js :: removeThumbnail :: line 123"  data: no]"]
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - removeThumbnail@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:123:8
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - onDone@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js:31:22
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - bgCaptureWithMethod/</aOptions.onDone@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:218:22
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - done@resource://gre/modules/BackgroundPageThumbs.jsm:580:20
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - _done@resource://gre/modules/BackgroundPageThumbs.jsm:600:7
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - notify@resource://gre/modules/BackgroundPageThumbs.jsm:554:10
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - 
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - GECKO(2454) | MEMORY STAT | vsize 7591MB | residentFast 326MB | heapAllocated 100MB
[task 2020-01-24T13:56:21.267Z] 13:56:21     INFO - TEST-OK | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_during_capture.js | took 5478ms
[task 2020-01-24T13:56:21.268Z] 13:56:21     INFO - checking window state