mesonbuild / mesonbuild/meson

Decoding issue.

Open
#4,074 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

exception module:gnome
Dominant language
Python
Stars
6.6k
Forks
1.9k
Avg merge
2d 6h
Merged PRs (30d)
33

Description

Hi,
I am working on project libgda. By building documentation for the project i get the following error. I use meson 0.47.1. I am not sure what information you need, but let me know and I will try to provide it.
Thanks.

Traceback (most recent call last):
  File "/home/pavlo/jhbuild/install/bin/meson", line 29, in <module>
    sys.exit(mesonmain.main())
  File "/home/pavlo/jhbuild/install/lib/python3.6/site-packages/mesonbuild/mesonmain.py", line 379, in main
    return run(sys.argv[1:], launcher)
  File "/home/pavlo/jhbuild/install/lib/python3.6/site-packages/mesonbuild/mesonmain.py", line 316, in run
    sys.exit(run_script_command(args[1:]))
  File "/home/pavlo/jhbuild/install/lib/python3.6/site-packages/mesonbuild/mesonmain.py", line 232, in run_script_command
    return cmdfunc(cmdargs)
  File "/home/pavlo/jhbuild/install/lib/python3.6/site-packages/mesonbuild/scripts/gtkdochelper.py", line 243, in run
    options.mode)
  File "/home/pavlo/jhbuild/install/lib/python3.6/site-packages/mesonbuild/scripts/gtkdochelper.py", line 185, in build_gtkdoc
    gtkdoc_run_check(mkhtml_cmd, os.path.join(abs_out, 'html'))
  File "/home/pavlo/jhbuild/install/lib/python3.6/site-packages/mesonbuild/scripts/gtkdochelper.py", line 55, in gtkdoc_run_check
    p, out = Popen_safe(cmd, cwd=cwd, env=env, stderr=subprocess.STDOUT)[0:2]
  File "/home/pavlo/jhbuild/install/lib/python3.6/site-packages/mesonbuild/mesonlib.py", line 842, in Popen_safe
    o, e = p.communicate(write)
  File "/usr/lib/python3.6/subprocess.py", line 830, in communicate
    stdout = self.stdout.read()
  File "/usr/lib/python3.6/codecs.py", line 321, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 8688-8689: invalid continuation byte
FAILED: meson-libgda-6.0-doc 

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the libgda documentation build with Meson 0.47.1 and inspect mesonbuild/scripts/gtkdochelper.py together with mesonlib.py, especially the Popen_safe call in the traceback. Determine how the gtk-doc subprocess output reaches Python's UTF-8 decoder; done means the documentation build no longer fails with this UnicodeDecodeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.