Bug: Intermittent browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreDisabled.test_restore_with_restart | marionette_driver.errors.InvalidSessionIdException: Please start a session
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-01-31 18:45:15+00:00
Resolved: 2023-03-14 17:01:46+00:00

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

---
```
[task 2023-01-31T17:32:56.496Z] 17:32:56     INFO -  DEBUG: Adding blocker EnvironmentAddonBuilder for phase AddonManager: Waiting to start provider shutdown.
[task 2023-01-31T17:32:56.507Z] 17:32:56     INFO -  DEBUG: Adding blocker RemoteSettingsClient - finish IDB access. for phase profile-before-change
[task 2023-01-31T17:32:56.510Z] 17:32:56     INFO -  DEBUG: Adding blocker TerminatoryTelemetry: Waiting to submit telemetry for phase IOUtils: waiting for sendTelemetry IO to complete
[task 2023-01-31T17:32:56.512Z] 17:32:56     INFO -  1675186376512	Marionette	INFO	Marionette enabled
[task 2023-01-31T17:32:56.514Z] 17:32:56     INFO -  1675186376514	Marionette	TRACE	Received observer notification final-ui-startup
[task 2023-01-31T17:32:56.516Z] 17:32:56     INFO -  1675186376516	Marionette	INFO	Listening on port 2828
[task 2023-01-31T17:32:56.516Z] 17:32:56     INFO -  1675186376516	Marionette	DEBUG	Marionette is listening
[task 2023-01-31T17:36:08.333Z] 17:36:08    ERROR -  TEST-UNEXPECTED-ERROR | browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreDisabled.test_restore_with_restart | marionette_driver.errors.InvalidSessionIdException: Please start a session
[task 2023-01-31T17:36:08.338Z] 17:36:08     INFO -  Traceback (most recent call last):
[task 2023-01-31T17:36:08.338Z] 17:36:08     INFO -    File "Z:\task_167518444147675\build\venv\lib\site-packages\marionette_harness\marionette_test\testcases.py", line 231, in run
[task 2023-01-31T17:36:08.338Z] 17:36:08     INFO -      self.tearDown()
[task 2023-01-31T17:36:08.339Z] 17:36:08     INFO -    File "Z:\task_167518444147675\build\tests\marionette\tests\browser\components\sessionstore\test\marionette\session_store_test_case.py", line 92, in tearDown
[task 2023-01-31T17:36:08.339Z] 17:36:08     INFO -      super(SessionStoreTestCase, self).tearDown()
[task 2023-01-31T17:36:08.339Z] 17:36:08     INFO -    File "Z:\task_167518444147675\build\venv\lib\site-packages\marionette_harness\runner\mixins\window_manager.py", line 22, in tearDown
[task 2023-01-31T17:36:08.339Z] 17:36:08     INFO -      if len(self.marionette.chrome_window_handles) > len(self.start_windows):
[task 2023-01-31T17:36:08.340Z] 17:36:08     INFO -    File "Z:\task_167518444147675\build\venv\lib\site-packages\marionette_driver\marionette.py", line 1413, in chrome_window_handles
[task 2023-01-31T17:36:08.340Z] 17:36:08     INFO -      with self.using_context("chrome"):
[task 2023-01-31T17:36:08.341Z] 17:36:08     INFO -    File "c:\mozilla-build\python3\lib\contextlib.py", line 117, in __enter__
[task 2023-01-31T17:36:08.341Z] 17:36:08     INFO -      return next(self.gen)
[task 2023-01-31T17:36:08.341Z] 17:36:08     INFO -    File "Z:\task_167518444147675\build\venv\lib\site-packages\marionette_driver\marionette.py", line 1482, in using_context
[task 2023-01-31T17:36:08.341Z] 17:36:08     INFO -      scope = self._send_message("Marionette:GetContext", key="value")
[task 2023-01-31T17:36:08.342Z] 17:36:08     INFO -    File "Z:\task_167518444147675\build\venv\lib\site-packages\marionette_driver\decorators.py", line 24, in _
[task 2023-01-31T17:36:08.342Z] 17:36:08     INFO -      return func(*args, **kwargs)
[task 2023-01-31T17:36:08.342Z] 17:36:08     INFO -    File "Z:\task_167518444147675\build\venv\lib\site-packages\marionette_driver\marionette.py", line 653, in _send_message
[task 2023-01-31T17:36:08.342Z] 17:36:08     INFO -      raise errors.InvalidSessionIdException("Please start a session")
[task 2023-01-31T17:36:08.342Z] 17:36:08     INFO -  TEST-INFO took 199216ms
[task 2023-01-31T17:36:08.343Z] 17:36:08     INFO -  TEST-START | browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreEnabledAllWindows.test_with_variety
```