Closed Bug 1731018 Opened 5 years ago Closed 4 years ago

Intermittent testing/marionette/harness/marionette_harness/tests/unit/test_quit_restart.py TestQuitRestart.test_in_app_restart_safe_mode | OSError: Process has been unexpectedly closed (Exit code: 0) (Reason: Process unexpectedly quit without restarting (

Categories

(Testing :: Marionette Client and Harness, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: intermittent-bug-filer, Unassigned)

Details

(Keywords: intermittent-failure)

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


 INFO -  TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_profile_management.py TestSwitchProfileWithoutWorkspace.test_new_named_profile_unicode
[task 2021-09-16T05:26:20.095Z] 05:26:20     INFO -  1631769980095	Marionette	DEBUG	Accepted connection 3 from 127.0.0.1:52818
[task 2021-09-16T05:26:20.123Z] 05:26:20     INFO -  1631769980125	Marionette	DEBUG	3 -> [0,1,"WebDriver:NewSession",{"strictFileInteractability":true}]
[task 2021-09-16T05:26:20.127Z] 05:26:20     INFO -  1631769980127	Marionette	DEBUG	3 <- [1,1,null,{"sessionId":"dacd59ad-b541-41d8-8c78-53a89d2c3611","capabilities":{"browserName":"firefox","browserVersion":"94.0a ... e.mozrunner","moz:shutdownTimeout":60000,"moz:useNonSpecCompliantPointerOrigin":false,"moz:webdriverClick":true,"proxy":{}}}]
[task 2021-09-16T05:26:20.128Z] 05:26:20     INFO -  1631769980128	Marionette	DEBUG	3 -> [0,2,"WebDriver:SetTimeouts",{"script":30000}]
[task 2021-09-16T05:26:20.129Z] 05:26:20     INFO -  1631769980129	Marionette	DEBUG	3 <- [1,2,null,{"value":null}]
[task 2021-09-16T05:26:20.129Z] 05:26:20     INFO -  1631769980130	Marionette	DEBUG	3 -> [0,3,"WebDriver:SetTimeouts",{"pageLoad":300000}]
[task 2021-09-16T05:26:20.130Z] 05:26:20     INFO -  1631769980130	Marionette	DEBUG	3 <- [1,3,null,{"value":null}]
[task 2021-09-16T05:26:20.130Z] 05:26:20     INFO -  1631769980131	Marionette	DEBUG	3 -> [0,4,"WebDriver:SetTimeouts",{"implicit":0}]
[task 2021-09-16T05:26:20.131Z] 05:26:20     INFO -  1631769980131	Marionette	DEBUG	3 <- [1,4,null,{"value":null}]
[task 2021-09-16T05:26:20.231Z] 05:26:20     INFO -  mozlog.structuredlog: Failure calling log handler:
[task 2021-09-16T05:26:20.240Z] 05:26:20     INFO -  Traceback (most recent call last):
[task 2021-09-16T05:26:20.255Z] 05:26:20     INFO -    File "Z:\task_163176904785490\build\venv\lib\site-packages\mozlog\structuredlog.py", line 294, in _handle_log
[task 2021-09-16T05:26:20.255Z] 05:26:20     INFO -      handler(data)
[task 2021-09-16T05:26:20.256Z] 05:26:20     INFO -    File "Z:\task_163176904785490\build\venv\lib\site-packages\mozlog\handlers\base.py", line 90, in __call__
[task 2021-09-16T05:26:20.256Z] 05:26:20     INFO -      self.stream.write(formatted)
[task 2021-09-16T05:26:20.256Z] 05:26:20     INFO -    File "c:\mozilla-build\python3\lib\encodings\cp1252.py", line 19, in encode
[task 2021-09-16T05:26:20.256Z] 05:26:20     INFO -      return codecs.charmap_encode(input,self.errors,encoding_table)[0]
[task 2021-09-16T05:26:20.257Z] 05:26:20     INFO -  UnicodeEncodeError: 'charmap' codec can't encode character '\U0001f36a' in position 198: character maps to <undefined>
[task 2021-09-16T05:26:20.416Z] 05:26:20     INFO -  DEBUG: Adding blocker OS.File: flush pending requests, warn about unclosed files, shut down service. for phase xpcom-will-shutdown
[task 2021-09-16T05:26:20.423Z] 05:26:20     INFO -  DEBUG: Adding blocker OS.File: flush I/O queued before profileBeforeChange for phase profile-before-change
[task 2021-09-16T05:26:20.423Z] 05:26:20     INFO -  DEBUG: Adding blocker AddonManager: shutting down. for phase profile-before-change
[task 2021-09-16T05:26:20.436Z] 05:26:20     INFO -  DEBUG: Adding blocker IOUtils Blocker (profile-before-change) for phase profile-before-change
[task 2021-09-16T05:26:20.441Z] 05:26:20     INFO -  DEBUG: Adding blocker IOUtils Blocker (xpcom-will-shutdown) for phase xpcom-will-shutdown
[task 2021-09-16T05:26:20.470Z] 05:26:20     INFO -  DEBUG: Adding blocker Flush WebExtension StartupCache for phase IOUtils: waiting for profileBeforeChange IO to complete
[task 2021-09-16T05:26:20.519Z] 05:26:20     INFO -  DEBUG: Adding blocker ClientManagerService: start destroying IPC actors early for phase xpcom-will-shutdown
[task 2021-09-16T05:26:20.577Z] 05:26:20     INFO -  DEBUG: Adding blocker JSON store: writing data for phase AddonManager: Waiting for providers to shut down.
[task 2021-09-16T05:26:20.594Z] 05:26:20     INFO -  DEBUG: Adding blocker Update add-on blocklist state into add-on DB for phase AddonManager: Waiting to start provider shutdown.
[task 2021-09-16T05:26:20.594Z] 05:26:20     INFO -  DEBUG: Completed blocker Update add-on blocklist state into add-on DB for phase AddonManager: Waiting to start provider shutdown.
[task 2021-09-16T05:26:20.600Z] 05:26:20     INFO -  DEBUG: Adding blocker XPIProvider shutdown for phase quit-application-granted
[task 2021-09-16T05:26:20.601Z] 05:26:20     INFO -  DEBUG: Adding blocker XPIProvider for phase AddonManager: Waiting for providers to shut down.
[task 2021-09-16T05:26:20.602Z] 05:26:20     INFO -  DEBUG: Adding blocker ServiceWorkerRegistrar: Flushing data for phase profile-before-change
[task 2021-09-16T05:26:20.603Z] 05:26:20     INFO -  DEBUG: Adding blocker CrashMonitor: Writing notifications to file after receiving profile-before-change for phase IOUtils: waiting for profileBeforeChange IO to complete
[task 2021-09-16T05:26:20.616Z] 05:26:20     INFO -  DEBUG: Adding blocker TelemetryController: shutting down for phase profile-before-change-telemetry
[task 2021-09-16T05:26:20.647Z] 05:26:20     INFO -  DEBUG: Adding blocker EnvironmentAddonBuilder for phase AddonManager: Waiting to start provider shutdown.
[task 2021-09-16T05:26:20.661Z] 05:26:20     INFO -  DEBUG: Adding blocker RemoteSettingsClient - finish IDB access. for phase profile-before-change

There is an around 3 minutes delay when starting the the test and Firefox due to an IO completion port issue:

https://treeherder.mozilla.org/logviewer?job_id=351697399&repo=autoland&lineNumber=32115-32121

[task 2021-09-16T05:27:27.750Z] 05:27:27     INFO -  TEST-PASS | testing/marionette/harness/marionette_harness/tests/unit/test_quit_restart.py TestQuitRestart.test_in_app_restart_component_prevents_shutdown | took 2574ms
[task 2021-09-16T05:27:27.753Z] 05:27:27     INFO -  TEST-START | testing/marionette/harness/marionette_harness/tests/unit/test_quit_restart.py TestQuitRestart.test_in_app_restart_safe_mode
[task 2021-09-16T05:30:39.304Z] 05:30:39     INFO -  WARNING | IO Completion Port failed to signal process shutdown
[task 2021-09-16T05:30:39.306Z] 05:30:39     INFO -  Parent process 6912 exited with children alive:
[task 2021-09-16T05:30:39.306Z] 05:30:39     INFO -  PIDS: 7000, 4812, 4528, 4184, 1020
[task 2021-09-16T05:30:39.306Z] 05:30:39     INFO -  Attempting to kill them, but no guarantee of success

Let observe before doing more analysis.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → INCOMPLETE
Status: RESOLVED → REOPENED
Resolution: INCOMPLETE → ---
Status: REOPENED → RESOLVED
Closed: 5 years ago → 4 years ago
Resolution: --- → INCOMPLETE
Product: Testing → Remote Protocol
Moving bug to Testing::Marionette Client and Harness component per bug 1815831.
Component: Marionette → Marionette Client and Harness
Product: Remote Protocol → Testing
You need to log in before you can comment on or make changes to this bug.