Using Android Studio (2024.2.1) PlantUML plugin, I generated a call diagram `MyClass_2_keyMethod_calls.puml`.
An attempt to display that file in Android Studio, results in error `GraphViz has crashed`, without any further information.
So, I downloaded `plantuml.jar` from https://sourceforge.net/projects/plantuml/ and attempted to run:
java -jar plantuml.jar MyClass_2_keyMethod_calls.puml
which resulted in:
java.io.IOException: The pipe has been ended
at java.base/java.io.FileOutputStream.writeBytes(Native Method)
at java.base/java.io.FileOutputStream.write(Unknown Source)
at java.base/java.io.BufferedOutputStream.implWrite(Unknown Source)
at java.base/java.io.BufferedOutputStream.write(Unknown Source)
at java.base/java.io.FilterOutputStream.write(Unknown Source)
at net.sourceforge.plantuml.dot.ProcessRunner$MainThread.startThreads(ProcessRunner.java:181)
at net.sourceforge.plantuml.dot.ProcessRunner$MainThread.runJob(ProcessRunner.java:121)
at net.sourceforge.plantuml.api.TimeoutExecutor$MyThread.run(TimeoutExecutor.java:77)
I did take care of running it in cmd terminal in admin mode as suggested in https://forum.plantuml.net/11828/for-some-reason-dot-graphviz-has-crashed?show=11894#a11894
I don't know what I am doing wrong that prevents me from displaying the PUML file successfully. I would appreciate your help in regard to known limitations or incompatibility with files generated by the PlantUML plugin for IntelliJ IDEA and Android Studio.
I highlighted "known limitations" because when running it on a 5KB `.puml` file, it works great. It fails, however, on the aforementioned MyClass_2_keyMethod_calls.puml, which is 51KB in size.
Is there a .puml validator tool?
My config:
java -Djava.awt.headless=true -jar plantuml.jar -version
PlantUML version 1.2023.7 (Fri May 12 20:23:42 IDT 2023)
(GPLV2 source distribution)
Java Runtime: OpenJDK Runtime Environment
JVM: OpenJDK 64-Bit Server VM
Default Encoding: UTF-8
Language: en
Country: US
PLANTUML_LIMIT_SIZE: 4096
Dot version: dot - graphviz version 2.44.1 (20200629.0846)
Installation seems OK. File generation OK