Relation line too long with graphviz 2.40.1 when using labels on relations in a namespace

+2 votes
asked Jan 30, 2017 in Bug by remy (140 points)

Not sure if this is a plantuml or graphviz bug but since i've updated graphviz from 2.38 to 2.40.1 the relation lines drawn between two classes within a namespace are rendered way too long when I add a label to the relation.

Example (See output here:

namespace Vehicles {
   Toyota --|> Car : implements

This issue doesn't happen when used in the online plantuml editor but I'm not sure which graphviz executable is used here


1 Answer

0 votes
answered Jan 30, 2017 by plantuml (273,620 points)
GraphViz version 2.39 and 2.40 have indeed issues with PlantUML.

We will investigate on this, and perhaps open some issue on GraphViz side.

In the mean time, is it possible for you to downgrade back to 2.38 ?

Sorry about that.
commented Jun 24, 2017 by rd27 (460 points)
Is there a bug we can track for this?
commented Apr 8, 2018 by Autofire
Is there any easy way to get an older version of GraphViz on a Mac? I dug around, but GraphViz doesn't have any branches on their repo to make this easy, and Homebrew doesn't seem to have any versions older than 2.40.

If I can get my hands on the right source code, I'm willing to compile it myself. However, I'd rather not download a binary from some shady 3rd party.

The online version isn't workable in the long run; I don't always have internet access.
commented May 30, 2018 by dvojtise (100 points)
with latest ubuntu LTS (18) graphviz version is 2.40.1 by default
this is a pain to try to downgrade

is there a bug to track this issue ?
commented May 30, 2018 by plantuml (273,620 points)
Really sorry about that, but the issue is really on graphviz side. There is nothing that we can do here on PlantUML side.

On Graphviz, the issue are referenced here:

But I have no idea about when this will be solved. Maybe you should ask them ? :-)
commented Jul 10, 2019 by rd27 (460 points)

The issues seem to have been fixed in master according to Unfortunately it seems that GraphViz hasn't formally released a new version since 2.40.1. I filed for that.

In the meantime for homebrew you can upgrade to head/master using ` brew install graphviz --HEAD`. That gave me graphviz commit 3334dd8 which reports itself as 2.42.0.

commented Jul 10, 2019 by rd27 (460 points)
edited Jul 11, 2019 by rd27

Actually, there is a way to to get 2.38.0 also with homebrew. See the second part of You basically do the following:

brew tap-new local/old-versions
brew extract --version="2.38.0" graphviz local/old-versions
brew unlink graphviz
brew install graphviz@2.38.0

commented Jan 22, 2020 by tj.rothwell (100 points)

What the the guidance for Graphviz versions? Is the web page still accurate?