Skip to content

valadoc-0.56.18 is incompatible with graphviz-13.0.0

Description:

graphviz 13.0.0 had some breaking api changes, which causes valadoc to segfault, making it unusable.

graphviz did change the type of an array length parameter from unsigned int to size_t causing a segfault. I provided a patch below which fixes this issue. However there are more breaking changes in graphviz changelog, which are not addressed in that patch, so other programs written in vala and using graphviz could run into issues. I can provide a patch addressing all the breaking breaking changes in the vapi if so requested, but didn't get around to to look into all of the changes yet.

Additional info:

Steps to reproduce:

Trying to run valadoc for any project segfaults. A minimal Project to reproduce:

//test.vala
namespace Test {
public class Test {
}
}

then run
valadoc -o docs --package-name test test.vala

the patch file:

valadoc_graphviz_13.0.0.patch

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information