Bug: Intermittent browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreEnabledAllWindows.test_with_variety | marionette_driver.errors.TimeoutException: TimedPromise timed out after 300000 ms
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2022-08-30 23:23:15+00:00
Resolved: 2022-09-27 17:04:57+00:00

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

---
```
[task 2022-08-30T22:23:27.738Z] 22:23:27     INFO - TEST-START | browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreEnabledAllWindows.test_with_variety
[task 2022-08-30T22:23:27.740Z] 22:23:27     INFO -  1661898207739	Marionette	DEBUG	Closed connection 1
[task 2022-08-30T22:23:27.741Z] 22:23:27     INFO -  1661898207740	Marionette	DEBUG	Accepted connection 2 from 127.0.0.1:43038
[task 2022-08-30T22:23:27.742Z] 22:23:27     INFO -  1661898207742	Marionette	DEBUG	2 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2022-08-30T22:23:27.744Z] 22:23:27     INFO -  1661898207743	Marionette	DEBUG	Waiting for initial application window
[task 2022-08-30T22:23:27.745Z] 22:23:27     INFO -  1661898207745	RemoteAgent	TRACE	[9] Document already finished loading: about:blank
[task 2022-08-30T22:23:27.749Z] 22:23:27     INFO -  1661898207748	Marionette	DEBUG	2 <- [1,1,null,{"sessionId":"652bdb0b-5faa-4bed-962c-6fbe642656d4","capabilities":{"browserName":"firefox","browserVersion":"106.0 ... wnTimeout":180000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"moz:windowless":false,"proxy":{}}}]
[task 2022-08-30T22:23:27.751Z] 22:23:27     INFO -  1661898207750	Marionette	DEBUG	2 -> [0,2,"WebDriver:SetTimeouts",{"script":30000}]
[task 2022-08-30T22:23:27.752Z] 22:23:27     INFO -  1661898207751	Marionette	DEBUG	2 <- [1,2,null,{"value":null}]
[task 2022-08-30T22:23:27.753Z] 22:23:27     INFO -  1661898207753	Marionette	DEBUG	2 -> [0,3,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2022-08-30T22:23:27.754Z] 22:23:27     INFO -  1661898207754	Marionette	DEBUG	2 <- [1,3,null,{"value":null}]
[task 2022-08-30T22:23:27.755Z] 22:23:27     INFO -  1661898207755	Marionette	DEBUG	2 -> [0,4,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2022-08-30T22:23:27.756Z] 22:23:27     INFO -  1661898207756	Marionette	DEBUG	2 <- [1,4,null,{"value":null}]
[task 2022-08-30T22:23:27.758Z] 22:23:27     INFO -  1661898207757	Marionette	DEBUG	2 -> [0,5,"Marionette:GetContext",{}]
[task 2022-08-30T22:23:27.759Z] 22:23:27     INFO -  1661898207758	Marionette	DEBUG	2 <- [1,5,null,{"value":"content"}]
[task 2022-08-30T22:23:27.760Z] 22:23:27     INFO -  1661898207759	Marionette	DEBUG	2 -> [0,6,"Marionette:SetContext",{"value":"chrome"}]
[task 2022-08-30T22:23:27.761Z] 22:23:27     INFO -  1661898207760	Marionette	DEBUG	2 <- [1,6,null,{"value":null}]
[task 2022-08-30T22:23:27.762Z] 22:23:27     INFO -  1661898207761	Marionette	DEBUG	2 -> [0,7,"WebDriver:GetWindowHandle",{}]
[task 2022-08-30T22:23:27.763Z] 22:23:27     INFO -  1661898207762	Marionette	DEBUG	2 <- [1,7,null,{"value":"20a3a98e-96e6-416d-95d6-4222737b46b5"}]
[task 2022-08-30T22:23:27.764Z] 22:23:27     INFO -  1661898207763	Marionette	DEBUG	2 -> [0,8,"Marionette:SetContext",{"value":"content"}]
[task 2022-08-30T22:23:27.764Z] 22:23:27     INFO -  1661898207764	Marionette	DEBUG	2 <- [1,8,null,{"value":null}]
[task 2022-08-30T22:23:27.766Z] 22:23:27     INFO -  1661898207766	Marionette	DEBUG	2 -> [0,9,"Marionette:GetContext",{}]
[task 2022-08-30T22:23:27.767Z] 22:23:27     INFO -  1661898207766	Marionette	DEBUG	2 <- [1,9,null,{"value":"content"}]
[task 2022-08-30T22:23:27.768Z] 22:23:27     INFO -  1661898207767	Marionette	DEBUG	2 -> [0,10,"Marionette:SetContext",{"value":"chrome"}]
[task 2022-08-30T22:23:27.769Z] 22:23:27     INFO -  1661898207768	Marionette	DEBUG	2 <- [1,10,null,{"value":null}]
[task 2022-08-30T22:23:27.770Z] 22:23:27     INFO -  1661898207769	Marionette	DEBUG	2 -> [0,11,"WebDriver:GetWindowHandles",{}]
[task 2022-08-30T22:23:27.771Z] 22:23:27     INFO -  1661898207770	Marionette	DEBUG	2 <- [1,11,null,["20a3a98e-96e6-416d-95d6-4222737b46b5"]]
[task 2022-08-30T22:23:27.772Z] 22:23:27     INFO -  1661898207771	Marionette	DEBUG	2 -> [0,12,"Marionette:SetContext",{"value":"content"}]
[task 2022-08-30T22:23:27.772Z] 22:23:27     INFO -  1661898207772	Marionette	DEBUG	2 <- [1,12,null,{"value":null}]
[task 2022-08-30T22:23:27.773Z] 22:23:27     INFO -  1661898207773	Marionette	DEBUG	2 -> [0,13,"Marionette:GetContext",{}]
[task 2022-08-30T22:23:27.774Z] 22:23:27     INFO -  1661898207774	Marionette	DEBUG	2 <- [1,13,null,{"value":"content"}]
[task 2022-08-30T22:23:27.775Z] 22:23:27     INFO -  1661898207775	Marionette	DEBUG	2 -> [0,14,"Marionette:SetContext",{"value":"content"}]
[task 2022-08-30T22:23:27.776Z] 22:23:27     INFO -  1661898207775	Marionette	DEBUG	2 <- [1,14,null,{"value":null}]
[task 2022-08-30T22:23:27.777Z] 22:23:27     INFO -  1661898207777	Marionette	DEBUG	2 -> [0,15,"WebDriver:GetWindowHandle",{}]
[task 2022-08-30T22:23:27.778Z] 22:23:27     INFO -  1661898207777	Marionette	DEBUG	2 <- [1,15,null,{"value":"f4223f14-e6c5-49dc-afee-ead065bf47d4"}]
[task 2022-08-30T22:23:27.779Z] 22:23:27     INFO -  1661898207779	Marionette	DEBUG	2 -> [0,16,"Marionette:SetContext",{"value":"content"}]
[task 2022-08-30T22:23:27.780Z] 22:23:27     INFO -  1661898207779	Marionette	DEBUG	2 <- [1,16,null,{"value":null}]
[task 2022-08-30T22:23:27.781Z] 22:23:27     INFO -  1661898207780	Marionette	DEBUG	2 -> [0,17,"Marionette:GetContext",{}]
[task 2022-08-30T22:23:27.782Z] 22:23:27     INFO -  1661898207781	Marionette	DEBUG	2 <- [1,17,null,{"value":"content"}]
[task 2022-08-30T22:23:27.783Z] 22:23:27     INFO -  1661898207782	Marionette	DEBUG	2 -> [0,18,"Marionette:SetContext",{"value":"content"}]
[task 2022-08-30T22:23:27.783Z] 22:23:27     INFO -  1661898207783	Marionette	DEBUG	2 <- [1,18,null,{"value":null}]
[task 2022-08-30T22:23:27.784Z] 22:23:27     INFO -  1661898207784	Marionette	DEBUG	2 -> [0,19,"WebDriver:GetWindowHandles",{}]
[task 2022-08-30T22:23:27.785Z] 22:23:27     INFO -  1661898207785	Marionette	DEBUG	2 <- [1,19,null,["f4223f14-e6c5-49dc-afee-ead065bf47d4"]]
[task 2022-08-30T22:23:27.786Z] 22:23:27     INFO -  1661898207786	Marionette	DEBUG	2 -> [0,20,"Marionette:SetContext",{"value":"content"}]
[task 2022-08-30T22:23:27.787Z] 22:23:27     INFO -  1661898207787	Marionette	DEBUG	2 <- [1,20,null,{"value":null}]
[task 2022-08-30T22:23:27.788Z] 22:23:27     INFO -  1661898207788	Marionette	DEBUG	2 -> [0,21,"Marionette:SetContext",{"value":"chrome"}]
[task 2022-08-30T22:23:27.789Z] 22:23:27     INFO -  1661898207788	Marionette	DEBUG	2 <- [1,21,null,{"value":null}]
[task 2022-08-30T22:23:27.790Z] 22:23:27     INFO -  1661898207790	Marionette	DEBUG	2 -> [0,22,"Marionette:GetContext",{}]
[task 2022-08-30T22:23:27.791Z] 22:23:27     INFO -  1661898207790	Marionette	DEBUG	2 <- [1,22,null,{"value":"chrome"}]
[task 2022-08-30T22:23:27.792Z] 22:23:27     INFO -  1661898207792	Marionette	DEBUG	2 -> [0,23,"Marionette:SetContext",{"value":"chrome"}]
[task 2022-08-30T22:23:27.793Z] 22:23:27     INFO -  1661898207792	Marionette	DEBUG	2 <- [1,23,null,{"value":null}]
[task 2022-08-30T22:23:27.794Z] 22:23:27     INFO -  1661898207794	Marionette	DEBUG	2 -> [0,24,"WebDriver:ExecuteScript",{"script":"let prefInterface = Components.classes[\"@mozilla.org/preferences-service;1\"]\n   ... ox":true,"sandbox":"default","line":929,"filename":"../../venv/lib/python3.6/site-packages/marionette_driver/marionette.py"}]
[task 2022-08-30T22:23:27.801Z] 22:23:27     INFO -  1661898207801	Marionette	TRACE	[1] MarionetteCommands actor created for window id 2

[task 2022-08-30T22:24:08.066Z] 22:24:08     INFO -  DEBUG: Completed blocker SessionFile: Finish writing Session Restore data for phase IOUtils: waiting for profileBeforeChange IO to complete
[task 2022-08-30T22:28:41.094Z] 22:28:41     INFO -  1661898521094	Marionette	DEBUG	1 <- [1,93,{"error":"timeout","message":"TimedPromise timed out after 300000 ms","stacktrace":"RemoteError@chrome://remote/content ... r@chrome://remote/content/shared/webdriver/Errors.jsm:481:5\nbail@chrome://remote/content/marionette/sync.js:228:19\n"},null]
[task 2022-08-30T22:28:41.097Z] 22:28:41     INFO -  1661898521096	Marionette	DEBUG	1 -> [0,94,"Marionette:SetContext",{"value":"chrome"}]
[task 2022-08-30T22:28:41.097Z] 22:28:41     INFO -  1661898521097	Marionette	DEBUG	1 <- [1,94,null,{"value":null}]
[task 2022-08-30T22:28:41.099Z] 22:28:41     INFO -  1661898521099	Marionette	DEBUG	1 -> [0,95,"Marionette:GetContext",{}]
[task 2022-08-30T22:28:41.100Z] 22:28:41     INFO -  1661898521100	Marionette	DEBUG	1 <- [1,95,null,{"value":"chrome"}]
[task 2022-08-30T22:28:41.101Z] 22:28:41     INFO -  1661898521101	Marionette	DEBUG	1 -> [0,96,"Marionette:SetContext",{"value":"chrome"}]
[task 2022-08-30T22:28:41.102Z] 22:28:41     INFO -  1661898521101	Marionette	DEBUG	1 <- [1,96,null,{"value":null}]
[task 2022-08-30T22:28:41.103Z] 22:28:41     INFO -  1661898521103	Marionette	DEBUG	1 -> [0,97,"WebDriver:TakeScreenshot",{"id":null,"full":true,"hash":false,"scroll":true}]
[task 2022-08-30T22:28:41.106Z] 22:28:41     INFO -  1661898521106	Marionette	TRACE	[17] MarionetteCommands actor created for window id 36
[task 2022-08-30T22:28:41.236Z] 22:28:41     INFO -  1661898521235	Marionette	DEBUG	1 <- [1,97,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABQAAAAQQCAYAAAC9RfbYAAAgAElEQVR4XuzdCZRkZ3kf/Lenp3tmekYzgIQWED6AhDDYEpjNGEzsmC0Q ... BAgAABAgQIECBAgAABAr2AA7A3lUiAAAECBAgQIECAAAECBAgQIEDgRsABeDOFIgQIECBAgAABAgQIECBAgAABAgR6gQHgQ2E3UAPucAAAAABJRU5ErkJggg=="}]
[task 2022-08-30T22:28:41.240Z] 22:28:41     INFO -  1661898521239	Marionette	DEBUG	1 -> [0,98,"Marionette:SetContext",{"value":"chrome"}]
[task 2022-08-30T22:28:41.240Z] 22:28:41     INFO -  1661898521240	Marionette	DEBUG	1 <- [1,98,null,{"value":null}]
[task 2022-08-30T22:28:41.242Z] 22:28:41     INFO -  1661898521242	Marionette	DEBUG	1 -> [0,99,"Marionette:GetContext",{}]
[task 2022-08-30T22:28:41.242Z] 22:28:41     INFO -  1661898521242	Marionette	DEBUG	1 <- [1,99,null,{"value":"chrome"}]
[task 2022-08-30T22:28:41.244Z] 22:28:41     INFO -  1661898521243	Marionette	DEBUG	1 -> [0,100,"Marionette:SetContext",{"value":"content"}]
[task 2022-08-30T22:28:41.244Z] 22:28:41     INFO -  1661898521244	Marionette	DEBUG	1 <- [1,100,null,{"value":null}]
[task 2022-08-30T22:28:41.245Z] 22:28:41     INFO -  1661898521245	Marionette	DEBUG	1 -> [0,101,"WebDriver:GetPageSource",{}]
[task 2022-08-30T22:31:58.815Z] 22:31:58     INFO -  1661898718814	addons.xpi	ERROR	System addon update list error SyntaxError: The URI is malformed.
[task 2022-08-30T22:32:33.721Z] 22:32:33     INFO -  DEBUG: Adding blocker Transaction (19) for phase places.sqlite#1: waiting for clients
[task 2022-08-30T22:32:33.721Z] 22:32:33     INFO -  DEBUG: Adding blocker places.sqlite#1: PlacesExpiration.jsm: expire (20) for phase places.sqlite#1: waiting for clients
[task 2022-08-30T22:32:33.728Z] 22:32:33     INFO -  DEBUG: Completed blocker Transaction (19) for phase places.sqlite#1: waiting for clients
[task 2022-08-30T22:32:33.728Z] 22:32:33     INFO -  DEBUG: Completed blocker places.sqlite#1: PlacesExpiration.jsm: expire (20) for phase places.sqlite#1: waiting for clients
[task 2022-08-30T22:34:41.332Z] 22:34:41     INFO -  1661898881332	Marionette	TRACE	Retrying "getPageSource", attempt: 1
[task 2022-08-30T22:34:41.333Z] 22:34:41     INFO -  1661898881333	Marionette	DEBUG	1 <- [1,101,{"error":"unknown error","message":"NotFoundError: WindowGlobalParent.getActor: No such JSWindowActor 'MarionetteComma ... e/content/marionette/transport.js:223:18\nonInputStreamReady@chrome://remote/content/marionette/transport.js:377:14\n"},null]
[task 2022-08-30T22:34:41.334Z] 22:34:41     INFO -  Marionette threw an error: NotFoundError: WindowGlobalParent.getActor: No such JSWindowActor 'MarionetteCommands'
[task 2022-08-30T22:34:41.334Z] 22:34:41     INFO -  getMarionetteCommandsActorProxy/get/<@chrome://remote/content/marionette/actors/MarionetteCommandsParent.jsm:337:65
[task 2022-08-30T22:34:41.335Z] 22:34:41     INFO -  unregisterCommandsActor@chrome://remote/content/marionette/actors/MarionetteCommandsParent.jsm:408:15
[task 2022-08-30T22:34:41.335Z] 22:34:41     INFO -  GeckoDriver.prototype.deleteSession@chrome://remote/content/marionette/driver.js:2283:8
[task 2022-08-30T22:34:41.335Z] 22:34:41     INFO -  onClosed@chrome://remote/content/marionette/server.js:207:17
[task 2022-08-30T22:34:41.335Z] 22:34:41     INFO -  close@chrome://remote/content/marionette/transport.js:223:18
[task 2022-08-30T22:34:41.335Z] 22:34:41     INFO -  onInputStreamReady@chrome://remote/content/marionette/transport.js:377:14
[task 2022-08-30T22:34:41.337Z] 22:34:41     INFO -  1661898881337	Marionette	DEBUG	Closed connection 1
[task 2022-08-30T22:37:52.419Z] 22:37:52  WARNING - Failed to gather test failure debug: Please start a session
[task 2022-08-30T22:37:52.455Z] 22:37:52     INFO - TEST-UNEXPECTED-ERROR | browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreEnabledAllWindows.test_with_variety | marionette_driver.errors.TimeoutException: TimedPromise timed out after 300000 ms
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO - stacktrace:
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO - 	RemoteError@chrome://remote/content/shared/RemoteError.jsm:12:1
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO - 	WebDriverError@chrome://remote/content/shared/webdriver/Errors.jsm:192:5
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO - 	TimeoutError@chrome://remote/content/shared/webdriver/Errors.jsm:481:5
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO - 	bail@chrome://remote/content/marionette/sync.js:228:19
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO - Traceback (most recent call last):
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_harness/marionette_test/testcases.py", line 183, in run
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO -     self.setUp()
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py", line 22, in setUp
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO -     include_private=include_private, startup_page=3
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py", line 83, in setUp
[task 2022-08-30T22:37:52.456Z] 22:37:52     INFO -     self.open_windows(self.test_windows)
[task 2022-08-30T22:37:52.457Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py", line 136, in open_windows
[task 2022-08-30T22:37:52.457Z] 22:37:52     INFO -     self.open_tabs(win, urls)
[task 2022-08-30T22:37:52.457Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py", line 159, in open_tabs
[task 2022-08-30T22:37:52.457Z] 22:37:52     INFO -     self.marionette.navigate(url)
[task 2022-08-30T22:37:52.457Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 1572, in navigate
[task 2022-08-30T22:37:52.457Z] 22:37:52     INFO -     self._send_message("WebDriver:Navigate", {"url": url})
[task 2022-08-30T22:37:52.457Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/decorators.py", line 27, in _
[task 2022-08-30T22:37:52.458Z] 22:37:52     INFO -     return func(*args, **kwargs)
[task 2022-08-30T22:37:52.458Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 666, in _send_message
[task 2022-08-30T22:37:52.458Z] 22:37:52     INFO -     self._handle_error(err)
[task 2022-08-30T22:37:52.458Z] 22:37:52     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.6/site-packages/marionette_driver/marionette.py", line 678, in _handle_error
[task 2022-08-30T22:37:52.458Z] 22:37:52     INFO -     raise errors.lookup(error)(message, stacktrace=stacktrace)
[task 2022-08-30T22:37:52.458Z] 22:37:52     INFO - TEST-INFO took 864681ms
```