Bug: Intermittent browser/components/preferences/tests/browser_searchChangedEngine.js | Test timed out -
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-06-17 15:02:14+00:00
Resolved: 2022-07-26 00:13:45+00:00

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

---
```
[task 2022-06-17T14:11:39.229Z] 14:11:39     INFO - TEST-START | browser/components/preferences/tests/browser_searchChangedEngine.js
[task 2022-06-17T14:11:40.777Z] 14:11:40     INFO - GECKO(3708) | Extension startup failed: out of memory
[task 2022-06-17T14:11:40.779Z] 14:11:40     INFO - GECKO(3708) | undefinedJavaScript error: , line 0: uncaught exception: out of memory
[task 2022-06-17T14:11:40.780Z] 14:11:40     INFO - GECKO(3708) | JavaScript error: , line 0: uncaught exception: out of memory
[task 2022-06-17T14:11:40.782Z] 14:11:40     INFO - GECKO(3708) | JavaScript error: , line 0: uncaught exception: out of memory
[task 2022-06-17T14:11:42.655Z] 14:11:42     INFO - GECKO(3708) | JavaScript error: resource:///modules/sessionstore/SessionStore.jsm, line 3988: uncaught exception: out of memory
[task 2022-06-17T14:11:56.224Z] 14:11:56     INFO - GECKO(3708) | JavaScript error: resource:///modules/sessionstore/SessionSaver.jsm, line 64: Error: TelemetryStopwatch: key "FX_SESSION_RESTORE_COLLECT_DATA_MS" was already initialized
[task 2022-06-17T14:11:56.225Z] 14:11:56     INFO - GECKO(3708) | JavaScript error: resource:///modules/sessionstore/SessionStore.jsm, line 3973: Error: TelemetryStopwatch: key "FX_SESSION_RESTORE_COLLECT_ALL_WINDOWS_DATA_MS" was already initialized
[task 2022-06-17T14:11:56.226Z] 14:11:56     INFO - GECKO(3708) | JavaScript error: resource:///modules/sessionstore/SessionStore.jsm, line 3992: Error: TelemetryStopwatch: finishing nonexisting stopwatch. Histogram: "FX_SESSION_RESTORE_COLLECT_ALL_WINDOWS_DATA_MS", key: ""
[task 2022-06-17T14:11:56.227Z] 14:11:56     INFO - GECKO(3708) | JavaScript error: resource:///modules/sessionstore/SessionSaver.jsm, line 64: Error: TelemetryStopwatch: finishing nonexisting stopwatch. Histogram: "FX_SESSION_RESTORE_COLLECT_DATA_MS", key: ""
[task 2022-06-17T14:12:24.257Z] 14:12:24     INFO - TEST-INFO | started process screenshot
[task 2022-06-17T14:12:24.317Z] 14:12:24     INFO - TEST-INFO | screenshot: exit 0
[task 2022-06-17T14:12:24.318Z] 14:12:24     INFO - Buffered messages logged at 14:11:39
[task 2022-06-17T14:12:24.318Z] 14:12:24     INFO - Entering test bound test_change_engine
[task 2022-06-17T14:12:24.319Z] 14:12:24     INFO - Buffered messages logged at 14:11:40
[task 2022-06-17T14:12:24.319Z] 14:12:24     INFO - Extension loaded
[task 2022-06-17T14:12:24.320Z] 14:12:24     INFO - Console message: [JavaScript Error: "uncaught exception: out of memory"]
[task 2022-06-17T14:12:24.321Z] 14:12:24     INFO - Console message: [JavaScript Error: "uncaught exception: out of memory"]
[task 2022-06-17T14:12:24.322Z] 14:12:24     INFO - Console message: [JavaScript Error: "uncaught exception: out of memory"]
[task 2022-06-17T14:12:24.322Z] 14:12:24     INFO - Buffered messages logged at 14:11:42
[task 2022-06-17T14:12:24.323Z] 14:12:24     INFO - Console message: [JavaScript Error: "uncaught exception: out of memory" {file: "resource:///modules/sessionstore/SessionStore.jsm" line: 3988}]
[task 2022-06-17T14:12:24.323Z] 14:12:24     INFO - getCurrentState@resource:///modules/sessionstore/SessionStore.jsm:3988:9
[task 2022-06-17T14:12:24.323Z] 14:12:24     INFO - getCurrentState@resource:///modules/sessionstore/SessionStore.jsm:459:33
[task 2022-06-17T14:12:24.323Z] 14:12:24     INFO - _saveState@resource:///modules/sessionstore/SessionSaver.jsm:262:35
[task 2022-06-17T14:12:24.323Z] 14:12:24     INFO - _saveStateAsync@resource:///modules/sessionstore/SessionSaver.jsm:347:10
[task 2022-06-17T14:12:24.323Z] 14:12:24     INFO - saveStateAsyncWhenIdle@resource:///modules/sessionstore/SessionSaver.jsm:194:14
[task 2022-06-17T14:12:24.324Z] 14:12:24     INFO - callback@resource://gre/modules/Timer.jsm:127:16
[task 2022-06-17T14:12:24.324Z] 14:12:24     INFO - 
[task 2022-06-17T14:12:24.324Z] 14:12:24     INFO - Buffered messages logged at 14:11:56
[task 2022-06-17T14:12:24.326Z] 14:12:24     INFO - Console message: [JavaScript Error: "Error: TelemetryStopwatch: key "FX_SESSION_RESTORE_COLLECT_DATA_MS" was already initialized" {file: "resource:///modules/sessionstore/SessionSaver.jsm" line: 64}]
[task 2022-06-17T14:12:24.326Z] 14:12:24     INFO - stopWatch/<@resource:///modules/sessionstore/SessionSaver.jsm:64:33
[task 2022-06-17T14:12:24.326Z] 14:12:24     INFO - _saveState@resource:///modules/sessionstore/SessionSaver.jsm:261:19
[task 2022-06-17T14:12:24.326Z] 14:12:24     INFO - _saveStateAsync@resource:///modules/sessionstore/SessionSaver.jsm:347:10
[task 2022-06-17T14:12:24.326Z] 14:12:24     INFO - saveStateAsyncWhenIdle@resource:///modules/sessionstore/SessionSaver.jsm:194:14
[task 2022-06-17T14:12:24.326Z] 14:12:24     INFO - callback@resource://gre/modules/Timer.jsm:127:16
[task 2022-06-17T14:12:24.326Z] 14:12:24     INFO - 
[task 2022-06-17T14:12:24.327Z] 14:12:24     INFO - Console message: [JavaScript Error: "Error: TelemetryStopwatch: key "FX_SESSION_RESTORE_COLLECT_ALL_WINDOWS_DATA_MS" was already initialized" {file: "resource:///modules/sessionstore/SessionStore.jsm" line: 3973}]
[task 2022-06-17T14:12:24.327Z] 14:12:24     INFO - getCurrentState@resource:///modules/sessionstore/SessionStore.jsm:3973:24
[task 2022-06-17T14:12:24.327Z] 14:12:24     INFO - getCurrentState@resource:///modules/sessionstore/SessionStore.jsm:459:33
[task 2022-06-17T14:12:24.327Z] 14:12:24     INFO - _saveState@resource:///modules/sessionstore/SessionSaver.jsm:262:35
[task 2022-06-17T14:12:24.327Z] 14:12:24     INFO - _saveStateAsync@resource:///modules/sessionstore/SessionSaver.jsm:347:10
[task 2022-06-17T14:12:24.327Z] 14:12:24     INFO - saveStateAsyncWhenIdle@resource:///modules/sessionstore/SessionSaver.jsm:194:14
[task 2022-06-17T14:12:24.327Z] 14:12:24     INFO - callback@resource://gre/modules/Timer.jsm:127:16
[task 2022-06-17T14:12:24.327Z] 14:12:24     INFO - 
[task 2022-06-17T14:12:24.331Z] 14:12:24     INFO - Console message: [JavaScript Error: "Error: TelemetryStopwatch: finishing nonexisting stopwatch. Histogram: "FX_SESSION_RESTORE_COLLECT_ALL_WINDOWS_DATA_MS", key: """ {file: "resource:///modules/sessionstore/SessionStore.jsm" line: 3992}]
[task 2022-06-17T14:12:24.331Z] 14:12:24     INFO - getCurrentState@resource:///modules/sessionstore/SessionStore.jsm:3992:24
[task 2022-06-17T14:12:24.331Z] 14:12:24     INFO - getCurrentState@resource:///modules/sessionstore/SessionStore.jsm:459:33
[task 2022-06-17T14:12:24.331Z] 14:12:24     INFO - _saveState@resource:///modules/sessionstore/SessionSaver.jsm:262:35
[task 2022-06-17T14:12:24.331Z] 14:12:24     INFO - _saveStateAsync@resource:///modules/sessionstore/SessionSaver.jsm:347:10
[task 2022-06-17T14:12:24.331Z] 14:12:24     INFO - saveStateAsyncWhenIdle@resource:///modules/sessionstore/SessionSaver.jsm:194:14
[task 2022-06-17T14:12:24.331Z] 14:12:24     INFO - callback@resource://gre/modules/Timer.jsm:127:16
[task 2022-06-17T14:12:24.331Z] 14:12:24     INFO - 
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - Console message: [JavaScript Error: "Error: TelemetryStopwatch: finishing nonexisting stopwatch. Histogram: "FX_SESSION_RESTORE_COLLECT_DATA_MS", key: """ {file: "resource:///modules/sessionstore/SessionSaver.jsm" line: 64}]
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - stopWatch/<@resource:///modules/sessionstore/SessionSaver.jsm:64:33
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - _saveState@resource:///modules/sessionstore/SessionSaver.jsm:296:20
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - _saveStateAsync@resource:///modules/sessionstore/SessionSaver.jsm:347:10
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - saveStateAsyncWhenIdle@resource:///modules/sessionstore/SessionSaver.jsm:194:14
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - callback@resource://gre/modules/Timer.jsm:127:16
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - 
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - Buffered messages finished
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_searchChangedEngine.js | Test timed out - 
[task 2022-06-17T14:12:24.332Z] 14:12:24     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-17T14:12:24.333Z] 14:12:24     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_searchChangedEngine.js | Cleanup function threw an exception - at resource://testing-common/ExtensionTestCommon.jsm:218 - TypeError: can't access property "uninstall", this.addon is null
[task 2022-06-17T14:12:24.335Z] 14:12:24     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-17T14:12:24.335Z] 14:12:24     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_searchChangedEngine.js | A promise chain failed to handle a rejection: out of memory - stack: (No stack available.)
[task 2022-06-17T14:12:24.335Z] 14:12:24     INFO - Rejection date: Fri Jun 17 2022 14:11:40 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-06-17T14:12:24.335Z] 14:12:24     INFO - Stack trace:
[task 2022-06-17T14:12:24.335Z] 14:12:24     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-06-17T14:12:24.335Z] 14:12:24     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2022-06-17T14:12:24.336Z] 14:12:24     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-17T14:12:24.337Z] 14:12:24     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_searchChangedEngine.js | A promise chain failed to handle a rejection: out of memory - stack: (No stack available.)
[task 2022-06-17T14:12:24.337Z] 14:12:24     INFO - Rejection date: Fri Jun 17 2022 14:11:40 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-06-17T14:12:24.337Z] 14:12:24     INFO - Stack trace:
[task 2022-06-17T14:12:24.338Z] 14:12:24     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-06-17T14:12:24.338Z] 14:12:24     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2022-06-17T14:12:24.338Z] 14:12:24     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-17T14:12:24.339Z] 14:12:24     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_searchChangedEngine.js | A promise chain failed to handle a rejection: out of memory - stack: (No stack available.)
[task 2022-06-17T14:12:24.340Z] 14:12:24     INFO - Rejection date: Fri Jun 17 2022 14:11:40 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 271
[task 2022-06-17T14:12:24.340Z] 14:12:24     INFO - Stack trace:
[task 2022-06-17T14:12:24.340Z] 14:12:24     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:271
[task 2022-06-17T14:12:24.340Z] 14:12:24     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2022-06-17T14:12:24.340Z] 14:12:24     INFO - GECKO(3708) | MEMORY STAT | vsize 1870MB | vsizeMaxContiguous 10MB | residentFast 759MB | heapAllocated 503MB
[task 2022-06-17T14:12:24.341Z] 14:12:24     INFO - TEST-OK | browser/components/preferences/tests/browser_searchChangedEngine.js | took 45055ms
[task 2022-06-17T14:12:24.342Z] 14:12:24     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-17T14:12:24.342Z] 14:12:24     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_searchChangedEngine.js | Found a tab after previous test timed out: about:preferences#search - 
[task 2022-06-17T14:12:24.343Z] 14:12:24     INFO - checking window state
[task 2022-06-17T14:12:24.344Z] 14:12:24     INFO - TEST-START | browser/components/preferences/tests/browser_searchDefaultEngine.js
```