Intermittent UnicodeEncodeError: 'charmap' codec can't encode character '\u0645' in position 522279: character maps to <undefined>
Categories
(Testing :: Marionette Client and Harness, defect, P5)
Tracking
(Not tracked)
People
(Reporter: intermittent-bug-filer, Unassigned)
References
Details
(Keywords: intermittent-failure)
Filed by: archaeopteryx [at] coole-files.de
Parsed log: https://treeherder.mozilla.org/logviewer?job_id=336801877&repo=try
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/BiOjJW0yRUWVeKhVxCmz5g/runs/0/artifacts/public/logs/live_backing.log
There are early unicode encoding errors but let's look at the last one:
[task 2021-04-16T19:39:21.639Z] 19:39:21 INFO - TEST-PASS | dom/workers/test/marionette/test_service_workers_at_startup.py ServiceWorkerAtStartupTestCase.test_registered_service_worker_after_restart | took 11555ms
[task 2021-04-16T19:39:21.639Z] 19:39:21 INFO - 1618601961639 Marionette DEBUG Closed connection 2
[task 2021-04-16T19:39:21.639Z] 19:39:21 INFO - SUMMARY
[task 2021-04-16T19:39:21.640Z] 19:39:21 INFO - -------
[task 2021-04-16T19:39:21.640Z] 19:39:21 INFO - passed: 912
[task 2021-04-16T19:39:21.640Z] 19:39:21 INFO - failed: 1
[task 2021-04-16T19:39:21.640Z] 19:39:21 INFO - todo: 27 (skipped: 24)
[task 2021-04-16T19:39:21.640Z] 19:39:21 INFO - FAILED TESTS
[task 2021-04-16T19:39:21.640Z] 19:39:21 INFO - -------
[task 2021-04-16T19:39:21.641Z] 19:39:21 INFO - test_accessiblecaret_selection_mode.py test_accessiblecaret_selection_mode.AccessibleCaretSelectionModeTestCase.test_minimum_select_one_character_textarea_rtl
[task 2021-04-16T19:39:21.813Z] 19:39:21 INFO - mozlog.structuredlog: Failure calling log handler:
[task 2021-04-16T19:39:21.813Z] 19:39:21 INFO - Traceback (most recent call last):
[task 2021-04-16T19:39:21.814Z] 19:39:21 INFO - File "C:\Users\task_1618599672\build\venv\lib\site-packages\mozlog\structuredlog.py", line 294, in _handle_log
[task 2021-04-16T19:39:21.814Z] 19:39:21 INFO - handler(data)
[task 2021-04-16T19:39:21.814Z] 19:39:21 INFO - File "C:\Users\task_1618599672\build\venv\lib\site-packages\mozlog\handlers\base.py", line 90, in __call__
[task 2021-04-16T19:39:21.815Z] 19:39:21 INFO - self.stream.write(formatted)
[task 2021-04-16T19:39:21.815Z] 19:39:21 INFO - File "c:\mozilla-build\python3\lib\encodings\cp1252.py", line 19, in encode
[task 2021-04-16T19:39:21.815Z] 19:39:21 INFO - return codecs.charmap_encode(input,self.errors,encoding_table)[0]
[task 2021-04-16T19:39:21.815Z] 19:39:21 INFO - UnicodeEncodeError: 'charmap' codec can't encode character '\u0645' in position 522279: character maps to <undefined>
[task 2021-04-16T19:39:21.816Z] 19:39:21 INFO - SUITE-END | took 905s
Is there more recent Python 3 work affecting Marionette than bug 1695263?
| Comment hidden (Intermittent Failures Robot) |
Comment 2•5 years ago
|
||
James, any idea where this could come from? It looks more like a mozlog issue.
Comment 3•5 years ago
|
||
It looks like we're trying to encode the character in the Windows-1252 character set and that's failing. So the question is why something is trying to use that rather than UTF-8. It's possible that the output stream is being opened in a mode that defaults to windows-1252 encoding on Windows, or something, but I'm not sure without looking more.
| Comment hidden (Intermittent Failures Robot) |
Comment 5•5 years ago
|
||
https://wiki.mozilla.org/Bug_Triage#Intermittent_Test_Failure_Cleanup
For more information, please visit auto_nag documentation.
Updated•5 years ago
|
Updated•3 years ago
|
Comment 7•3 years ago
|
||
Description
•