Bug: Intermittent browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Uncaught exception in test - waiting for ASRouter to update messages - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2022-06-15 09:33:25+00:00
Resolved: 2022-07-26 00:08:23+00:00

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

---
```
[task 2022-06-15T09:03:37.913Z] 09:03:37     INFO - TEST-START | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js
[task 2022-06-15T09:03:37.920Z] 09:03:37     INFO - GECKO(6344) | [Child 8168, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:509
[task 2022-06-15T09:03:37.921Z] 09:03:37     INFO - GECKO(6344) | [Child 8168, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:509
[task 2022-06-15T09:03:37.928Z] 09:03:37     INFO - GECKO(6344) | [Child 8168, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:509
[task 2022-06-15T09:03:37.936Z] 09:03:37     INFO - GECKO(6344) | [Child 8168: Main Thread]: I/DocShellAndDOMWindowLeak --DOCSHELL a4dd200 == 0 [pid = 8168] [id = 0] [url = http://example.com/103.0a1/]
[task 2022-06-15T09:03:37.945Z] 09:03:37     INFO - GECKO(6344) | [Child 8168, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_StartedGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:509
[task 2022-06-15T09:03:37.948Z] 09:03:37     INFO - GECKO(6344) | [Parent 4292, Main Thread] WARNING: ContentParent: id=23afca00 | BlockShutdown: ShutDownProcess: Sent shutdown message.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1806
[task 2022-06-15T09:03:37.949Z] 09:03:37     INFO - GECKO(6344) | [Child 8168, Main Thread] WARNING: IPC message 'PIdleScheduler::Msg_DoneGC' discarded: actor cannot send: file /builds/worker/checkouts/gecko/ipc/glue/ProtocolUtils.cpp:509
[task 2022-06-15T09:03:37.952Z] 09:03:37     INFO - GECKO(6344) | [Child 8168: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (556e700) [pid = 8168] [serial = 1] [outer = 0] [url = http://example.com/103.0a1/]
[task 2022-06-15T09:03:37.952Z] 09:03:37     INFO - GECKO(6344) | [Child 8168: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 1 (a4de100) [pid = 8168] [serial = 2] [outer = 0] [url = about:blank]
[task 2022-06-15T09:03:37.953Z] 09:03:37     INFO - GECKO(6344) | [Child 8168: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 0 (c46fa00) [pid = 8168] [serial = 3] [outer = 0] [url = http://example.com/103.0a1/]
[task 2022-06-15T09:03:37.954Z] 09:03:37     INFO - GECKO(6344) | [Parent 4292, Main Thread] WARNING: ContentParent: id=23afca00 | BlockShutdown: ShutDownProcess: Closing channel.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1840
[task 2022-06-15T09:03:37.954Z] 09:03:37     INFO - GECKO(6344) | [Parent 4292, Main Thread] WARNING: ContentParent: id=23afca00 | BlockShutdown: ShutDownProcess: Close already called.: file /builds/worker/checkouts/gecko/dom/ipc/ContentParent.cpp:1847
[task 2022-06-15T09:03:37.955Z] 09:03:37     INFO - GECKO(6344) | [Child 8168, Main Thread] WARNING: Extra shutdown CC: 'i < NORMAL_SHUTDOWN_COLLECTIONS', file /builds/worker/checkouts/gecko/xpcom/base/nsCycleCollector.cpp:3359
<...>
[task 2022-06-15T09:03:44.914Z] 09:03:44     INFO - TEST-PASS | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Experiment message should not be found until we opt in - 0 == 0 - 
[task 2022-06-15T09:03:44.915Z] 09:03:44     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-experiments"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 191}]
[task 2022-06-15T09:03:44.915Z] 09:03:44     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:191:5
[task 2022-06-15T09:03:44.915Z] 09:03:44     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:576:13
[task 2022-06-15T09:03:44.915Z] 09:03:44     INFO - 
[task 2022-06-15T09:03:44.916Z] 09:03:44     INFO - Console message: [JavaScript Error: "Unknown Collection "main/nimbus-desktop-experiments"" {file: "resource://services-settings/RemoteSettingsClient.jsm" line: 191}]
[task 2022-06-15T09:03:44.916Z] 09:03:44     INFO - UnknownCollectionError@resource://services-settings/RemoteSettingsClient.jsm:191:5
[task 2022-06-15T09:03:44.916Z] 09:03:44     INFO - sync@resource://services-settings/RemoteSettingsClient.jsm:576:13
[task 2022-06-15T09:03:44.916Z] 09:03:44     INFO - 
[task 2022-06-15T09:03:44.917Z] 09:03:44     INFO - Console message: [JavaScript Error: "NetworkError: Network request failed" {file: "resource://services-settings/Utils.jsm" line: 242}]
[task 2022-06-15T09:03:44.917Z] 09:03:44     INFO - fetch/</request.onerror@resource://services-settings/Utils.jsm:242:26
[task 2022-06-15T09:03:44.917Z] 09:03:44     INFO - 
[task 2022-06-15T09:03:44.918Z] 09:03:44     INFO - Buffered messages finished
[task 2022-06-15T09:03:44.918Z] 09:03:44     INFO - TEST-UNEXPECTED-FAIL | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | Uncaught exception in test - waiting for ASRouter to update messages - timed out after 50 tries.
[task 2022-06-15T09:03:44.919Z] 09:03:44     INFO - Leaving test bound test_forceEnrollUpdatesMessages
[task 2022-06-15T09:03:44.919Z] 09:03:44     INFO - GECKO(6344) | console.debug: ExperimentManager:
[task 2022-06-15T09:03:44.920Z] 09:03:44     INFO - GECKO(6344) |   Recipe unenrolled: optin-test_xman_cfr_1655283818638
[task 2022-06-15T09:03:44.920Z] 09:03:44     INFO - GECKO(6344) | [Child 5012: Main Thread]: I/DocShellAndDOMWindowLeak --DOMWINDOW == 2 (bf66900) [pid = 5012] [serial = 21] [outer = 0] [url = about:blank]
[task 2022-06-15T09:03:44.921Z] 09:03:44     INFO - GECKO(6344) | MEMORY STAT | vsize 1002MB | vsizeMaxContiguous 1293MB | residentFast 286MB | heapAllocated 104MB
[task 2022-06-15T09:03:44.921Z] 09:03:44     INFO - TEST-OK | browser/components/newtab/test/browser/browser_asrouter_experimentsAPILoader.js | took 6840ms
[task 2022-06-15T09:03:44.922Z] 09:03:44     INFO - GECKO(6344) | [Child 2796: Main Thread]: I/DocShellAndDOMWindowLeak ++DOCSHELL 9cdf300 == 1 [pid = 2796] [id = 7]
[task 2022-06-15T09:03:44.922Z] 09:03:44     INFO - GECKO(6344) | [Child 2796: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 1 (4e6cb00) [pid = 2796] [serial = 15] [outer = 0]
[task 2022-06-15T09:03:44.923Z] 09:03:44     INFO - GECKO(6344) | [Child 2796: Main Thread]: I/DocShellAndDOMWindowLeak ++DOMWINDOW == 2 (9ce0500) [pid = 2796] [serial = 16] [outer = 4e6cb00]
[task 2022-06-15T09:03:44.924Z] 09:03:44     INFO - GECKO(6344) | [Child 5012, Main Thread] WARNING: '!CanHandleWith(aPresContext)', file /builds/worker/checkouts/gecko/dom/events/IMEStateManager.cpp:498
[task 2022-06-15T09:03:44.924Z] 09:03:44     INFO - checking window state
[task 2022-06-15T09:03:44.925Z] 09:03:44     INFO - TEST-START | browser/components/newtab/test/browser/browser_asrouter_group_frequency.js
```