PlantUML (1.2021.8) cannot parse result from dot/GraphViz.

0 votes
asked Sep 26, 2021 in Bug by germo (160 points)
When I try to render some puml diagrams, using kroki, I get this error

puml file:

An error has occured : java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 4It makes the truth even more incomprehensible because everything is newDiagram size: 1642 lines / 89406 characters.PlantUML (1.2021.8) cannot parse result from dot/GraphViz.This version of PlantUML is 91 days old, so you shouldconsider upgrading from version used : version 2.44.0 ()Please go to to check your GraphViz version.Java Runtime: OpenJDK Runtime EnvironmentJVM: OpenJDK 64-Bit Server VMDefault Encoding: UTF-8Language: enCountry: USPLANTUML_LIMIT_SIZE: 4096This may be caused by :- a bug in PlantUML- a problem in GraphVizYou should send this diagram and this image toplantuml@gmail.comorpost to solve this issue.You can try to turn arround this issue by simplifing your Index -1 out of bounds for length 4java.base/jdk.internal.util.Preconditions.outOfBounds(Unknown Source)java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Unknown Source)java.base/jdk.internal.util.Preconditions.checkIndex(Unknown Source)java.base/java.util.Objects.checkIndex(Unknown Source)java.base/java.util.ArrayList.get(Unknown Source)net.sourceforge.plantuml.ugraphic.UPolygon.checkMiddleContactForSpecificTriangle($convert$5($null$0($executeBlocking$1( Source)java.base/java.util.concurrent.ThreadPoolExecutor$ Source) Source)
commented Sep 26, 2021 by albert (3,520 points)

I just tried to run it locally with version:

PlantUML version 1.2021.11beta6 (Unknown compile time)
(GPL source distribution)
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) 64-Bit Server VM
Default Encoding: Cp1252
Language: en
Country: US


Dot version: dot - graphviz version 2.44.1 (20200629.0846)
Installation seems OK. File generation OK

and this rendered the file.

When running on the platuml webserver I also get an error starting with:

You don't have permission to access /plantuml/uml/d99lQzim4CRVwrCSUTCII3w02MLhmIDGkZAd-.........

As the problem is quite large it might be some buffer overflow.

commented Sep 26, 2021 by germo (160 points)
I also can render the diagram when I open it in VSC in it's PlantUML extension. And I think, I will be able to remove the redundant relations between class fields when I generate the files next time (the puml is generated automatically and there was a small bug).
commented Sep 26, 2021 by albert (3,520 points)
It is nice when you can regenerate the puml file with the redundant relations, but I think the webserver / kroki should be able to render it. I therefore would advise to open an issue at

Including the puml file as it now, the supplied link a moving target and therefore not persistent (so in future the problem not really be reproduced).

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.