← Back to issue list

snapcraft crashes with useless message on bad YAML

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1608032
Type
issue
State
closed
Author
~keshavnrj
Labels
ui
Created
Updated
Closed

Current evaluation

⚠️ This summary may be outdated — the issue content or evaluation prompts have changed since this evaluation was made.

Abandoned. Snapcraft crashed with an unhelpful error on invalid YAML. No fix or follow-up was provided.

Suggested action:

No scores available.

Issue body

I was trying to make snap of my old qt based 2048 application which is serving in software center in 14.04 etc , so am sure nothing is wrong with it . Snapcraft gave output which is useless and exit after completing few build steps. link to my snapcraft file is - http://paste.ubuntu.com/21499411/ when i issue snapcraft command it download stage packages and at end show this message- "expected string or bytes-like object" and gets exit. as the message itself is irrivalent i am unable to understant what should i do. so is ran snapcraft --debug which gave me this output - http://paste.ubuntu.com/21499579/ am sure snapcraft should output some good information about what goes wrong and where .

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Abandoned. Snapcraft crashed with an unhelpful error on invalid YAML. No fix or follow-up was provided.
qwen/qwen3.6-35b-a3b Closed without resolution. The report of vague YAML parsing errors and poor crash messages in snapcraft was abandoned, with no fixes implemented or follow-up comments provided.
qwen3.6-35b-a3b-mtp-q6 Abandoned due to inactivity after over four years. The report described a vague error message during YAML parsing but received no comments or patches. The issue remains unresolved.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1829564 snapcraft clean crashes on snapcraft.yaml with bad indent snapcraft (launchpad) open snapcraft 2.43.1 (Ubuntu 19.04) crashes with a raw PyYAML traceback when snapcraft.yaml has inconsistent indentation. 7+ years old, no labels, no comments, and the affected 2.x version is long out of support.
74%
#1605541 snapcraft-parser doesn't work snapcraft (launchpad) closed Closed as a regression without resolution. snapcraft-parser 2.13 failed to parse multi-document YAML streams, causing a parser error. The issue was abandoned with no fix or follow-up.
73%
#1907721 Snapcraft broken on ARM64 snapcraft (launchpad) closed Closed without comments. No fix or merge was applied. The ARM64 Multipass QEMU error and YAML !PrimeState deserialization bug were likely resolved by upstream Snapcraft updates or abandoned.
72%
#1869542 snapcraft unable to find snap/snapcraft.yaml file snapcraft (launchpad) open snapcraft 3.11 (2019) loses snap/snapcraft.yaml after a few builds and drops to the VM shell; workaround is snapcraft clean. 6+ years old, no labels, no maintainer comments, tied to a long-superseded build environment.
72%
#1813487 snapcraft --help triggers a crash snapcraft (launchpad) closed Abandoned. The issue reported a crash when running snapcraft --help due to an environment validation error in BuilderEnvironmentConfig. Closed with no comments or resolution.
72%
#1596596 in order to clean, the snapcraft.yaml has to be valid and the parts cache up-to-date snapcraft (launchpad) closed Abandoned without resolution. The reported limitation where snapcraft clean fails on invalid YAML or outdated cache remains unaddressed, as no fix or pull request was provided.
71%
#1703650 A whitelist mistake in snapcraft.yaml makes snapcraft fail with no explanation snapcraft (launchpad) closed Closed without resolution, likely abandoned or marked as user error. The report described a cryptic error caused by a configuration mistake in snapcraft.yaml. No fixes or comments were recorded.
71%
#1604326 snapcraft init doesn't fail if there is a .snapcraft.yaml file snapcraft (launchpad) closed Closed without resolution. The snapcraft init command remains unchanged and still creates snapcraft.yaml when .snapcraft.yaml exists, indicating the bug was abandoned or superseded by newer project changes.
71%
#1787373 snapcraft does not use the C yaml parser snapcraft (launchpad) closed Closed without resolution or comments. The report noted slow YAML parsing due to PyYAML's default loader. No changes were made, indicating the issue was abandoned.
71%
#1795780 Snapcraft complains about "snapcraft.yaml~" in snap/ dir snapcraft (launchpad) open Snapcraft warns about editor backup files like snapcraft.yaml~ in the snap/ directory, creating noise that can mask real problems. The issue has been open and unaddressed for 2890 days with no maintainer response.
71%