Bug: Intermittent toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js | We should have recovered and handled new capture requests -
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-08-20 18:42:57+00:00
Resolved: 2023-10-25 12:03:07+00:00

**Filed by:** archaeopteryx [at] coole-files.de
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=349046062&repo=try
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/IrXEAP7OSjG0QObHinKXkA/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2021-08-20T15:58:09.626Z] 15:58:09     INFO - TEST-START | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js
[task 2021-08-20T15:58:09.639Z] 15:58:09     INFO - GECKO(3395) | Et tu, Brute?
[task 2021-08-20T15:58:09.670Z] 15:58:09     INFO - GECKO(3395) | ###!!! [Parent][MessageChannel] Error: (msgtype=0x390089,name=PContent::Msg_FlushTabState) Channel error: cannot send/recv
[task 2021-08-20T15:58:09.687Z] 15:58:09     INFO - GECKO(3395) | Crash cleaned up
[task 2021-08-20T15:58:09.697Z] 15:58:09     INFO - TEST-INFO | started process screencapture
[task 2021-08-20T15:58:09.804Z] 15:58:09     INFO - TEST-INFO | screencapture: exit 0
[task 2021-08-20T15:58:09.804Z] 15:58:09     INFO - Buffered messages logged at 15:58:09
[task 2021-08-20T15:58:09.805Z] 15:58:09     INFO - Entering test bound thumbnails_bg_crash_while_idle
[task 2021-08-20T15:58:09.805Z] 15:58:09     INFO - Console message: [JavaScript Warning: "An iframe which has both allow-top-navigation and allow-top-navigation-by-user-activation for its sandbox attribute will permit top navigations." {file: "http://example.com/" line: 0}]
[task 2021-08-20T15:58:09.805Z] 15:58:09     INFO - Console message: [JavaScript Warning: "An iframe which has both allow-top-navigation and allow-top-navigation-by-user-activation for its sandbox attribute will permit top navigations." {file: "about:blank" line: 0}]
[task 2021-08-20T15:58:09.805Z] 15:58:09     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js | Thumbnail should be cached after capture - 
[task 2021-08-20T15:58:09.805Z] 15:58:09     INFO - Crashing the thumbnail content process.
[task 2021-08-20T15:58:09.805Z] 15:58:09     INFO - Console message: [JavaScript Error: "BackgroundThumbnails remote process crashed - recovering" {file: "resource://gre/modules/BackgroundPageThumbs.jsm" line: 386}]
[task 2021-08-20T15:58:09.805Z] 15:58:09     INFO - _ensureBrowser/<@resource://gre/modules/BackgroundPageThumbs.jsm:386:10
[task 2021-08-20T15:58:09.806Z] 15:58:09     INFO - 
[task 2021-08-20T15:58:09.806Z] 15:58:09     INFO - Console message: [JavaScript Warning: "telemetry.state_file_read_errors - Unknown scalar."]
[task 2021-08-20T15:58:09.806Z] 15:58:09     INFO - Console message: [JavaScript Warning: "telemetry.generated_new_client_id - Unknown scalar."]
[task 2021-08-20T15:58:09.806Z] 15:58:09     INFO - TEST-PASS | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js | Saw a crash from this test - 
[task 2021-08-20T15:58:09.806Z] 15:58:09     INFO - Console message: [JavaScript Warning: "An iframe which has both allow-top-navigation and allow-top-navigation-by-user-activation for its sandbox attribute will permit top navigations." {file: "about:blank" line: 0}]
[task 2021-08-20T15:58:09.806Z] 15:58:09     INFO - Buffered messages finished
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js | We should have recovered and handled new capture requests - 
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - Stack trace:
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - chrome://mochikit/content/browser-test.js:test_ok:1336
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js:onDone:22
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:bgCaptureWithMethod/</aOptions.onDone:202
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:done:721
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:_done:741
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - resource://gre/modules/BackgroundPageThumbs.jsm:pageLoaded:650
[task 2021-08-20T15:58:09.807Z] 15:58:09     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 107"  data: no]"]
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - removeThumbnail@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:107:8
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - onDone@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/browser_thumbnails_bg_crash_while_idle.js:26:22
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - bgCaptureWithMethod/</aOptions.onDone@chrome://mochitests/content/browser/toolkit/components/thumbnails/test/head.js:202:22
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - done@resource://gre/modules/BackgroundPageThumbs.jsm:721:20
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - _done@resource://gre/modules/BackgroundPageThumbs.jsm:741:7
[task 2021-08-20T15:58:09.807Z] 15:58:09     INFO - pageLoaded@resource://gre/modules/BackgroundPageThumbs.jsm:650:12
```