Bug: Intermittent TV toolkit/components/pdfjs/test/browser_pdfjs_js.js | Sandbox must have been destroyed - 0 == 1 - got 0, expected 1 (operator ==)
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-12-03 02:31:44+00:00
Resolved: 2022-01-25 20:00:12+00:00

**Filed by:** csabou [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=360041920&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WEBIITrEQC20p_f5UwJQpg/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/WEBIITrEQC20p_f5UwJQpg/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-12-03T01:43:54.920Z] 01:43:54     INFO - TEST-PASS | toolkit/components/pdfjs/test/browser_pdfjs_js.js | Text field must containt 'test' string - "test" == "test" - 
[task 2021-12-03T01:43:54.920Z] 01:43:54     INFO - Leaving test bound test_js_sandbox
[task 2021-12-03T01:43:54.920Z] 01:43:54     INFO - Buffered messages finished
[task 2021-12-03T01:43:54.921Z] 01:43:54     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/pdfjs/test/browser_pdfjs_js.js | Sandbox must have been destroyed - 0 == 1 - got 0, expected 1 (operator ==)
[task 2021-12-03T01:43:54.921Z] 01:43:54     INFO - Stack trace:
[task 2021-12-03T01:43:54.921Z] 01:43:54     INFO - is@resource://specialpowers/SpecialPowersSandbox.jsm:90:21
[task 2021-12-03T01:43:54.921Z] 01:43:54     INFO - @chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_js.js:45:13
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - Console message: [JavaScript Error: "InvalidStateError: JSWindowActorChild.sendAsyncMessage: JSWindowActorChild cannot send at the moment" {file: "resource://specialpowers/SpecialPowersChild.jsm" line: 1637}]
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - _spawnTask/sb<@resource://specialpowers/SpecialPowersChild.jsm:1637:14
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - report@resource://specialpowers/SpecialPowersSandbox.jsm:124:10
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - get Assert/this._Assert<@resource://specialpowers/SpecialPowersSandbox.jsm:110:14
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - proto.report@resource://testing-common/Assert.jsm:228:10
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - proto.ok@resource://testing-common/Assert.jsm:254:10
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - ok@resource://specialpowers/SpecialPowersSandbox.jsm:87:21
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - PdfSandbox.prototype.destroy@chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_js.js:33:13
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - PdfSandbox.prototype.destroy@chrome://mochitests/content/browser/toolkit/components/pdfjs/test/browser_pdfjs_js.js:31:27
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - destroySandbox@resource://pdf.js/PdfStreamConverter.jsm:325:20
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - createSandbox/this.unloadListener@resource://pdf.js/PdfStreamConverter.jsm:309:12
[task 2021-12-03T01:43:54.923Z] 01:43:54     INFO - 
[task 2021-12-03T01:43:54.924Z] 01:43:54     INFO - GECKO(4924) | MEMORY STAT | vsize 15340MB | residentFast 302MB | heapAllocated 130MB
[task 2021-12-03T01:43:54.924Z] 01:43:54     INFO - TEST-OK | toolkit/components/pdfjs/test/browser_pdfjs_js.js | took 596ms
[task 2021-12-03T01:43:54.925Z] 01:43:54     INFO - checking window state
[task 2021-12-03T01:43:54.925Z] 01:43:54     INFO - GECKO(4924) | Completed ShutdownLeaks collections in process 4924
[task 2021-12-03T01:43:54.925Z] 01:43:54     INFO - TEST-START | Shutdown
```