Bug: Intermittent browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | uncaught exception - ReferenceError: gMainPane is not defined at init_all@chrome://browser/content/preferences/preferences.js:126:3
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2021-08-11 18:40:37+00:00
Resolved: 2021-09-07 17:05:46+00:00

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

---
```
[task 2021-08-11T18:22:01.083Z] 18:22:01     INFO - TEST-START | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js
[task 2021-08-11T18:22:02.111Z] 18:22:02     INFO - GECKO(3412) | [GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no surf
[task 2021-08-11T18:22:02.130Z] 18:22:02     INFO - GECKO(3412) | _create_dc_and_bitmap: Not enough storage is available to process this command.
[task 2021-08-11T18:22:02.730Z] 18:22:02     INFO - GECKO(3412) | JavaScript error: , line 0: uncaught exception: out of memory
[task 2021-08-11T18:22:02.790Z] 18:22:02     INFO - TEST-INFO | started process screenshot
[task 2021-08-11T18:22:02.850Z] 18:22:02     INFO - TEST-INFO | screenshot: exit 0
[task 2021-08-11T18:22:02.851Z] 18:22:02     INFO - <snipped 108 output lines - if you need more context, please use SimpleTest.requestCompleteLog() in your test>
[task 2021-08-11T18:22:02.852Z] 18:22:02     INFO - Buffered messages logged at 18:22:02
[task 2021-08-11T18:22:02.852Z] 18:22:02     INFO - TEST-PASS | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | no-results-message should not be in search results - 
<...>
[task 2021-08-11T18:22:02.924Z] 18:22:02     INFO - TEST-PASS | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | template-featureGate should not be in search results - 
[task 2021-08-11T18:22:02.925Z] 18:22:02     INFO - Leaving test bound 
[task 2021-08-11T18:22:02.925Z] 18:22:02     INFO - Entering test bound 
[task 2021-08-11T18:22:02.926Z] 18:22:02     INFO - Console message: [JavaScript Error: "uncaught exception: out of memory"]
[task 2021-08-11T18:22:02.927Z] 18:22:02     INFO - Buffered messages finished
[task 2021-08-11T18:22:02.928Z] 18:22:02     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | uncaught exception - ReferenceError: gMainPane is not defined at init_all@chrome://browser/content/preferences/preferences.js:126:3
[task 2021-08-11T18:22:02.928Z] 18:22:02     INFO - 
[task 2021-08-11T18:22:02.928Z] 18:22:02     INFO - Stack trace:
[task 2021-08-11T18:22:02.928Z] 18:22:02     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1957
[task 2021-08-11T18:22:02.929Z] 18:22:02     INFO - GECKO(3412) | JavaScript error: chrome://browser/content/preferences/preferences.js, line 126: ReferenceError: gMainPane is not defined
[task 2021-08-11T18:22:02.929Z] 18:22:02     INFO - GECKO(3412) | console.error: "Missing preference for ID privacy.userContext.newTabContainerOnLeftClick.enabled"
[task 2021-08-11T18:22:02.930Z] 18:22:02     INFO - Console message: [JavaScript Error: "ReferenceError: gMainPane is not defined" {file: "chrome://browser/content/preferences/preferences.js" line: 126}]
[task 2021-08-11T18:22:02.930Z] 18:22:02     INFO - init_all@chrome://browser/content/preferences/preferences.js:126:3
[task 2021-08-11T18:22:02.930Z] 18:22:02     INFO - 
[task 2021-08-11T18:22:46.095Z] 18:22:46     INFO - Longer timeout required, waiting longer...  Remaining timeouts: 1
[task 2021-08-11T18:23:31.105Z] 18:23:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-11T18:23:31.105Z] 18:23:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | Test timed out - 
[task 2021-08-11T18:23:31.106Z] 18:23:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-11T18:23:31.107Z] 18:23:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | Uncaught exception received from previously timed out test - Initialized listener not removed before the end of test
[task 2021-08-11T18:23:31.107Z] 18:23:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-11T18:23:31.109Z] 18:23:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | A promise chain failed to handle a rejection: sync-pane-loaded observer not removed before the end of test - stack: (No stack available.)
[task 2021-08-11T18:23:31.109Z] 18:23:31     INFO - Rejection date: Wed Aug 11 2021 18:23:31 GMT+0000 (Coordinated Universal Time) - false == true - JS frame :: resource://testing-common/PromiseTestUtils.jsm :: assertNoUncaughtRejections :: line 285
[task 2021-08-11T18:23:31.109Z] 18:23:31     INFO - Stack trace:
[task 2021-08-11T18:23:31.109Z] 18:23:31     INFO - resource://testing-common/PromiseTestUtils.jsm:assertNoUncaughtRejections:285
[task 2021-08-11T18:23:31.109Z] 18:23:31     INFO - chrome://mochikit/content/browser-test.js:nextTest:625
[task 2021-08-11T18:23:31.109Z] 18:23:31     INFO - chrome://mochikit/content/browser-test.js:timeoutFn:1231
[task 2021-08-11T18:23:31.110Z] 18:23:31     INFO - GECKO(3412) | JavaScript error: resource://testing-common/PromiseTestUtils.jsm, line 131: uncaught exception: sync-pane-loaded observer not removed before the end of test
[task 2021-08-11T18:23:31.111Z] 18:23:31     INFO - Console message: [JavaScript Error: "uncaught exception: sync-pane-loaded observer not removed before the end of test" {file: "resource://testing-common/PromiseTestUtils.jsm" line: 131}]
[task 2021-08-11T18:23:31.142Z] 18:23:31     INFO - GECKO(3412) | MEMORY STAT | vsize 1864MB | vsizeMaxContiguous 6MB | residentFast 868MB | heapAllocated 673MB
[task 2021-08-11T18:23:31.143Z] 18:23:31     INFO - TEST-OK | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | took 90074ms
[task 2021-08-11T18:23:31.144Z] 18:23:31     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-08-11T18:23:31.144Z] 18:23:31     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_8.js | Found a tab after previous test timed out: about:preferences#general - 
[task 2021-08-11T18:23:31.172Z] 18:23:31     INFO - checking window state
[task 2021-08-11T18:23:31.180Z] 18:23:31     INFO - TEST-START | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_site_data.js
[task 2021-08-11T18:23:34.337Z] 18:23:34     INFO - GECKO(3412) | out of memory: 0x00000000000493E0 bytes requested
[task 2021-08-11T18:23:34.617Z] 18:23:34     INFO - TEST-INFO | Main app process: exit 1
[task 2021-08-11T18:23:34.617Z] 18:23:34     INFO - Buffered messages logged at 18:23:31
[task 2021-08-11T18:23:34.618Z] 18:23:34     INFO - Entering test bound 
[task 2021-08-11T18:23:34.618Z] 18:23:34     INFO - Leaving test bound 
[task 2021-08-11T18:23:34.619Z] 18:23:34     INFO - Entering test bound 
[task 2021-08-11T18:23:34.620Z] 18:23:34     INFO - TEST-PASS | browser/components/preferences/tests/browser_search_subdialogs_within_preferences_site_data.js | Element should not be null, when checking visibility - 
```