Bug: Intermittent browser/components/preferences/tests/browser_sync_pairing.js | uncaught exception - TypeError: can't access property "gSubDialog", content is null at dialogopen@chrome://mochitests/content/browser/browser/components/preferences/tests/head.js:
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-06-01 12:48:49+00:00
Resolved: 2022-07-26 00:13:55+00:00

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

---
```
[task 2022-06-01T11:51:20.677Z] 11:51:20     INFO - TEST-PASS | browser/components/preferences/tests/browser_sync_pairing.js | true == true - 
[task 2022-06-01T11:51:20.677Z] 11:51:20     INFO - waiting for dialog to unload
[task 2022-06-01T11:51:20.677Z] 11:51:20     INFO - Leaving test bound testShowsQRCode
[task 2022-06-01T11:51:20.677Z] 11:51:20     INFO - Entering test bound testCantShowQrCode
[task 2022-06-01T11:51:20.678Z] 11:51:20     INFO - Console message: [JavaScript Error: "uncaught exception: out of memory"]
[task 2022-06-01T11:51:20.679Z] 11:51:20     INFO - Buffered messages finished
[task 2022-06-01T11:51:20.680Z] 11:51:20     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_sync_pairing.js | uncaught exception - TypeError: can't access property "gSubDialog", content is null at dialogopen@chrome://mochitests/content/browser/browser/components/preferences/tests/head.js:57:9
[task 2022-06-01T11:51:20.680Z] 11:51:20     INFO - resizeDialog@resource://gre/modules/SubDialog.jsm:489:19
[task 2022-06-01T11:51:20.680Z] 11:51:20     INFO - _onLoad@resource://gre/modules/SubDialog.jsm:452:16
[task 2022-06-01T11:51:20.681Z] 11:51:20     INFO - 
[task 2022-06-01T11:51:20.681Z] 11:51:20     INFO - Stack trace:
[task 2022-06-01T11:51:20.681Z] 11:51:20     INFO - chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:simpletestOnerror:1957
[task 2022-06-01T11:51:20.681Z] 11:51:20     INFO - resource://gre/modules/SubDialog.jsm:resizeDialog:489
[task 2022-06-01T11:51:20.681Z] 11:51:20     INFO - resource://gre/modules/SubDialog.jsm:_onLoad:452
[task 2022-06-01T11:51:20.682Z] 11:51:20     INFO - GECKO(5756) | JavaScript error: chrome://mochitests/content/browser/browser/components/preferences/tests/head.js, line 57: TypeError: can't access property "gSubDialog", content is null
[task 2022-06-01T11:51:20.683Z] 11:51:20     INFO - GECKO(5756) | [GFX1-]: wr_renderer_render: OutOfMemory
[task 2022-06-01T11:51:20.684Z] 11:51:20     INFO - Console message: [JavaScript Error: "TypeError: can't access property "gSubDialog", content is null" {file: "chrome://mochitests/content/browser/browser/components/preferences/tests/head.js" line: 57}]
[task 2022-06-01T11:51:20.684Z] 11:51:20     INFO - dialogopen@chrome://mochitests/content/browser/browser/components/preferences/tests/head.js:57:9
[task 2022-06-01T11:51:20.684Z] 11:51:20     INFO - resizeDialog@resource://gre/modules/SubDialog.jsm:489:19
[task 2022-06-01T11:51:20.684Z] 11:51:20     INFO - _onLoad@resource://gre/modules/SubDialog.jsm:452:16
[task 2022-06-01T11:51:20.684Z] 11:51:20     INFO - 
[task 2022-06-01T11:51:20.685Z] 11:51:20     INFO - Console message: [JavaScript Error: "boom" {file: "chrome://mochitests/content/browser/browser/components/preferences/tests/browser_sync_pairing.js" line: 68}]
[task 2022-06-01T11:51:20.685Z] 11:51:20     INFO - testCantShowQrCode/FxAccountsPairingFlow.start@chrome://mochitests/content/browser/browser/components/preferences/tests/browser_sync_pairing.js:68:11
[task 2022-06-01T11:51:20.685Z] 11:51:20     INFO - startPairingFlow@chrome://browser/content/preferences/fxaPairDevice.js:66:31
[task 2022-06-01T11:51:20.685Z] 11:51:20     INFO - init/<@chrome://browser/content/preferences/fxaPairDevice.js:45:49
[task 2022-06-01T11:51:20.686Z] 11:51:20     INFO - 
[task 2022-06-01T11:51:20.686Z] 11:51:20     INFO - GECKO(5756) | [GFX1-]: wr_renderer_render: OutOfMemory
[task 2022-06-01T11:51:20.687Z] 11:51:20     INFO - GECKO(5756) | [GFX1-]: Failed to connect WebRenderBridgeChild. isParent=false
[task 2022-06-01T11:51:20.687Z] 11:51:20     INFO - GECKO(5756) | [GFX1-]: wr_renderer_render: OutOfMemory
[task 2022-06-01T11:51:20.688Z] 11:51:20     INFO - GECKO(5756) | [GFX1-]: wr_renderer_render: OutOfMemory
[task 2022-06-01T11:51:20.805Z] 11:51:20     INFO - GECKO(5756) | [GFX1-]: wr_renderer_render: OutOfMemory
[task 2022-06-01T11:51:20.875Z] 11:51:20     INFO - GECKO(5756) | [GFX1-]: wr_renderer_render: OutOfMemory
[task 2022-06-01T11:51:21.834Z] 11:51:21     INFO - GECKO(5756) | [GFX1-]: wr_renderer_render: OutOfMemory
[task 2022-06-01T11:51:36.843Z] 11:51:36     INFO - GECKO(5756) | [GFX1-]: wr_renderer_render: OutOfMemory
[task 2022-06-01T11:52:03.868Z] 11:52:03     INFO - Not taking screenshot here: see the one that was previously logged
[task 2022-06-01T11:52:03.868Z] 11:52:03     INFO - TEST-UNEXPECTED-FAIL | browser/components/preferences/tests/browser_sync_pairing.js | Test timed out - 
[task 2022-06-01T11:52:03.903Z] 11:52:03     INFO - GECKO(5756) | MEMORY STAT | vsize 1777MB | vsizeMaxContiguous 22MB | residentFast 941MB | heapAllocated 595MB
[task 2022-06-01T11:52:03.904Z] 11:52:03     INFO - TEST-OK | browser/components/preferences/tests/browser_sync_pairing.js | took 45135ms
```