Closed Bug 1628621 Opened 5 years ago Closed 4 years ago

Perma win x64 UnicodeEncodeError: 'charmap' codec can't encode characters in position 45-47: character maps to <undefined>

Categories

(Firefox Build System :: General, defect, P5)

defect

Tracking

(firefox-esr68 unaffected, firefox74 unaffected, firefox75 unaffected, firefox76 unaffected, firefox77 fixed)

RESOLVED FIXED
mozilla77
Tracking Status
firefox-esr68 --- unaffected
firefox74 --- unaffected
firefox75 --- unaffected
firefox76 --- unaffected
firefox77 --- fixed

People

(Reporter: intermittent-bug-filer, Assigned: rstewart)

References

(Regression)

Details

(Keywords: intermittent-failure, regression)

Attachments

(1 file)

Filed by: archaeopteryx [at] coole-files.de
Parsed log: https://treeherder.mozilla.org/logviewer.html#?job_id=296828736&repo=autoland
Full log: https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/PsHB5lyfRueES6xb-cq_YQ/runs/1/artifacts/public/logs/live_backing.log


Since bug 1617748 etc. landed, several Windows x64 debug and asan tasks contain many tracebacks due to encoding error:

[task 2020-04-08T19:31:34.340Z] 19:31:34 INFO - warning: unused doc comment
[task 2020-04-08T19:31:34.341Z] 19:31:34 INFO - --> Z:\task_1586371036\build\src\third_party\rust\unicode-bidi\src\lib.rs:732:9
[task 2020-04-08T19:31:34.341Z] 19:31:34 INFO - |
[task 2020-04-08T19:31:34.341Z] 19:31:34 INFO - 732 | /// Bidi_Class: AL AL AL B L L L
[task 2020-04-08T19:31:34.341Z] 19:31:34 INFO - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[task 2020-04-08T19:31:34.341Z] 19:31:34 INFO - --- Logging error ---
[task 2020-04-08T19:31:34.341Z] 19:31:34 ERROR - Traceback (most recent call last):
[task 2020-04-08T19:31:34.341Z] 19:31:34 INFO - File "c:\mozilla-build\python3\lib\logging_init_.py", line 994, in emit
[task 2020-04-08T19:31:34.341Z] 19:31:34 INFO - stream.write(msg)
[task 2020-04-08T19:31:34.341Z] 19:31:34 INFO - File "c:\mozilla-build\python3\lib\encodings\cp1252.py", line 19, in encode
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - return codecs.charmap_encode(input,self.errors,encoding_table)[0]
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - UnicodeEncodeError: 'charmap' codec can't encode characters in position 45-47: character maps to <undefined>
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - Call stack:
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - File "c:\mozilla-build\python3\lib\threading.py", line 884, in _bootstrap
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - self._bootstrap_inner()
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - File "c:\mozilla-build\python3\lib\threading.py", line 916, in _bootstrap_inner
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - self.run()
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - File "c:\mozilla-build\python3\lib\threading.py", line 864, in run
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - self._target(*self._args, **self._kwargs)
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - File "Z:\task_1586371036\build\src\testing/mozbase/mozprocess\mozprocess\processhandler.py", line 1116, in _read
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - callback(line.rstrip())
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - File "Z:\task_1586371036\build\src\testing/mozbase/mozprocess\mozprocess\processhandler.py", line 1026, in call
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - e(*args, **kwargs)
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - File "Z:\task_1586371036\build\src\python/mach\mach\mixin\process.py", line 88, in handleLine
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - line_handler(line)
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - File "Z:\task_1586371036\build\src\python/mozbuild\mozbuild\controller\building.py", line 706, in on_line
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - self.log(logging.INFO, 'build_output', {'line': message}, '{line}')
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - File "Z:\task_1586371036\build\src\python/mach\mach\mixin\logging.py", line 54, in log
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - extra={'action': action, 'params': params})
[task 2020-04-08T19:31:34.342Z] 19:31:34 INFO - Message: '{line}'

Flags: needinfo?(rstewart)
Regressions: 1617748
Summary: Intermittent UnicodeEncodeError: 'charmap' codec can't encode characters in position 45-47: character maps to <undefined> → Perma win x64 UnicodeEncodeError: 'charmap' codec can't encode characters in position 45-47: character maps to <undefined>

Affect task types:
build-win64-asan-fuzzing/opt
build-win64-asan/debug
build-win64-asan/opt
build-win64-fuzzing/debug
build-win64-plain/debug
build-win64-rusttests/debug

Regressed by: 1617748
No longer regressions: 1617748
Has Regression Range: --- → yes
Keywords: regression
Assignee: nobody → rstewart
Status: NEW → ASSIGNED
Flags: needinfo?(rstewart)
Attachment #9139566 - Attachment description: Bug 1628621 - Ensure whenever we write to the terminal, we use the utf-8 encoding rather than the system encoding → Bug 1628621 - Ensure whenever we write to the terminal, if ascii is the default locale, use utf-8 instead.
See Also: → 1629159
Attachment #9139566 - Attachment description: Bug 1628621 - Ensure whenever we write to the terminal, if ascii is the default locale, use utf-8 instead. → Bug 1628621 - Ensure whenever we write to the terminal, if ascii or charmap are the default locale, use utf-8 instead.
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/739aa510248d Ensure whenever we write to the terminal, if ascii or charmap are the default locale, use utf-8 instead. r=glandium
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla77
Regressions: 1630426
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: