IllegalArgumentException: height=0.0

0 votes
asked Apr 2, 2020 in Bug by kohtala (140 points)

Hi. I found an exception

$ java -jar ~/plantuml.jar -tsvg lifeline-alt.plantuml
java.lang.IllegalArgumentException: height=0.0
        at net.sourceforge.plantuml.ugraphic.URectangle.<init>(URectangle.java:115)
        at net.sourceforge.plantuml.ugraphic.URectangle.<init>(URectangle.java:105)
        at net.sourceforge.plantuml.skin.rose.ComponentRoseActiveLine.drawInternalU(ComponentRoseActiveLine.java:76)
        at net.sourceforge.plantuml.skin.AbstractComponent.drawU(AbstractComponent.java:78)
        at net.sourceforge.plantuml.sequencediagram.graphic.SegmentColored.drawU(SegmentColored.java:106)
        at net.sourceforge.plantuml.sequencediagram.graphic.LifeLine.drawU(LifeLine.java:232)
        at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawLifeLineU(DrawableSet.java:422)
        at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawPlaygroundU(DrawableSet.java:364)
        at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet.drawU22(DrawableSet.java:283)
        at net.sourceforge.plantuml.sequencediagram.graphic.DrawableSet$1.drawU(DrawableSet.java:257)
        at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma2$1.drawU(SequenceDiagramFileMakerPuma2.java:238)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.getFinalDimension(ImageBuilder.java:301)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageInternal(ImageBuilder.java:218)
        at net.sourceforge.plantuml.ugraphic.ImageBuilder.writeImageTOBEMOVED(ImageBuilder.java:181)
        at net.sourceforge.plantuml.sequencediagram.graphic.SequenceDiagramFileMakerPuma2.createOne(SequenceDiagramFileMakerPuma2.java:259)
        at net.sourceforge.plantuml.sequencediagram.SequenceDiagram.exportDiagramInternal(SequenceDiagram.java:252)
        at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:201)
        at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:135)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagramsSequence(PSystemUtils.java:203)
        at net.sourceforge.plantuml.PSystemUtils.exportDiagrams(PSystemUtils.java:88)
        at net.sourceforge.plantuml.SourceFileReaderAbstract.getGeneratedImages(SourceFileReaderAbstract.java:159)
        at net.sourceforge.plantuml.Run.manageFileInternal(Run.java:520)
        at net.sourceforge.plantuml.Run.processArgs(Run.java:404)
        at net.sourceforge.plantuml.Run.manageAllFiles(Run.java:372)
        at net.sourceforge.plantuml.Run.main(Run.java:188)

Version

$ java -jar ~/plantuml.jar -version
PlantUML version 1.2020.05 (Thu Mar 19 23:17:32 EET 2020)
(GPL source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Java Version: 11.0.6+10-post-Ubuntu-1ubuntu118.04.1
Operating System: Linux
Default Encoding: UTF-8
Language: en
Country: US
Machine: kohtala-VirtualBox
PLANTUML_LIMIT_SIZE: 4096
Processors: 15
Max Memory: 4,204,789,760
Total Memory: 266,338,304
Free Memory: 259,335,776
Used Memory: 7,002,528
Thread Active Count: 1

The environment variable GRAPHVIZ_DOT has not been set
Dot executable is /usr/bin/dot
Dot version: dot - graphviz version 2.40.1 (20161225.0304)
Installation seems OK. File generation OK

The diagram

@startuml
a <- b ++
alt a
a -> b --
else b
a -> b --
else c
a <- b ++
end

@enduml

1 Answer

0 votes
answered Apr 2, 2020 by plantuml (257,860 points)
selected Apr 6, 2020 by kohtala
 
Best answer
Thanks for the feedback and the detailled report. It really helps!

The exception has been removed in last beta http://beta.plantuml.net/plantuml.jar

However, I am not sure that we have really completely fixed the issue. Tell us if you find some more.

Thanks!
commented Apr 6, 2020 by kohtala (140 points)
So it seems. Thank you!
...