We recently upgraded confluence to 8.5.18 and have the PlantUML for Confluence plugin installed, and updatred it to version 2024.21. After that we got a report that a diagram was broken with the following error:
An error has occured : java.lang.IllegalArgumentException: height=0.0There's been a pattern of insubordinate behavior recently. Diagram size: 113 lines / 3389 characters. PlantUML (1.2025.0) cannot parse result from dot/GraphViz. Please go to https://plantuml.com/graphviz-dot to check your GraphViz version. Java Runtime: OpenJDK Runtime EnvironmentJVM: OpenJDK 64-Bit Server VMDefault Encoding: Cp1252Language: enCountry: US PLANTUML_LIMIT_SIZE: 4096 This may be caused by :- a bug in PlantUML- a problem in GraphViz You should send this diagram and this image toplantuml@gmail.comorpost tohttps://plantuml.com/qato solve this issue.You can try to turn around this issue by simplifing your diagram. java.lang.IllegalArgumentException: height=0.0net.sourceforge.plantuml.klimt.shape.URectangle.<init>(URectangle.java:140)net.sourceforge.plantuml.klimt.shape.URectangle.build(URectangle.java:115)net.sourceforge.plantuml.skin.rose.ComponentRoseLine.drawTitleHoverTargetRect(ComponentRoseLine.java:105)net.sourceforge.plantuml.skin.rose.ComponentRoseLine.drawInternalU(ComponentRoseLine.java:83)net.sourceforge.plantuml.skin.AbstractComponent.drawU(AbstractComponent.java:75)net.sourceforge.plantuml.sequencediagram.graphic.ParticipantBox.drawLine(ParticipantBox.java:185)
Can paste whole error if needed, but it is pretty long
Confirmed that it was not all diagrams, so I tested pulling section of the diagram out to see what was causing it to break.
Found that this breaks it:
@startuml test
header author: test
...
... SOME TIME PASSES ...
...
hnote over test
show test
end note
... THE END ...
@enduml
If I remove the ... before and after ... SOME TIME PASSES ... it seems to work fine.
So like this:
@startuml test
header author: test
... SOME TIME PASSES ...
hnote over test
show test
end note
... THE END ...
@enduml
If I downgrade the plugin to the previous version (2024.20) this break does not occur. According to the release notes, the change for 2024.21 was updating to the latest plantuml library (1.2025.0).
Or "testdot" output looks like this:
PlantUML version 1.2025.0 (Tue Jan 07 11:35:36 CST 2025)
Dot version: dot - graphviz version 2.44.1 (20200629.0846)
Installation seems OK. File generation OK
So my question is, is there something with the updated library that we can't use ... in that way, or is this maybe a bug?