Bug: Intermittent tabswitch | expected string or bytes-like object
Status: RESOLVED
Priority: P5
Resolution: DUPLICATE
Created: 2023-03-13 13:33:18+00:00
Resolved: 2023-03-14 21:30:48+00:00

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

---
```
[task 2023-03-13T13:29:17.526Z] 13:29:17     INFO -  Timeout waiting for test completion; killing browser...
[task 2023-03-13T13:29:17.532Z] 13:29:17     INFO -  mozcrash Writing a dump to C:\Users\task_1678712382\AppData\Local\Temp\tmpp1a5py_4\profile\minidumps\38837fde-ed58-4716-9ee7-7a0aae010518.dmp for [5340]
[task 2023-03-13T13:29:17.686Z] 13:29:17     INFO -  PID 6208 | Exiting due to channel error.
[task 2023-03-13T13:29:17.734Z] 13:29:17     INFO -  mozcrash checking C:\Users\task_1678712382\AppData\Local\Temp\tmpp1a5py_4\profile\minidumps for minidumps...
[task 2023-03-13T13:29:17.735Z] 13:29:17     INFO -  mozcrash Downloading symbols from: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/L0gApIw5SBWNImhWQjwDlQ/artifacts/public/build/target.crashreporter-symbols.zip
[task 2023-03-13T13:29:26.917Z] 13:29:26     INFO -  mozcrash Copy/paste: C:/Users/task_1678712382/fetches\minidump-stackwalk\minidump-stackwalk.exe --symbols-url=https://symbols.mozilla.org/ --cyborg=C:\Users\task_1678712382\AppData\Local\Temp\tmp1_jyu3dc\38837fde-ed58-4716-9ee7-7a0aae010518.trace C:\Users\task_1678712382\AppData\Local\Temp\tmpp1a5py_4\profile\minidumps\38837fde-ed58-4716-9ee7-7a0aae010518.dmp C:\Users\task_1678712382\AppData\Local\Temp\tmp7poztz_n
[task 2023-03-13T13:29:33.733Z] 13:29:33     INFO -  TEST-UNEXPECTED-ERROR | tabswitch | expected string or bytes-like object
[task 2023-03-13T13:29:33.733Z] 13:29:33    ERROR -  Traceback (most recent call last):
[task 2023-03-13T13:29:33.734Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\tests\talos\talos\ttest.py", line 193, in _runTest
[task 2023-03-13T13:29:33.734Z] 13:29:33     INFO -      pcontext = run_browser(
[task 2023-03-13T13:29:33.734Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\tests\talos\talos\talos_process.py", line 173, in run_browser
[task 2023-03-13T13:29:33.735Z] 13:29:33     INFO -      raise TalosError("timeout")
[task 2023-03-13T13:29:33.735Z] 13:29:33     INFO -  talos.utils.TalosError: timeout
[task 2023-03-13T13:29:33.735Z] 13:29:33     INFO -  During handling of the above exception, another exception occurred:
[task 2023-03-13T13:29:33.735Z] 13:29:33    ERROR -  Traceback (most recent call last):
[task 2023-03-13T13:29:33.736Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\tests\talos\talos\run_tests.py", line 360, in run_tests
[task 2023-03-13T13:29:33.736Z] 13:29:33     INFO -      talos_results.add(mytest.runTest(browser_config, test))
[task 2023-03-13T13:29:33.737Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\tests\talos\talos\ttest.py", line 60, in runTest
[task 2023-03-13T13:29:33.737Z] 13:29:33     INFO -      return self._runTest(browser_config, test_config, setup)
[task 2023-03-13T13:29:33.737Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\tests\talos\talos\ttest.py", line 207, in _runTest
[task 2023-03-13T13:29:33.737Z] 13:29:33     INFO -      self.check_for_crashes(
[task 2023-03-13T13:29:33.738Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\tests\talos\talos\ttest.py", line 38, in check_for_crashes
[task 2023-03-13T13:29:33.738Z] 13:29:33     INFO -      found = mozcrash.check_for_crashes(
[task 2023-03-13T13:29:33.738Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\venv\lib\site-packages\mozcrash\mozcrash.py", line 115, in check_for_crashes
[task 2023-03-13T13:29:33.739Z] 13:29:33     INFO -      for info in crash_info:
[task 2023-03-13T13:29:33.739Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\venv\lib\site-packages\mozcrash\mozcrash.py", line 326, in __iter__
[task 2023-03-13T13:29:33.739Z] 13:29:33     INFO -      rv = self._process_dump_file(path, extra)
[task 2023-03-13T13:29:33.740Z] 13:29:33     INFO -    File "C:\Users\task_1678712382\build\venv\lib\site-packages\mozcrash\mozcrash.py", line 401, in _process_dump_file
[task 2023-03-13T13:29:33.740Z] 13:29:33     INFO -      pmatch = re.search(r"(.*)\(.*\)", signature)
[task 2023-03-13T13:29:33.740Z] 13:29:33     INFO -    File "c:\mozilla-build\python3\lib\re.py", line 201, in search
[task 2023-03-13T13:29:33.740Z] 13:29:33     INFO -      return _compile(pattern, flags).search(string)
[task 2023-03-13T13:29:33.741Z] 13:29:33    ERROR -  TypeError: expected string or bytes-like object
[task 2023-03-13T13:29:33.741Z] 13:29:33     INFO -  TEST-INFO took 920521ms
[task 2023-03-13T13:29:33.741Z] 13:29:33     INFO -  SUITE-END | took 920s
[task 2023-03-13T13:29:33.796Z] 13:29:33     INFO - Return code: 2
[task 2023-03-13T13:29:33.796Z] 13:29:33  WARNING - setting return code to 2
[task 2023-03-13T13:29:33.796Z] 13:29:33     INFO - Running post-action listener: _package_coverage_data
[task 2023-03-13T13:29:33.796Z] 13:29:33     INFO - Running post-action listener: _resource_record_post_action
[task 2023-03-13T13:29:33.796Z] 13:29:33     INFO - Running post-action listener: process_java_coverage_data
[task 2023-03-13T13:29:33.797Z] 13:29:33     INFO - [mozharness: 2023-03-13 13:29:33.796115Z] Finished run-tests step (success)
[task 2023-03-13T13:29:33.797Z] 13:29:33     INFO - Running post-run listener: _resource_record_post_run
[task 2023-03-13T13:29:33.921Z] 13:29:33     INFO - Total resource usage - Wall time: 926s; CPU: 3%; Read bytes: 441016320; Write bytes: 2275538432; Read time: 15; Write time: 20
[task 2023-03-13T13:29:33.921Z] 13:29:33     INFO - TinderboxPrint: CPU usage<br/>2.9%
[task 2023-03-13T13:29:33.921Z] 13:29:33     INFO - TinderboxPrint: I/O read bytes / time<br/>441,016,320 / 15
[task 2023-03-13T13:29:33.921Z] 13:29:33     INFO - TinderboxPrint: I/O write bytes / time<br/>2,275,538,432 / 20
[task 2023-03-13T13:29:33.921Z] 13:29:33     INFO - TinderboxPrint: CPU idle<br/>7,195.8 (97.1%)
[task 2023-03-13T13:29:33.921Z] 13:29:33     INFO - TinderboxPrint: CPU system<br/>91.8 (1.2%)
[task 2023-03-13T13:29:33.922Z] 13:29:33     INFO - TinderboxPrint: CPU user<br/>122.4 (1.7%)
[task 2023-03-13T13:29:33.922Z] 13:29:33     INFO - install - Wall time: 2s; CPU: 14%; Read bytes: 181760; Write bytes: 17203200; Read time: 0; Write time: 0
[task 2023-03-13T13:29:33.929Z] 13:29:33     INFO - run-tests - Wall time: 924s; CPU: 3%; Read bytes: 440666624; Write bytes: 2258335232; Read time: 15; Write time: 20
[task 2023-03-13T13:29:34.111Z] 13:29:34  WARNING - returning nonzero exit status 2
[taskcluster 2023-03-13T13:29:34.157Z]    Exit Code: 2
[taskcluster 2023-03-13T13:29:34.157Z]    User Time: 0s
[taskcluster 2023-03-13T13:29:34.157Z]  Kernel Time: 15.625ms
[taskcluster 2023-03-13T13:29:34.157Z]    Wall Time: 17m10.9908592s
[taskcluster 2023-03-13T13:29:34.157Z]       Result: FAILED
[taskcluster 2023-03-13T13:29:34.157Z] === Task Finished ===
[taskcluster 2023-03-13T13:29:34.157Z] Task Duration: 17m10.9908592s
[taskcluster 2023-03-13T13:29:34.213Z] Uploading artifact public/logs/localconfig.json from file logs\localconfig.json with content encoding "gzip", mime type "application/octet-stream" and expiry 2024-03-12T13:12:15.423Z
[taskcluster 2023-03-13T13:29:34.410Z] Uploading artifact public/test_info/resource-usage.json from file build\blobber_upload_dir\resource-usage.json with content encoding "gzip", mime type "application/octet-stream" and expiry 2024-03-12T13:12:15.423Z
[taskcluster 2023-03-13T13:29:34.581Z] Uploading artifact public/test_info/tabswitch_errorsummary.log from file build\blobber_upload_dir\tabswitch_errorsummary.log with content encoding "gzip", mime type "text/plain" and expiry 2024-03-12T13:12:15.423Z
[taskcluster 2023-03-13T13:29:34.667Z] Uploading artifact public/test_info/tabswitch_raw.log from file build\blobber_upload_dir\tabswitch_raw.log with content encoding "gzip", mime type "text/plain" and expiry 2024-03-12T13:12:15.423Z
[taskcluster 2023-03-13T13:29:34.767Z] Uploading redirect artifact public/logs/live.log to URL https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/F7luaUx5R3-tFjxLzF46TQ/runs/0/artifacts/public/logs/live_backing.log with mime type "text/plain; charset=utf-8" and expiry 2024-03-12T13:12:15.423Z
[taskcluster:error] exit status 2
```