Bug: Intermittent toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | Found a tab after previous test timed out: https://example.com/browser/browser/components/newtab/test/browser/red_page.html
Status: RESOLVED
Priority: P1
Resolution: WORKSFORME
Created: 2021-06-16 22:10:58+00:00
Resolved: 2021-08-03 11:44:34+00:00

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

---
```
[task 2021-06-16T20:42:35.444Z] 20:42:35     INFO - TEST-START | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js
[task 2021-06-16T20:42:36.308Z] 20:42:36     INFO - GECKO(6232) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2021-06-16T20:42:36.310Z] 20:42:36     INFO - GECKO(6232) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2021-06-16T20:42:36.311Z] 20:42:36     INFO - GECKO(6232) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2021-06-16T20:42:36.313Z] 20:42:36     INFO - GECKO(6232) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2021-06-16T20:42:36.314Z] 20:42:36     INFO - GECKO(6232) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2021-06-16T20:42:36.374Z] 20:42:36     INFO - GECKO(6232) | JavaScript error: resource://gre/modules/XULStore.jsm, line 66: Error: Can't find profile directory.
[task 2021-06-16T20:42:47.819Z] 20:42:47     INFO - GECKO(6232) | [GFX1-]: Killing GPU process due to IPC reply timeout
[task 2021-06-16T20:42:49.921Z] 20:42:49     INFO - GECKO(6232) | [GFX1-]: Receive IPC close with reason=AbnormalShutdown
[task 2021-06-16T20:42:49.922Z] 20:42:49     INFO - GECKO(6232) | [GFX1-]: Receive IPC close with reason=AbnormalShutdown
[task 2021-06-16T20:42:49.922Z] 20:42:49     INFO - GECKO(6232) | [Parent 5236, Main Thread] WARNING: base::KillProcess refusing to terminate process handle 0: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_wi[n.cc:402
[task 2021-06-16T20:42:49.923Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0xA80026,name=PWebRenderBridge::Msg_Shutdown) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.924Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0x940003,name=PTexture::Msg_Destroy) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.925Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0x940003,name=PTexture::Msg_Destroy) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.925Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0x940003,name=PTexture::Msg_Destroy) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.926Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0x940003,name=PTexture::Msg_Destroy) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.926Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0xD,name=PAPZ::Msg_Destroy) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.927Z] 20:42:49     INFO - GECKO(6232) | [G
[task 2021-06-16T20:42:49.927Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0xA80026,name=PWebRenderBridge::Msg_Shutdown) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.928Z] 20:42:49     INFO - GECKO(6232) | GFX1-]: Re
[task 2021-06-16T20:42:49.928Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0xA80026,name=PWebRenderBridge::Msg_Shutdown) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.929Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0x940003,name=PTexture::Msg_Destroy) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.930Z] 20:42:49     INFO - GECKO(6232) | ###!!! [Child][MessageChannel] Error: (msgtype=0xD,name=PAPZ::Msg_Destroy) Channel error: cannot send/recv
[task 2021-06-16T20:42:49.930Z] 20:42:49     INFO - GECKO(6232) | FX1-]: Receive IPC close with reason=AbnormalShutdown
[task 2021-06-16T20:42:49.931Z] 20:42:49     INFO - GECKO(6232) | [GFX1-]: Receive IPC close with reason=Abnorm[GFX1-]:alShutdown
[task 2021-06-16T20:42:49.931Z] 20:42:49     INFO - GECKO(6232) | [G cReeFcXei1vi-v]e:  IRPeeC  IcPlcCo scelieo vseew  IwiPtiCthh  cr lroeeaasssoonen ==wAith rea[AGbsFobnXnnorm=1-AbnormalShua]lStodohrum:a wtndolRSeh
[task 2021-06-16T20:42:49.932Z] 20:42:49     INFO - GECKO(6232) | wn
[task 2021-06-16T20:42:49.932Z] 20:42:49     INFO - GECKO(6232) | ceive IPC cloustdowne
[task 2021-06-16T20:42:49.932Z] 20:42:49     INFO - GECKO(6232) |  with reason=Abnormal[Shutdown
[task 2021-06-16T20:42:49.933Z] 20:42:49     INFO - GECKO(6232) | GFX1-]: Receive IPC close with reason=AbnormalShutdown
[task 2021-06-16T20:42:49.967Z] 20:42:49     INFO - GECKO(6232) | [GFX1-]: Receive IPC close with reason=AbnormalShutdown
[task 2021-06-16T20:42:49.968Z] 20:42:49     INFO - GECKO(6232) | [GFX1-]: Receive IPC close with reason=AbnormalShutdown
[task 2021-06-16T20:42:49.968Z] 20:42:49     INFO - GECKO(6232) | [GFX1-]: Receive IPC close with reason=AbnormalShutdown
[task 2021-06-16T20:43:20.466Z] 20:43:20     INFO - TEST-INFO | started process screenshot
[task 2021-06-16T20:43:20.546Z] 20:43:20     INFO - TEST-INFO | screenshot: exit 0
[task 2021-06-16T20:43:20.546Z] 20:43:20     INFO - Buffered messages logged at 20:42:35
[task 2021-06-16T20:43:20.547Z] 20:43:20     INFO - Entering test bound check_matchPatternFailureCase
[task 2021-06-16T20:43:20.547Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | Should fail, bad pattern - 
[task 2021-06-16T20:43:20.554Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | Should work, updated pattern - 
[task 2021-06-16T20:43:20.556Z] 20:43:20     INFO - Leaving test bound check_matchPatternFailureCase
[task 2021-06-16T20:43:20.556Z] 20:43:20     INFO - Entering test bound check_openArticleURL
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - Console message: [JavaScript Error: "[Exception... "Illegal value"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: resource://activity-stream/lib/ASRouterTriggerListeners.jsm :: createMatchPatternSet :: line 77"  data: no]"]
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - createMatchPatternSet@resource://activity-stream/lib/ASRouterTriggerListeners.jsm:77:12
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - init@resource://activity-stream/lib/ASRouterTriggerListeners.jsm:107:35
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - check_matchPatternFailureCase@chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js:28:18
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - Tester_execTest/<@chrome://mochikit/content/browser-test.js:1089:34
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - Tester_execTest@chrome://mochikit/content/browser-test.js:1129:11
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - nextTest/<@chrome://mochikit/content/browser-test.js:946:14
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - SimpleTest.waitForFocus/waitForFocusInner/focusedOrLoaded/<@chrome://mochikit/content/tests/SimpleTest/SimpleTest.js:1037:23
[task 2021-06-16T20:43:20.557Z] 20:43:20     INFO - 
[task 2021-06-16T20:43:20.558Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | We should match on the TEST_URL as a website article - 
[task 2021-06-16T20:43:20.558Z] 20:43:20     INFO - Leaving test bound check_openArticleURL
[task 2021-06-16T20:43:20.558Z] 20:43:20     INFO - Entering test bound check_openURL_listener
[task 2021-06-16T20:43:20.558Z] 20:43:20     INFO - Buffered messages logged at 20:42:36
[task 2021-06-16T20:43:20.558Z] 20:43:20     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2021-06-16T20:43:20.558Z] 20:43:20     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - 
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - 
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2021-06-16T20:43:20.559Z] 20:43:20     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2021-06-16T20:43:20.560Z] 20:43:20     INFO - 
[task 2021-06-16T20:43:20.560Z] 20:43:20     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2021-06-16T20:43:20.560Z] 20:43:20     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2021-06-16T20:43:20.560Z] 20:43:20     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2021-06-16T20:43:20.560Z] 20:43:20     INFO - 
[task 2021-06-16T20:43:20.560Z] 20:43:20     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2021-06-16T20:43:20.562Z] 20:43:20     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2021-06-16T20:43:20.562Z] 20:43:20     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2021-06-16T20:43:20.562Z] 20:43:20     INFO - 
[task 2021-06-16T20:43:20.562Z] 20:43:20     INFO - Console message: [JavaScript Error: "Error: Can't find profile directory." {file: "resource://gre/modules/XULStore.jsm" line: 66}]
[task 2021-06-16T20:43:20.562Z] 20:43:20     INFO - load@resource://gre/modules/XULStore.jsm:66:15
[task 2021-06-16T20:43:20.562Z] 20:43:20     INFO - XULStore@resource://gre/modules/XULStore.jsm:24:10
[task 2021-06-16T20:43:20.562Z] 20:43:20     INFO - 
[task 2021-06-16T20:43:20.563Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | should receive page visits from existing windows - 
[task 2021-06-16T20:43:20.563Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | should not receive page visits for different domains - 
[task 2021-06-16T20:43:20.563Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | should not receive page visits from existing private windows - 
[task 2021-06-16T20:43:20.563Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | should receive page visits from newly opened windows - 
[task 2021-06-16T20:43:20.563Z] 20:43:20     INFO - Buffered messages logged at 20:42:37
[task 2021-06-16T20:43:20.563Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | should not receive page visits from newly opened private windows - 
[task 2021-06-16T20:43:20.563Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | should now not receive page visits from existing windows - 
[task 2021-06-16T20:43:20.564Z] 20:43:20     INFO - TEST-PASS | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | should now not receive page visits from newly opened windows - 
[task 2021-06-16T20:43:20.564Z] 20:43:20     INFO - Buffered messages logged at 20:42:47
[task 2021-06-16T20:43:20.564Z] 20:43:20     INFO - Leaving test bound check_openURL_listener
[task 2021-06-16T20:43:20.564Z] 20:43:20     INFO - Entering test bound check_newSavedLogin_save_listener
[task 2021-06-16T20:43:20.565Z] 20:43:20     INFO - Buffered messages finished
[task 2021-06-16T20:43:20.565Z] 20:43:20     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | Test timed out - 
[task 2021-06-16T20:43:20.566Z] 20:43:20     INFO - GECKO(6232) | MEMORY STAT | vsize 2104174MB | vsizeMaxContiguous 65263237MB | residentFast 228MB | heapAllocated 75MB
[task 2021-06-16T20:43:20.566Z] 20:43:20     INFO - TEST-OK | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | took 45048ms
[task 2021-06-16T20:43:20.567Z] 20:43:20     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-16T20:43:20.567Z] 20:43:20     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | Found a tab after previous test timed out: https://example.com/browser/browser/components/newtab/test/browser/red_page.html - 
[task 2021-06-16T20:43:20.568Z] 20:43:20     INFO - checking window state
[task 2021-06-16T20:43:20.900Z] 20:43:20     INFO - GECKO(6232) | JavaScript error: resource://activity-stream/lib/ASRouterTriggerListeners.jsm, line 441: TypeError: aSubject is null
[task 2021-06-16T20:43:20.901Z] 20:43:20     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-16T20:43:20.903Z] 20:43:20     INFO - TEST-UNEXPECTED-FAIL | toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js | Uncaught exception received from previously timed out test - at chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js:192 - TypeError: BrowserTestUtils is null
[task 2021-06-16T20:43:20.903Z] 20:43:20     INFO - Stack trace:
[task 2021-06-16T20:43:20.903Z] 20:43:20     INFO - triggerNewSavedPassword@chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js:192:7
[task 2021-06-16T20:43:20.903Z] 20:43:20     INFO - withNewTab@resource://testing-common/BrowserTestUtils.jsm:148:24
[task 2021-06-16T20:43:20.903Z] 20:43:20     INFO - GECKO(6232) | [Parent 5236, IPC I/O Parent] WARNING: file /builds/worker/checkouts/gecko/ipc/chromium/src/base/process_util_win.cc:167
[task 2021-06-16T20:43:20.904Z] 20:43:20     INFO - Console message: [JavaScript Error: "TypeError: aSubject is null" {file: "resource://activity-stream/lib/ASRouterTriggerListeners.jsm" line: 441}]
[task 2021-06-16T20:43:20.904Z] 20:43:20     INFO - observe@resource://activity-stream/lib/ASRouterTriggerListeners.jsm:441:13
[task 2021-06-16T20:43:20.904Z] 20:43:20     INFO - triggerNewSavedPassword@chrome://mochitests/content/browser/toolkit/components/messaging-system/schemas/TriggerActionSchemas/test/browser/browser_asrouter_trigger_listeners.js:191:20
[task 2021-06-16T20:43:20.904Z] 20:43:20     INFO - withNewTab@resource://testing-common/BrowserTestUtils.jsm:148:24
[task 2021-06-16T20:43:20.904Z] 20:43:20     INFO - 
[task 2021-06-16T20:43:21.714Z] 20:43:21     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 7940
[task 2021-06-16T20:43:21.715Z] 20:43:21     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 7904
[task 2021-06-16T20:43:21.723Z] 20:43:21     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 820
[task 2021-06-16T20:43:21.732Z] 20:43:21     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 6200
[task 2021-06-16T20:43:21.736Z] 20:43:21     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 2768
[task 2021-06-16T20:43:21.738Z] 20:43:21     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 2356
[task 2021-06-16T20:43:21.742Z] 20:43:21     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 3564
[task 2021-06-16T20:43:21.743Z] 20:43:21     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 10544
[task 2021-06-16T20:43:22.070Z] 20:43:22     INFO - GECKO(6232) | Completed ShutdownLeaks collections in process 5236
[task 2021-06-16T20:43:22.070Z] 20:43:22     INFO - TEST-START | Shutdown
[task 2021-06-16T20:43:22.071Z] 20:43:22     INFO - Browser Chrome Test Summary
[task 2021-06-16T20:43:22.071Z] 20:43:22     INFO - Passed:  29
[task 2021-06-16T20:43:22.071Z] 20:43:22     INFO - Failed:  3
[task 2021-06-16T20:43:22.072Z] 20:43:22     INFO - Todo:    0
[task 2021-06-16T20:43:22.072Z] 20:43:22     INFO - Mode:    e10s
[task 2021-06-16T20:43:22.073Z] 20:43:22     INFO - *** End BrowserChrome Test Results ***
[task 2021-06-16T20:43:22.392Z] 20:43:22     INFO - GECKO(6232) | 1623876202391	Marionette	TRACE	Received observer notification xpcom-will-shutdown
[task 2021-06-16T20:43:22.392Z] 20:43:22     INFO - GECKO(6232) | 1623876202391	Marionette	INFO	Stopped listening on port 2828
[task 2021-06-16T20:43:22.392Z] 20:43:22     INFO - GECKO(6232) | 1623876202391	Marionette	DEBUG	Marionette stopped listening
[task 2021-06-16T20:43:22.473Z] 20:43:22     INFO - GECKO(6232) | ###!!! [Child][RunMessage] Error: Channel closing: too late to send/recv, messages will be lost
[task 2021-06-16T20:43:22.529Z] 20:43:22     INFO - TEST-INFO | Main app process: exit 0
```