Bug: Intermittent browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreDisabled.test_restore_with_restart | OSError: Process killed because the connection to Marionette server is lost. Check gecko.log f
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2023-08-10 08:41:54+00:00
Resolved: 2023-12-13 12:01:17+00:00

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

---
```
[task 2023-08-10T08:04:20.905Z] 08:04:20     INFO - TEST-UNEXPECTED-ERROR | browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreDisabled.test_restore_with_restart | OSError: Process killed because the connection to Marionette server is lost. Check gecko.log for errors (Reason: No data received over socket)
[task 2023-08-10T08:04:20.906Z] 08:04:20     INFO - Traceback (most recent call last):
[task 2023-08-10T08:04:20.907Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_harness/marionette_test/testcases.py", line 198, in run
[task 2023-08-10T08:04:20.907Z] 08:04:20     INFO -     testMethod()
[task 2023-08-10T08:04:20.908Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py", line 84, in test_restore_with_restart
[task 2023-08-10T08:04:20.908Z] 08:04:20     INFO -     self.marionette.restart(in_app=True)
[task 2023-08-10T08:04:20.909Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/decorators.py", line 34, in _
[task 2023-08-10T08:04:20.910Z] 08:04:20     INFO -     m._handle_socket_failure()
[task 2023-08-10T08:04:20.911Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 770, in _handle_socket_failure
[task 2023-08-10T08:04:20.912Z] 08:04:20     INFO -     IOError, IOError(message.format(returncode=returncode, reason=exc)), tb
[task 2023-08-10T08:04:20.913Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/six.py", line 702, in reraise
[task 2023-08-10T08:04:20.913Z] 08:04:20     INFO -     raise value.with_traceback(tb)
[task 2023-08-10T08:04:20.914Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/decorators.py", line 24, in _
[task 2023-08-10T08:04:20.915Z] 08:04:20     INFO -     return func(*args, **kwargs)
[task 2023-08-10T08:04:20.916Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 1195, in restart
[task 2023-08-10T08:04:20.916Z] 08:04:20     INFO -     self._send_message("Marionette:AcceptConnections", {"value": True})
[task 2023-08-10T08:04:20.917Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/decorators.py", line 24, in _
[task 2023-08-10T08:04:20.918Z] 08:04:20     INFO -     return func(*args, **kwargs)
[task 2023-08-10T08:04:20.918Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py", line 685, in _send_message
[task 2023-08-10T08:04:20.919Z] 08:04:20     INFO -     msg = self.client.request(name, params)
[task 2023-08-10T08:04:20.920Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/transport.py", line 382, in request
[task 2023-08-10T08:04:20.920Z] 08:04:20     INFO -     return self.receive()
[task 2023-08-10T08:04:20.921Z] 08:04:20     INFO -   File "/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/transport.py", line 229, in receive
[task 2023-08-10T08:04:20.921Z] 08:04:20     INFO -     raise socket.error("No data received over socket")
[task 2023-08-10T08:04:20.922Z] 08:04:20     INFO - TEST-INFO took 274937ms
[task 2023-08-10T08:04:20.925Z] 08:04:20    ERROR - test_end for browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreDisabled.test_restore_with_restart logged while not in progress. Logged with data: {"message": "marionette_driver.errors.InvalidSessionIdException: Please start a session", "expected": "PASS", "stack": "Traceback (most recent call last):\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_harness/marionette_test/testcases.py\", line 231, in run\n    self.tearDown()\n  File \"/builds/worker/workspace/build/tests/marionette/tests/browser/components/sessionstore/test/marionette/session_store_test_case.py\", line 97, in tearDown\n    super(SessionStoreTestCase, self).tearDown()\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_harness/runner/mixins/window_manager.py\", line 22, in tearDown\n    if len(self.marionette.chrome_window_handles) > len(self.start_windows):\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py\", line 1442, in chrome_window_handles\n    with self.using_context(\"chrome\"):\n  File \"/usr/lib/python3.7/contextlib.py\", line 112, in __enter__\n    return next(self.gen)\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py\", line 1511, in using_context\n    scope = self._send_message(\"Marionette:GetContext\", key=\"value\")\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/decorators.py\", line 24, in _\n    return func(*args, **kwargs)\n  File \"/builds/worker/workspace/build/venv/lib/python3.7/site-packages/marionette_driver/marionette.py\", line 682, in _send_message\n    raise errors.InvalidSessionIdException(\"Please start a session\")\n", "extra": {"class_name": "test_restore_windows_after_restart_and_quit.TestSessionStoreDisabled", "method_name": "test_restore_with_restart"}, "test": "browser/components/sessionstore/test/marionette/test_restore_windows_after_restart_and_quit.py TestSessionStoreDisabled.test_restore_with_restart", "status": "ERROR"}

```