Possible bug with relation in rectangle? (screenshot)

0 votes
asked May 20, 2016 in Bug by junkw (240 points)

Hi

Only a small modification to code cause 2 rectangles to become too large.

Bug or I wrote wrong code?

 

Code in text :

 

newpage


title OK

left to right direction

scale 0.7


rectangle one {
    (a)
    (b)
    (a) <.. (b)
}


newpage

title OK

left to right direction

scale 0.7

rectangle one {
    (c)
    (d)
    (c) <.. (d)
}
rectangle two {
    (a)
    (b)
    (a) <.. (b)
}

newpage

title BUG?

left to right direction

scale 0.7

rectangle one {
    (c)
    (d)
    (c) <.. (d)
}
rectangle two {
    (a)
    (b)
    (a) <.. (b): extends
}

2 Answers

0 votes
answered May 20, 2016 by plantuml (295,000 points)

Hello,

This may be related with the version of GraphViz your are using.

Could you check it with :

@startuml
testdot
@enduml

Your example seems indeed to work fine on the online server:

http://plantuml.com/plantuml/uml/AyaioKbLS0frj-VYoabDAr4eoLSeoapFA558oInAJIx9pC_ZuYfEJWGgCj0pv-82YINcfGEv-Ncf2jLS2a2WaQm9eLCqONm56pqzCByMIKT9UJvCHo9KPP8cZ0_HaQHffP1QKPAQbrBCLGi0

commented May 20, 2016 by junkw (240 points)
installing last version (-2.39.20160519.1619) does not fix the problem

Maybe should I downgrade to 2.38.0 ?
commented May 20, 2016 by plantuml (295,000 points)
Yes, I think that this bug occurs with 2.39. So try to downgrade to 2.38
commented May 21, 2016 by junkw (240 points)
Yup, 2.38 fixed this.
Thanks for help, appreciated
commented Aug 12, 2019 by kstanislawek (100 points)
Bug seems to be fixed, graphviz 2.40.1 doesn't have that problem anymore.
commented Jan 8, 2020 by Ken
A similar problem still occurs with Mac OS X, graphviz 2.40.1 and 2.41_devel.  When using containers and the C4 definitions, containers with more than 2 components are rendered very tall with lots of whitespace.  The same diagram on the PlantUML internet server works fine.

I guess I need to run a PlantUML server in Docker or build an older version of graphviz.
commented Jan 8, 2020 by Ken

Needed to edit the class name, but found that someone had already proposed a Brew formula for graphviz 2.38.  With some searching, figured out how to install it.
 

curl https://raw.githubusercontent.com/nhtzr/homebrew-core/173be0411aeccece6c4c289f15089a2e2fd5d6a7/Formula/graphviz%402.38.rb > graphviz.rb


(edit classname in file to Graphviz)

diff graphviz.rb graphviz.rb~
1c1
< class Graphviz < Formula
---
> class GraphvizAT238 < Formula

 brew install ./graphviz.rb

0 votes
answered Aug 29, 2020 by plantuml (295,000 points)
Note that GraphViz 2.44 has fixed this bug.

You might considere upgrade to 2.44
...