Bug: Intermittent browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py | single tracking bug
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2024-06-26 07:10:39+00:00
Resolved: 2024-12-30 12:06:29+00:00

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

---
```
[task 2024-06-26T05:54:21.387Z] 05:54:21     INFO - TEST-START | browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreDisabled.test_restore_with_restart
<...>
[task 2024-06-26T05:54:31.286Z] 05:54:31     INFO -  1719381271286	Marionette	DEBUG	1 <- [1,124,null,{"value":null}]
[task 2024-06-26T05:54:31.289Z] 05:54:31     INFO -  1719381271289	Marionette	DEBUG	1 -> [0,125,"WebDriver:NewWindow",{"type":"tab","focus":false,"private":false}]
[task 2024-06-26T05:54:31.302Z] 05:54:31     INFO -  1719381271302	RemoteAgent	TRACE	Received DOM event TabOpen for [object XULElement]
[task 2024-06-26T05:54:31.338Z] 05:54:31     INFO -  1719381271338	RemoteAgent	TRACE	Received DOM event TabSelect for [object XULElement]
[task 2024-06-26T05:54:31.347Z] 05:54:31     INFO -  1719381271346	RemoteAgent	TRACE	[28] ProgressListener Start: expectNavigation=false resolveWhenStarted=false unloadTimeout=80000 waitForExplicitStart=false
[task 2024-06-26T05:54:31.347Z] 05:54:31     INFO -  1719381271346	RemoteAgent	TRACE	[28] ProgressListener Setting unload timer (80000ms)
[task 2024-06-26T05:54:31.347Z] 05:54:31     INFO -  1719381271346	RemoteAgent	TRACE	[28] Wait for initial navigation: isInitial=true, isLoadingDocument=false
[task 2024-06-26T05:54:54.314Z] 05:54:54     INFO -  1719381294314	addons.xpi	ERROR	System addon update list error SyntaxError: XMLHttpRequest.open: 'http://%(server)s/dummy-system-addons.xml' is not a valid URL.
[task 2024-06-26T05:55:51.347Z] 05:55:51     INFO -  1719381351346	RemoteAgent	TRACE	[28] ProgressListener No navigation detected: about:blank
[task 2024-06-26T05:55:51.348Z] 05:55:51     INFO -  1719381351347	RemoteAgent	TRACE	[28] ProgressListener Stop: has error=false url=about:blank
[task 2024-06-26T05:55:51.348Z] 05:55:51     INFO -  1719381351347	Marionette	DEBUG	1 <- [1,125,null,{"handle":"b189fc1d-6e39-4c8a-8b38-7de8f93f244d","type":"tab"}]
[task 2024-06-26T05:55:51.350Z] 05:55:51     INFO -  1719381351349	Marionette	DEBUG	1 -> [0,126,"Marionette:GetContext",{}]
[task 2024-06-26T05:55:51.350Z] 05:55:51     INFO -  1719381351350	Marionette	DEBUG	1 <- [1,126,null,{"value":"content"}]
[task 2024-06-26T05:55:51.351Z] 05:55:51     INFO -  1719381351351	Marionette	DEBUG	1 -> [0,127,"Marionette:SetContext",{"value":"content"}]
[task 2024-06-26T05:55:51.352Z] 05:55:51     INFO -  1719381351351	Marionette	DEBUG	1 <- [1,127,null,{"value":null}]
[task 2024-06-26T05:55:51.353Z] 05:55:51     INFO -  1719381351353	Marionette	DEBUG	1 -> [0,128,"WebDriver:GetWindowHandles",{}]
[task 2024-06-26T05:55:51.354Z] 05:55:51     INFO -  1719381351354	Marionette	DEBUG	1 <- [1,128,null,["65f6c3d2-6df9-44df-b19b-61b056a71f0b","7a69666c-af50-46e2-a5a3-a6f88ddfb334","8bd6cde4-5f71-4fae-8767-1933f278e006","b48cb4ad-1144-4e16-99c0-8008be349bad","c61327e5-7f84-4994-a035-32ace172757d","887b6c28-80d1-4b89-9d02-330a714a4f6c","b189fc1d-6e39-4c8a-8b38-7de8f93f244d"]]
[task 2024-06-26T05:55:51.355Z] 05:55:51     INFO -  1719381351355	Marionette	DEBUG	1 -> [0,129,"Marionette:SetContext",{"value":"content"}]
[task 2024-06-26T05:55:51.356Z] 05:55:51     INFO -  1719381351355	Marionette	DEBUG	1 <- [1,129,null,{"value":null}]
[task 2024-06-26T05:55:51.357Z] 05:55:51     INFO -  1719381351357	Marionette	DEBUG	1 -> [0,130,"Marionette:GetContext",{}]
[task 2024-06-26T05:55:51.357Z] 05:55:51     INFO -  1719381351357	Marionette	DEBUG	1 <- [1,130,null,{"value":"content"}]
[task 2024-06-26T05:55:51.358Z] 05:55:51     INFO -  1719381351358	Marionette	DEBUG	1 -> [0,131,"Marionette:SetContext",{"value":"content"}]
[task 2024-06-26T05:55:51.359Z] 05:55:51     INFO -  1719381351358	Marionette	DEBUG	1 <- [1,131,null,{"value":null}]
[task 2024-06-26T05:55:51.359Z] 05:55:51     INFO -  1719381351359	Marionette	DEBUG	1 -> [0,132,"WebDriver:GetWindowHandles",{}]
[task 2024-06-26T05:55:51.360Z] 05:55:51     INFO -  1719381351360	Marionette	DEBUG	1 <- [1,132,null,["65f6c3d2-6df9-44df-b19b-61b056a71f0b","7a69666c-af50-46e2-a5a3-a6f88ddfb334","8bd6cde4-5f71-4fae-8767-1933f278e006","b48cb4ad-1144-4e16-99c0-8008be349bad","c61327e5-7f84-4994-a035-32ace172757d","887b6c28-80d1-4b89-9d02-330a714a4f6c","b189fc1d-6e39-4c8a-8b38-7de8f93f244d"]]
[task 2024-06-26T05:55:51.361Z] 05:55:51     INFO -  1719381351361	Marionette	DEBUG	1 -> [0,133,"Marionette:SetContext",{"value":"content"}]
[task 2024-06-26T05:55:51.362Z] 05:55:51     INFO -  1719381351361	Marionette	DEBUG	1 <- [1,133,null,{"value":null}]
[task 2024-06-26T05:55:51.363Z] 05:55:51     INFO -  1719381351362	Marionette	DEBUG	1 -> [0,134,"WebDriver:SwitchToWindow",{"handle":"b189fc1d-6e39-4c8a-8b38-7de8f93f244d","focus":true}]
[task 2024-06-26T05:55:51.378Z] 05:55:51     INFO -  1719381351378	RemoteAgent	TRACE	Received DOM event TabSelect for [object XULElement]
[task 2024-06-26T05:55:51.386Z] 05:55:51     INFO -  1719381351385	Marionette	DEBUG	1 <- [1,134,null,{"value":null}]
[task 2024-06-26T05:55:51.393Z] 05:55:51     INFO -  1719381351389	Marionette	DEBUG	1 -> [0,135,"WebDriver:Navigate",{"url":"data:text/html;charset=utf-8,%3Cdiv%22%3Econsectetur%3C/div%3E"}]
[task 2024-06-26T06:00:51.392Z] 06:00:51     INFO -  1719381651392	Marionette	DEBUG	1 <- [1,135,{"error":"timeout","message":"Navigation timed out after 300000 ms","stacktrace":"RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8\nWebDriverError@chrome://remote/content/shared/webdriver/Er ... or@chrome://remote/content/shared/webdriver/Errors.sys.mjs:740:5\nbail@chrome://remote/content/marionette/sync.sys.mjs:211:19\n"},null]
[task 2024-06-26T06:00:51.394Z] 06:00:51     INFO -  1719381651393	Marionette	DEBUG	1 -> [0,136,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-06-26T06:00:51.394Z] 06:00:51     INFO -  1719381651394	Marionette	DEBUG	1 <- [1,136,null,{"value":null}]
[task 2024-06-26T06:00:51.395Z] 06:00:51     INFO -  1719381651395	Marionette	DEBUG	1 -> [0,137,"Marionette:GetContext",{}]
[task 2024-06-26T06:00:51.396Z] 06:00:51     INFO -  1719381651395	Marionette	DEBUG	1 <- [1,137,null,{"value":"chrome"}]
[task 2024-06-26T06:00:51.397Z] 06:00:51     INFO -  1719381651396	Marionette	DEBUG	1 -> [0,138,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-06-26T06:00:51.397Z] 06:00:51     INFO -  1719381651396	Marionette	DEBUG	1 <- [1,138,null,{"value":null}]
[task 2024-06-26T06:00:51.398Z] 06:00:51     INFO -  1719381651397	Marionette	DEBUG	1 -> [0,139,"WebDriver:TakeScreenshot",{"id":null,"full":true,"hash":false,"scroll":true}]
[task 2024-06-26T06:00:51.399Z] 06:00:51     INFO -  1719381651399	Marionette	TRACE	[24] MarionetteCommands actor created for window id 50
[task 2024-06-26T06:00:51.456Z] 06:00:51     INFO -  1719381651455	Marionette	DEBUG	1 <- [1,139,null,{"value":"iVBORw0KGgoAAAANSUhEUgAABQAAAAQQCAYAAAC9RfbYAAAgAElEQVR4XuzdB9wcVb0/4JNGE0hCUUrQABqaBRSv/hEF71VpIlYEEUVRKQooXr1XvSpdFEVQvLQLK ... BAgQIECBAgAABAgQIECBAgEAo4AAMcUUTIECAAAECBAgQIECAAAECBAgQeAs4AN8L6CdAgAABAgQIECBAgAABAgQIECAQCgx4L9rydhNYUgAAAABJRU5ErkJggg=="}]
[task 2024-06-26T06:00:51.458Z] 06:00:51     INFO -  1719381651457	Marionette	DEBUG	1 -> [0,140,"Marionette:SetContext",{"value":"chrome"}]
[task 2024-06-26T06:00:51.458Z] 06:00:51     INFO -  1719381651458	Marionette	DEBUG	1 <- [1,140,null,{"value":null}]
[task 2024-06-26T06:00:51.473Z] 06:00:51     INFO -  1719381651472	Marionette	DEBUG	1 -> [0,141,"Marionette:GetContext",{}]
[task 2024-06-26T06:00:51.473Z] 06:00:51     INFO -  1719381651472	Marionette	DEBUG	1 <- [1,141,null,{"value":"chrome"}]
[task 2024-06-26T06:00:51.473Z] 06:00:51     INFO -  1719381651473	Marionette	DEBUG	1 -> [0,142,"Marionette:SetContext",{"value":"content"}]
[task 2024-06-26T06:00:51.474Z] 06:00:51     INFO -  1719381651473	Marionette	DEBUG	1 <- [1,142,null,{"value":null}]
[task 2024-06-26T06:00:51.474Z] 06:00:51     INFO -  1719381651474	Marionette	DEBUG	1 -> [0,143,"WebDriver:GetPageSource",{}]
[task 2024-06-26T06:06:51.572Z] 06:06:51     INFO -  1719382011572	Marionette	TRACE	[18] MarionetteCommands actor destroyed for window id 38
[task 2024-06-26T06:06:51.572Z] 06:06:51     INFO -  1719382011572	Marionette	TRACE	Retrying "getPageSource", attempt: 1
[task 2024-06-26T06:06:51.573Z] 06:06:51     INFO -  1719382011572	Marionette	DEBUG	1 <- [1,143,{"error":"unknown error","message":"NotFoundError: WindowGlobalParent.getActor: No such JSWindowActor 'MarionetteCommands'","stacktrace":"getMarionetteCommandsActorProxy/get/<@chrome://remote/content/marionette/actors/MarionetteCommandsParent.sys.mjs:357:53\nunreg ... e/content/marionette/transport.sys.mjs:215:18\nonInputStreamReady@chrome://remote/content/marionette/transport.sys.mjs:369:14\n"},null]
[task 2024-06-26T06:06:51.573Z] 06:06:51     INFO -  Marionette threw an error: NotFoundError: WindowGlobalParent.getActor: No such JSWindowActor 'MarionetteCommands'
[task 2024-06-26T06:06:51.574Z] 06:06:51     INFO -  getMarionetteCommandsActorProxy/get/<@chrome://remote/content/marionette/actors/MarionetteCommandsParent.sys.mjs:357:53
[task 2024-06-26T06:06:51.574Z] 06:06:51     INFO -  unregisterCommandsActor@chrome://remote/content/marionette/actors/MarionetteCommandsParent.sys.mjs:435:15
[task 2024-06-26T06:06:51.574Z] 06:06:51     INFO -  GeckoDriver.prototype.deleteSession@chrome://remote/content/marionette/driver.sys.mjs:2439:8
[task 2024-06-26T06:06:51.574Z] 06:06:51     INFO -  onClosed@chrome://remote/content/marionette/server.sys.mjs:219:17
[task 2024-06-26T06:06:51.575Z] 06:06:51     INFO -  close@chrome://remote/content/marionette/transport.sys.mjs:215:18
[task 2024-06-26T06:06:51.575Z] 06:06:51     INFO -  onInputStreamReady@chrome://remote/content/marionette/transport.sys.mjs:369:14
[task 2024-06-26T06:06:51.576Z] 06:06:51     INFO -  console.error: "Marionette threw an error: NotFoundError: WindowGlobalParent.getActor: No such JSWindowActor 'MarionetteCommands'\ngetMarionetteCommandsActorProxy/get/<@chrome://remote/content/marionette/actors/MarionetteCommandsParent.sys.mjs:357:53\nunregisterCommandsActor@chrome://remote/content/marionette/actors/MarionetteCommandsParent.sys.mjs:435:15\nGeckoDriver.prototype.deleteSession@chrome://remote/content/marionette/driver.sys.mjs:2439:8\nonClosed@chrome://remote/content/marionette/server.sys.mjs:219:17\nclose@chrome://remote/content/marionette/transport.sys.mjs:215:18\nonInputStreamReady@chrome://remote/content/marionette/transport.sys.mjs:369:14\n"
[task 2024-06-26T06:06:51.576Z] 06:06:51     INFO -  1719382011573	Marionette	TRACE	[24] MarionetteCommands actor destroyed for window id 50
[task 2024-06-26T06:06:51.576Z] 06:06:51     INFO -  1719382011573	Marionette	TRACE	[14] MarionetteCommands actor destroyed for window id 30
[task 2024-06-26T06:06:51.577Z] 06:06:51     INFO -  1719382011574	Marionette	TRACE	[1] MarionetteCommands actor destroyed for window id 2
[task 2024-06-26T06:06:51.578Z] 06:06:51     INFO -  1719382011577	Marionette	DEBUG	Closed connection 1
[task 2024-06-26T06:10:02.662Z] 06:10:02  WARNING - Failed to gather test failure debug: Please start a session
[task 2024-06-26T06:10:02.693Z] 06:10:02     INFO - TEST-UNEXPECTED-ERROR | browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreDisabled.test_restore_with_restart | marionette_driver.errors.TimeoutException: Navigation timed out after 300000 ms
[task 2024-06-26T06:10:02.693Z] 06:10:02     INFO - stacktrace:
[task 2024-06-26T06:10:02.693Z] 06:10:02     INFO - 	RemoteError@chrome://remote/content/shared/RemoteError.sys.mjs:8:8
[task 2024-06-26T06:10:02.694Z] 06:10:02     INFO - 	WebDriverError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:193:5
[task 2024-06-26T06:10:02.694Z] 06:10:02     INFO - 	TimeoutError@chrome://remote/content/shared/webdriver/Errors.sys.mjs:740:5
[task 2024-06-26T06:10:02.694Z] 06:10:02     INFO - 	bail@chrome://remote/content/marionette/sync.sys.mjs:211:19
[task 2024-06-26T06:10:02.694Z] 06:10:02     INFO - Traceback (most recent call last):
[task 2024-06-26T06:10:02.694Z] 06:10:02     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_harness/marionette_test/testcases.py", line 179, in run
[task 2024-06-26T06:10:02.694Z] 06:10:02     INFO -     self.setUp()
[task 2024-06-26T06:10:02.694Z] 06:10:02     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py", line 90, in setUp
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -     self.open_windows(self.private_windows, is_private=True)
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py", line 139, in open_windows
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -     self.open_tabs(win, urls)
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py", line 162, in open_tabs
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -     self.marionette.navigate(url)
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/marionette.py", line 1709, in navigate
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -     self._send_message("WebDriver:Navigate", {"url": url})
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/decorators.py", line 24, in _
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -     return func(*args, **kwargs)
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/marionette.py", line 776, in _send_message
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -     self._handle_error(err)
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.8/site-packages/marionette_driver/marionette.py", line 788, in _handle_error
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO -     raise errors.lookup(error)(message, stacktrace=stacktrace)
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO - TEST-INFO took 941280ms
[task 2024-06-26T06:10:02.695Z] 06:10:02     INFO - TEST-START | browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreEnabledAllWindows.test_with_variety
```