Bug: Intermittent Assertion failure: NS_IsMainThread() (nsXPCWrappedJS::AddRef called off main thread), at /builds/worker/checkouts/gecko/js/xpconnect/src/XPCWrappedJS.cpp:243
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-01-24 16:14:11+00:00
Resolved: 2022-02-22 17:06:12+00:00

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

---
```
INFO - TEST-START | browser/components/shell/test/browser_headless_screenshot_1.js
[task 2022-01-24T15:31:08.577Z] 15:31:08     INFO - GECKO(9287) | *** You are running in headless mode.
[task 2022-01-24T15:31:09.013Z] 15:31:09     INFO - GECKO(9287) | >>> 1643038269005	Marionette	INFO	Marionette enabled
[task 2022-01-24T15:31:09.017Z] 15:31:09     INFO - GECKO(9287) | 1643038269006	Marionette	TRACE	Received observer notification profile-after-change
[task 2022-01-24T15:31:09.164Z] 15:31:09     INFO - GECKO(9287) | >>> 1643038269161	Marionette	TRACE	Received observer notification command-line-startup
[task 2022-01-24T15:31:10.550Z] 15:31:10     INFO - GECKO(9287) | >>> Screenshot saved to: /tmp/headless_test_screenshot.png
[task 2022-01-24T15:31:10.688Z] 15:31:10     INFO - GECKO(9287) | ###!!! [Parent][PCompositorManagerParent] Error: RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost
[task 2022-01-24T15:31:10.692Z] 15:31:10     INFO - GECKO(9287) | ###!!! [Parent][PImageBridgeParent] Error: RunMessage(msgname=PImageBridge::Msg_WillClose) Channel closing: too late to send/recv, messages will be lost
[task 2022-01-24T15:31:10.784Z] 15:31:10     INFO - GECKO(9287) | JavaScript error: resource://gre/modules/URLQueryStrippingListService.jsm, line 90: TypeError: can't access property "removeEventListener", Services.cpmm.sharedData is null
[task 2022-01-24T15:31:10.787Z] 15:31:10     INFO - GECKO(9287) | ###!!! [Parent][PCompositorManagerParent] Error: RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost
[task 2022-01-24T15:31:10.965Z] 15:31:10     INFO - GECKO(9287) | ###!!! [Parent][PCompositorManagerParent] Error: RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost
[task 2022-01-24T15:31:12.029Z] 15:31:12     INFO - GECKO(9287) | >>> 1643038272026	Marionette	INFO	Marionette enabled
<...>
INFO - GECKO(9287) | >>> Warning: unrecognized command line flag -attach-console
[task 2022-01-24T15:31:26.261Z] 15:31:26     INFO - GECKO(9287) | >>> Screenshot saved to: /tmp/headless_test_screenshot.png
[task 2022-01-24T15:31:26.379Z] 15:31:26     INFO - GECKO(9287) | ###!!! [Parent][PCompositorManagerParent] Error: RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost
[task 2022-01-24T15:31:26.519Z] 15:31:26     INFO - GECKO(9287) | JavaScript error: resource://gre/modules/URLQueryStrippingListService.jsm, line 90: TypeError: can't access property "removeEventListener", Services.cpmm.sharedData is null
[task 2022-01-24T15:31:26.520Z] 15:31:26     INFO - GECKO(9287) | ###!!! [Parent][PCompositorManagerParent] Error: RunMessage(msgname=PCompositorBridge::Msg___delete__) Channel closing: too late to send/recv, messages will be lost
[task 2022-01-24T15:31:26.527Z] 15:31:26     INFO - GECKO(9287) | Assertion failure: NS_IsMainThread() (nsXPCWrappedJS::AddRef called off main thread), at /builds/worker/checkouts/gecko/js/xpconnect/src/XPCWrappedJS.cpp:243
[task 2022-01-24T15:31:26.537Z] 15:31:26     INFO - GECKO(9287) | #01: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0x5d07694]
[task 2022-01-24T15:31:26.539Z] 15:31:26     INFO - GECKO(9287) | #02: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0x414ee4e]
[task 2022-01-24T15:31:26.543Z] 15:31:26     INFO - GECKO(9287) | #03: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0xf31f8ef]
[task 2022-01-24T15:31:26.548Z] 15:31:26     INFO - GECKO(9287) | #04: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0xf2cdca9]
[task 2022-01-24T15:31:26.548Z] 15:31:26     INFO - GECKO(9287) | #05: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0xf2cd114]
[task 2022-01-24T15:31:26.549Z] 15:31:26     INFO - GECKO(9287) | #06: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0xf2feb9f]
[task 2022-01-24T15:31:26.550Z] 15:31:26     INFO - GECKO(9287) | #07: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0x40e9b1c]
[task 2022-01-24T15:31:26.551Z] 15:31:26     INFO - GECKO(9287) | #08: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0x40f440d]
[task 2022-01-24T15:31:26.558Z] 15:31:26     INFO - GECKO(9287) | #09: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0x5296ed9]
[task 2022-01-24T15:31:26.559Z] 15:31:26     INFO - GECKO(9287) | #10: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0x51a36f2]
[task 2022-01-24T15:31:26.559Z] 15:31:26     INFO - GECKO(9287) | #11: ???[/builds/worker/workspace/build/application/firefox/libxul.so +0x40e224a]
[task 2022-01-24T15:31:26.560Z] 15:31:26     INFO - GECKO(9287) | #12: ???[/builds/worker/workspace/build/application/firefox/libnspr4.so +0x7eadf]
[task 2022-01-24T15:31:26.561Z] 15:31:26     INFO - GECKO(9287) | #13: ???[/lib/x86_64-linux-gnu/libpthread.so.0 +0x76db]
[task 2022-01-24T15:31:26.562Z] 15:31:26     INFO - GECKO(9287) | #14: clone[/lib/x86_64-linux-gnu/libc.so.6 +0x121a3f]
[task 2022-01-24T15:31:26.562Z] 15:31:26     INFO - GECKO(9287) | #15: ??? (???:???)
[task 2022-01-24T15:31:26.563Z] 15:31:26     INFO - GECKO(9287) | AddressSanitizer:DEADLYSIGNAL
[task 2022-01-24T15:31:26.564Z] 15:31:26     INFO - GECKO(9287) | =================================================================
[task 2022-01-24T15:31:26.565Z] 15:31:26    ERROR - GECKO(9287) | ==10233==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000001 (pc 0x7fb8db5ae6c0 bp 0x7fb8bafa9030 sp 0x7fb8bafa9010 T56)
[task 2022-01-24T15:31:26.565Z] 15:31:26     INFO - GECKO(9287) | ==10233==The signal is caused by a WRITE memory access.
[task 2022-01-24T15:31:26.566Z] 15:31:26     INFO - GECKO(9287) | ==10233==Hint: address points to the zero page.
```