PlantUML doesnt work in Confluence due to error : dot/GraphViz has crashed

0 votes
asked Aug 6, 2020 in Question / help by jampow
I'd like to do preview indication of a uml file in plantuml in visualstudiocode, but this error is indicated.

please help me !!

Diagram size: 124lines /3538 characters.
For some reason, dot/GraphViz has crached.
This has been generated with PlantUML (1.2020.10).
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) Client VM
Java Version: 1.8.0_241-b07
Operating System: Windows10
Default Encoding: MS932
Language: ja
Country: JP
Machine] DESKTOP-6A8132M
PLANTUML_LIMIT_SIZE: 4096
Processors: 8
Thread Active Count: 1
commented Aug 6, 2020 by albert (3,520 points)
What happens when you try to display your graph in the plantuml web server (http://www.plantuml.com/plantuml/uml)?

Would be useful to have the input data you want to display.

I see that your language is Japanese, maybe plantuml should be invoked like:

java -Dfile.encoding=UTF-8 -jar plantuml.jar -metadata -charset UTF-8 ...
commented Aug 7, 2020 by jampow

Thank you for your comment Albert!

The Plantuml web server displayed a diagram of the domain model we wanted to display.

It seems that UTF-8 is affecting it. i'll try it.

commented Aug 8, 2020 by Martin
It probably isn't this easy, but in case it is: when I installed Graphviz on Windows it wouldn't work until I had run "dot -c" as administrator.  This did some kind of one-time setup on Graphviz.
commented Aug 8, 2020 by albert (3,520 points)
@Martin What is the relevance of your comment in respect to the question? (I don't see it).
commented Aug 8, 2020 by jampow
Thank you for your comment Martin

Your solution solved the problem!!

I started the command prompt as admin and ran the "dot -c" command.
commented Aug 8, 2020 by jampow
Thanks to albert and Martin for their comments.

1 Answer

0 votes
answered Aug 8, 2020 by Martin
edited Aug 8, 2020

Glad to be of help!  For the purposes of completion, I'll turn my comment into an answer:

After installing Graphviz 2.44.1 for the first time on Windows, you need to run "dot -c" as administrator to complete a one-off set up.

Before this is done, if you run 'dot' at the CMD prompt, you'll get:

> dot

There is no layout engine support for "dot"
Perhaps "dot -c" needs to be run (with installer's privileges) to register the plugins?

(Which is what gave me the solution.)  Running "dot -c" as administrator, creates the file C:\Program Files\Graphviz 2.44.1\bin\config6 and you're good from then on.  (You can recreate the situation by deleting this file, which is how I reproduced the error text above).

@plantuml - it might be worth catching this particular GraphViz error and displaying a more helpful error message.

...