Bug: Intermittent browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy.js | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: FIXED
Created: 2024-02-24 00:13:05+00:00
Resolved: 2024-06-10 06:42:29+00:00

**Filed by:** sstanca [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=448274827&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/G0hM_5TTT3GyqXdbC9jfzw/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/G0hM_5TTT3GyqXdbC9jfzw/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2024-02-23T22:53:25.238Z] 22:53:25     INFO - TEST-PASS | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy.js | undefined assertion name - 
[task 2024-02-23T22:53:25.238Z] 22:53:25     INFO - Destroy the engine process
[task 2024-02-23T22:53:25.239Z] 22:53:25     INFO - Mutate the page's content to re-trigger a translation.
[task 2024-02-23T22:53:25.239Z] 22:53:25     INFO - The engine downloads should be requested again.
[task 2024-02-23T22:53:25.240Z] 22:53:25     INFO - Resolving 1 mocked downloads for "test-translation-wasm-1"
[task 2024-02-23T22:53:25.240Z] 22:53:25     INFO - Resolving 3 mocked downloads for "test-translation-models-0"
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - Console message: [JavaScript Error: "Error: An unexpected download was found, only expected 3 downloads" {file: "chrome://mochitests/content/browser/toolkit/components/translations/tests/browser/shared-head.js" line: 752}]
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - resolveDownloads@chrome://mochitests/content/browser/toolkit/components/translations/tests/browser/shared-head.js:567:45
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - async*test_translations_engine_destroy@chrome://mochitests/content/browser/browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy.js:43:19
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-02-23T22:53:25.242Z] 22:53:25     INFO - 
[task 2024-02-23T22:53:25.243Z] 22:53:25     INFO - Buffered messages finished
[task 2024-02-23T22:53:25.243Z] 22:53:25     INFO - TEST-UNEXPECTED-FAIL | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy.js | The mutated content should be translated. - "NEW TEXT FOR THE H1 [es to en]" == "New text for the H1" - 
[task 2024-02-23T22:53:25.243Z] 22:53:25     INFO - Stack trace:
[task 2024-02-23T22:53:25.243Z] 22:53:25     INFO - chrome://mochitests/content/browser/toolkit/components/translations/tests/browser/translations-test.mjs:assertTranslationResult:96
[task 2024-02-23T22:53:25.245Z] 22:53:25     INFO - GECKO(836) | console.log: Translations: "Discarding translations, innerWindowId:" 32212254721
[task 2024-02-23T22:53:25.245Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 1918810c800 == 2 [pid = 5124] [id = 1]
[task 2024-02-23T22:53:25.246Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 3 (191899153e0) [pid = 5124] [serial = 4] [outer = 0]
[task 2024-02-23T22:53:25.247Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 4 (1918810e000) [pid = 5124] [serial = 5] [outer = 191899153e0]
[task 2024-02-23T22:53:25.247Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 5 (1918a922400) [pid = 5124] [serial = 6] [outer = 191899153e0]
[task 2024-02-23T22:53:25.248Z] 22:53:25     INFO - GECKO(836) | console.log: Translations: "Force shutdown of the engine \"es,en\""
[task 2024-02-23T22:53:25.425Z] 22:53:25     INFO - GECKO(836) | console.log: Translations: "Removing RemoteSettings mock for the translations engine."
[task 2024-02-23T22:53:25.503Z] 22:53:25     INFO - Not taking screenshot here: see the one that was previously logged
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - TEST-UNEXPECTED-FAIL | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy.js | A promise chain failed to handle a rejection: An unexpected download was found, only expected 3 downloads - stack: downloadHandler@chrome://mochitests/content/browser/toolkit/components/translations/tests/browser/shared-head.js:752:13
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - async*resolvePendingDownloads@chrome://mochitests/content/browser/toolkit/components/translations/tests/browser/shared-head.js:714:12
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - resolveDownloads@chrome://mochitests/content/browser/toolkit/components/translations/tests/browser/shared-head.js:567:45
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - async*test_translations_engine_destroy@chrome://mochitests/content/browser/browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy.js:43:19
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - async*handleTask@chrome://mochikit/content/browser-test.js:1139:26
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - _runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:1122:14
[task 2024-02-23T22:53:25.510Z] 22:53:25     INFO - SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - Rejection date: Fri Feb 23 2024 22:53:04 GMT+0000 (Coordinated Universal Time) - false == true - {"filename":"resource://testing-common/PromiseTestUtils.sys.mjs","name":"assertNoUncaughtRejections","sourceId":606,"lineNumber":266,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"handleTask","sourceId":571,"lineNumber":1167,"columnNumber":22,"sourceLine":"","asyncCause":null,"asyncCaller":{"filename":"chrome://mochikit/content/browser-test.js","name":"_runTaskBasedTest","sourceId":571,"lineNumber":1211,"columnNumber":18,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"Tester_execTest","sourceId":571,"lineNumber":1353,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/browser-test.js","name":"nextTest/<","sourceId":571,"lineNumber":1122,"columnNumber":14,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":{"filename":"chrome://mochikit/content/tests/SimpleTest/SimpleTest.js","name":"SimpleTest.waitForFocus/<","sourceId":597,"lineNumber":1058,"columnNumber":13,"sourceLine":"","asyncCause":null,"asyncCaller":null,"caller":null,"formattedStack":"SimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"nextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"Tester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"async*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"caller":null,"formattedStack":"handleTask@chrome://mochikit/content/browser-test.js:1167:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}},"formattedStack":"assertNoUncaughtRejections@resource://testing-common/PromiseTestUtils.sys.mjs:266:14\nhandleTask@chrome://mochikit/content/browser-test.js:1167:22\nasync*_runTaskBasedTest@chrome://mochikit/content/browser-test.js:1211:18\nTester_execTest@chrome://mochikit/content/browser-test.js:1353:14\nnextTest/<@chrome://mochikit/content/browser-test.js:1122:14\nSimpleTest.waitForFocus/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1058:13\n","nativeSavedFrame":{}}
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - Stack trace:
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - resource://testing-common/PromiseTestUtils.sys.mjs:assertNoUncaughtRejections:266
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - chrome://mochikit/content/browser-test.js:handleTask:1167
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - chrome://mochikit/content/browser-test.js:_runTaskBasedTest:1211
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1353
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1122
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:SimpleTest.waitForFocus/<:1058
[task 2024-02-23T22:53:25.511Z] 22:53:25     INFO - Leaving test bound test_translations_engine_destroy
[task 2024-02-23T22:53:25.520Z] 22:53:25     INFO - GECKO(836) | [Child 5124, Main Thread] WARNING: IPC message 'PContent::Msg_CleanupPendingLoadState' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:534
[task 2024-02-23T22:53:25.533Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 19188109400 == 1 [pid = 5124] [id = 0] [url = https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-es.html]
[task 2024-02-23T22:53:25.535Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL 1918810c800 == 0 [pid = 5124] [id = 1] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-02-23T22:53:25.555Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 4 (1918a922400) [pid = 5124] [serial = 6] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-02-23T22:53:25.556Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 3 (1918810e000) [pid = 5124] [serial = 5] [outer = 0] [url = about:blank]
[task 2024-02-23T22:53:25.556Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (19189915020) [pid = 5124] [serial = 1] [outer = 0] [url = https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-es.html]
[task 2024-02-23T22:53:25.557Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (191899153e0) [pid = 5124] [serial = 4] [outer = 0] [url = data:text/html;charset=utf-8,<!DOCTYPE html><title>Blank</title>Blank page]
[task 2024-02-23T22:53:25.558Z] 22:53:25     INFO - GECKO(836) | [Child 5124: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (1918810f400) [pid = 5124] [serial = 3] [outer = 0] [url = https://example.com/browser/toolkit/components/translations/tests/browser/translations-tester-es.html]
[task 2024-02-23T22:53:25.861Z] 22:53:25     INFO - GECKO(836) | MEMORY STAT | vsize 2104330MB | vsizeMaxContiguous 65001645MB | residentFast 314MB | heapAllocated 109MB
[task 2024-02-23T22:53:25.861Z] 22:53:25     INFO - TEST-OK | browser/components/translations/tests/browser/browser_translations_full_page_panel_engine_destroy.js | took 22170ms
```