Snapcraft crashes with UnicodeDecodeError
Metadata
Current evaluation
Closed without resolution. Snapcraft crashed with a UnicodeDecodeError when parsing snapcraft.cfg containing invalid UTF-8 bytes during Travis CI builds.
Suggested action: —
No scores available.
Issue body
We just updated our travis-ci configuration in a project by running
snapcraft enable-ci travis --refresh
The resulting build on Travis fails with a UnicodeDecodeError while parsing the resulting snapcraft.cfg:
Snapped neuronify_v1.3.2+git7.f143c69_amd64.snap
Pushing neuronify_v1.3.2+git7.f143c69_amd64.snap
After pushing, an attempt will be made to release to 'edge'
Using local configuration ('.snapcraft/snapcraft.cfg'), changes will not be persisted.
Sorry, an error occurred in Snapcraft:
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 9, in <module>
load_entry_point('snapcraft==2.43.1', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/store.py", line 161, in push
snapcraft.push(snap_file, channel_list)
File "/usr/lib/python3/dist-packages/snapcraft/_store.py", line 537, in push
store = storeapi.StoreClient()
File "/usr/lib/python3/dist-packages/snapcraft/storeapi/_store_client.py", line 30, in __init__
self.conf = config.Config()
File "/usr/lib/python3/dist-packages/snapcraft/config.py", line 171, in __init__
self.load()
File "/usr/lib/python3/dist-packages/snapcraft/config.py", line 226, in load
config = f.read()
File "/usr/lib/python3.5/codecs.py", line 321, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 1: invalid start byte
We would appreciate it if you created a bug report at
https://launchpad.net/snapcraft/+filebug with the above text included.
Script failed with status 1
The complete build log can be found here:
https://travis-ci.org/CINPLA/neuronify/jobs/438987878
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without resolution. Snapcraft crashed with a UnicodeDecodeError when parsing snapcraft.cfg containing invalid UTF-8 bytes during Travis CI builds. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
100
Complexity:
15
Confidence:
95
Support Request:
5
|
close stale | Snapcraft crashes with UnicodeDecodeError when reading snapcraft.cfg during push. Inactive for ~8 years with no maintainer response or labels. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
98
Complexity:
25
Confidence:
90
Support Request:
5
|
close stale | Snapcraft 2.43.1 crashes with a UnicodeDecodeError when reading snapcraft.cfg during CI push. Open for nearly 8 years with no maintainer response. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
100
Complexity:
15
Confidence:
90
Support Request:
5
|
close stale | Snapcraft 2.43.1 crashes with a UnicodeDecodeError when parsing snapcraft.cfg during Travis CI builds. Unlabeled, no comments, inactive for ~7.7 years. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1662456 snapcraft fails if desktop file included "ascii" cannot decode byte | snapcraft (launchpad) | closed | Closed without resolution. Snapcraft build failures triggered by non-ASCII characters in desktop files caused an ASCII codec decode error. The report received no comments or patches and was abandoned, likely superseded by upstream UTF-8 handling improvements. | |
| #1628457 snapcraft fails on s390x with utf8 error | snapcraft (launchpad) | closed | Closed without a fix. The report detailed a UTF-8 encoding error in snapcraft 2.18 causing s390x builds to fail. The issue was abandoned with no code changes or resolution provided. |