Bug: Intermittent sessionrestore | expected string or bytes-like object
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2023-03-11 04:51:53+00:00
Resolved: 2023-03-14 21:30:53+00:00

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

---
```
[task 2023-03-11T04:01:46.273Z] 04:01:46     INFO -  TEST-INFO | started process 3992 (C:\Users\task_1678504601\build\application\firefox\firefox -wait-for-browser -no-deelevate -profile C:\Users\task_1678504601\AppData\Local\Temp\tmpmyoywjb8\profile about:home)
[task 2023-03-11T04:01:46.695Z] 04:01:46     INFO -  PID 3992 | console.error: (new Error("Unexpected content-type \"text/plain;charset=US-ASCII\"", "resource://services-settings/Utils.jsm", 407))
[task 2023-03-11T04:01:46.947Z] 04:01:46     INFO -  PID 3992 | console.error: (new Error("Unexpected content-type \"text/plain;charset=US-ASCII\"", "resource://services-settings/Utils.jsm", 407))
[task 2023-03-11T04:01:46.965Z] 04:01:46     INFO -  PID 3992 | console.error: (new Error("Unexpected content-type \"text/plain;charset=US-ASCII\"", "resource://services-settings/Utils.jsm", 407))
[task 2023-03-11T04:01:46.974Z] 04:01:46     INFO -  PID 3992 | console.error: (new Error("Unexpected content-type \"text/plain;charset=US-ASCII\"", "resource://services-settings/Utils.jsm", 407))
[task 2023-03-11T04:01:47.067Z] 04:01:47     INFO -  PID 3992 | [ERROR glean_core] Error setting metrics feature config: Json(Error("EOF while parsing a value", line: 1, column: 0))
[task 2023-03-11T04:01:47.177Z] 04:01:47     INFO -  PID 3992 | console.error: (new Error("Unexpected content-type \"text/plain;charset=US-ASCII\"", "resource://services-settings/Utils.jsm", 407))
[task 2023-03-11T04:01:47.177Z] 04:01:47     INFO -  PID 3992 | console.error: (new Error("Unexpected content-type \"text/plain;charset=US-ASCII\"", "resource://services-settings/Utils.jsm", 407))
[task 2023-03-11T04:01:47.178Z] 04:01:47     INFO -  PID 3992 | console.error: (new Error("Unexpected content-type \"text/plain;charset=US-ASCII\"", "resource://services-settings/Utils.jsm", 407))
[task 2023-03-11T04:06:16.463Z] 04:06:16     INFO -  PID 3992 | console.error: (new Error("Polling for changes failed: Unexpected content-type \"text/plain;charset=US-ASCII\".", "resource://services-settings/remote-settings.sys.mjs", 325))
[task 2023-03-11T04:08:17.473Z] 04:08:17     INFO -  PID 3992 | 1678507697472	addons.xpi	ERROR	System addon update list error Error: Failed downloading XML, status: 0, reason: error
[task 2023-03-11T04:16:46.496Z] 04:16:46     INFO -  Timeout waiting for test completion; killing browser...
[task 2023-03-11T04:16:46.501Z] 04:16:46     INFO -  mozcrash Writing a dump to C:\Users\task_1678504601\AppData\Local\Temp\tmpmyoywjb8\profile\minidumps\2c416d48-b240-4d73-bcac-32181a3b9e1c.dmp for [6972]
[task 2023-03-11T04:16:46.653Z] 04:16:46     INFO -  PID 3992 | Exiting due to channel error.
[task 2023-03-11T04:16:46.686Z] 04:16:46     INFO -  mozcrash checking C:\Users\task_1678504601\AppData\Local\Temp\tmpmyoywjb8\profile\minidumps for minidumps...
[task 2023-03-11T04:16:46.686Z] 04:16:46     INFO -  mozcrash Downloading symbols from: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/SOapn0cuRvqz6dp3Yf_lpA/artifacts/public/build/target.crashreporter-symbols.zip
[task 2023-03-11T04:16:55.604Z] 04:16:55     INFO -  mozcrash Copy/paste: C:/Users/task_1678504601/fetches\minidump-stackwalk\minidump-stackwalk.exe --symbols-url=https://symbols.mozilla.org/ --cyborg=C:\Users\task_1678504601\AppData\Local\Temp\tmpsqaew4cu\2c416d48-b240-4d73-bcac-32181a3b9e1c.trace C:\Users\task_1678504601\AppData\Local\Temp\tmpmyoywjb8\profile\minidumps\2c416d48-b240-4d73-bcac-32181a3b9e1c.dmp C:\Users\task_1678504601\AppData\Local\Temp\tmpuqa6rl8n
[task 2023-03-11T04:17:01.181Z] 04:17:01     INFO -  TEST-UNEXPECTED-ERROR | sessionrestore | expected string or bytes-like object
[task 2023-03-11T04:17:01.181Z] 04:17:01    ERROR -  Traceback (most recent call last):
[task 2023-03-11T04:17:01.182Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\tests\talos\talos\ttest.py", line 193, in _runTest
[task 2023-03-11T04:17:01.182Z] 04:17:01     INFO -      pcontext = run_browser(
[task 2023-03-11T04:17:01.182Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\tests\talos\talos\talos_process.py", line 173, in run_browser
[task 2023-03-11T04:17:01.183Z] 04:17:01     INFO -      raise TalosError("timeout")
[task 2023-03-11T04:17:01.183Z] 04:17:01     INFO -  talos.utils.TalosError: timeout
[task 2023-03-11T04:17:01.183Z] 04:17:01     INFO -  During handling of the above exception, another exception occurred:
[task 2023-03-11T04:17:01.184Z] 04:17:01    ERROR -  Traceback (most recent call last):
[task 2023-03-11T04:17:01.184Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\tests\talos\talos\run_tests.py", line 360, in run_tests
[task 2023-03-11T04:17:01.184Z] 04:17:01     INFO -      talos_results.add(mytest.runTest(browser_config, test))
[task 2023-03-11T04:17:01.184Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\tests\talos\talos\ttest.py", line 60, in runTest
[task 2023-03-11T04:17:01.185Z] 04:17:01     INFO -      return self._runTest(browser_config, test_config, setup)
[task 2023-03-11T04:17:01.185Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\tests\talos\talos\ttest.py", line 207, in _runTest
[task 2023-03-11T04:17:01.185Z] 04:17:01     INFO -      self.check_for_crashes(
[task 2023-03-11T04:17:01.186Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\tests\talos\talos\ttest.py", line 38, in check_for_crashes
[task 2023-03-11T04:17:01.186Z] 04:17:01     INFO -      found = mozcrash.check_for_crashes(
[task 2023-03-11T04:17:01.186Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\venv\lib\site-packages\mozcrash\mozcrash.py", line 115, in check_for_crashes
[task 2023-03-11T04:17:01.186Z] 04:17:01     INFO -      for info in crash_info:
[task 2023-03-11T04:17:01.187Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\venv\lib\site-packages\mozcrash\mozcrash.py", line 326, in __iter__
[task 2023-03-11T04:17:01.187Z] 04:17:01     INFO -      rv = self._process_dump_file(path, extra)
[task 2023-03-11T04:17:01.187Z] 04:17:01     INFO -    File "C:\Users\task_1678504601\build\venv\lib\site-packages\mozcrash\mozcrash.py", line 401, in _process_dump_file
[task 2023-03-11T04:17:01.188Z] 04:17:01     INFO -      pmatch = re.search(r"(.*)\(.*\)", signature)
[task 2023-03-11T04:17:01.188Z] 04:17:01     INFO -    File "c:\mozilla-build\python3\lib\re.py", line 201, in search
[task 2023-03-11T04:17:01.188Z] 04:17:01     INFO -      return _compile(pattern, flags).search(string)
[task 2023-03-11T04:17:01.188Z] 04:17:01    ERROR -  TypeError: expected string or bytes-like object
[task 2023-03-11T04:17:01.188Z] 04:17:01     INFO -  TEST-INFO took 1008009ms
[task 2023-03-11T04:17:01.189Z] 04:17:01     INFO -  SUITE-END | took 1412s
```