question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Plugin does not use configured dot.exe

See original GitHub issue

On our work laptops, we cannot run any application under our home folder. The administrators restricted permissions to only run programs under specific directories which they control.

It seems however that PlantUML now tries to use its embedded dot.exe instead of the one configured in the plugin settings:

java.io.IOException: Cannot run program "C:\Users\xxxxxx\AppData\Local\Temp\_graphviz\dot.exe": CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) 
	at java.base/java.lang.Runtime.exec(Runtime.java:592) 
	at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.startThreads(ProcessRunner.java:163) 
	at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.runJob(ProcessRunner.java:123) 
	at net.sourceforge.plantuml.api.TimeoutExecutor$MyThread.run(TimeoutExecutor.java:79) 
Caused by: java.io.IOException: CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator 
	at java.base/java.lang.ProcessImpl.create(Native Method) 
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:478) 
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154) 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) 
	... 5 more 
java.io.IOException: Cannot run program "C:\Users\xxxxxx\AppData\Local\Temp\_graphviz\dot.exe": CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) 
	at java.base/java.lang.Runtime.exec(Runtime.java:592) 
	at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.startThreads(ProcessRunner.java:163) 
	at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.runJob(ProcessRunner.java:123) 
	at net.sourceforge.plantuml.api.TimeoutExecutor$MyThread.run(TimeoutExecutor.java:79) 
Caused by: java.io.IOException: CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator 
	at java.base/java.lang.ProcessImpl.create(Native Method) 
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:478) 
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154) 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) 
	... 5 more 
java.lang.IllegalStateException: Timeout4 IO_EXCEPTION1 java.io.IOException: Cannot run program "C:\Users\xxxxxx\AppData\Local\Temp\_graphviz\dot.exe": CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator 
	at net.sourceforge.plantuml.svek.DotStringFactory.getSvg(DotStringFactory.java:309) 
	at net.sourceforge.plantuml.svek.GeneralImageBuilder.buildImage(GeneralImageBuilder.java:463) 
	at net.sourceforge.plantuml.svek.GroupPngMakerState.getImage(GroupPngMakerState.java:165) 
	at net.sourceforge.plantuml.cucadiagram.dot.CucaDiagramSimplifierState.computeImage(CucaDiagramSimplifierState.java:116) 
	at net.sourceforge.plantuml.cucadiagram.dot.CucaDiagramSimplifierState.<init>(CucaDiagramSimplifierState.java:68) 
	at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFileInternal(CucaDiagramFileMakerSvek.java:103) 
	at net.sourceforge.plantuml.svek.CucaDiagramFileMakerSvek.createFile(CucaDiagramFileMakerSvek.java:79) 
	at net.sourceforge.plantuml.cucadiagram.CucaDiagram.exportDiagramInternal(CucaDiagram.java:655) 
	at net.sourceforge.plantuml.UmlDiagram.exportDiagramNow(UmlDiagram.java:176) 
	at net.sourceforge.plantuml.AbstractPSystem.exportDiagram(AbstractPSystem.java:140) 
	at net.sourceforge.plantuml.SourceStringReader.outputImage(SourceStringReader.java:160) 
	at org.plantuml.idea.rendering.PlantUmlNormalRenderer.generateImageItem(PlantUmlNormalRenderer.java:211) 
	at org.plantuml.idea.rendering.PlantUmlNormalRenderer.normalRendering(PlantUmlNormalRenderer.java:169) 
	at org.plantuml.idea.rendering.PlantUmlNormalRenderer.doRender(PlantUmlNormalRenderer.java:129) 
	at org.plantuml.idea.rendering.PlantUmlRendererUtil.render(PlantUmlRendererUtil.java:73) 
	at org.plantuml.idea.rendering.RenderCommand.run(RenderCommand.java:67) 
	at org.plantuml.idea.rendering.LazyApplicationPoolExecutor$1.run(LazyApplicationPoolExecutor.java:122) 
	at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20) 
	at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11) 
	at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:270) 
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) 
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) 
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) 
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668) 
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665) 
	at java.base/java.security.AccessController.doPrivileged(Native Method) 
	at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665) 
	at java.base/java.lang.Thread.run(Thread.java:834) 
Caused by: java.io.IOException: Cannot run program "C:\Users\xxxxxx\AppData\Local\Temp\_graphviz\dot.exe": CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1128) 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1071) 
	at java.base/java.lang.Runtime.exec(Runtime.java:592) 
	at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.startThreads(ProcessRunner.java:163) 
	at net.sourceforge.plantuml.cucadiagram.dot.ProcessRunner$MainThread.runJob(ProcessRunner.java:123) 
	at net.sourceforge.plantuml.api.TimeoutExecutor$MyThread.run(TimeoutExecutor.java:79) 
Caused by: java.io.IOException: CreateProcess error=1260, This program is blocked by group policy. For more information, contact your system administrator 
	at java.base/java.lang.ProcessImpl.create(Native Method) 
	at java.base/java.lang.ProcessImpl.<init>(ProcessImpl.java:478) 
	at java.base/java.lang.ProcessImpl.start(ProcessImpl.java:154) 
	at java.base/java.lang.ProcessBuilder.start(ProcessBuilder.java:1107) 
	... 5 more 

I have checked that the dot.exe file is different (different file size).

What I have tried:

  • Using the GRAPHVIZ_DOT environment variable (and the corresponding checkbox in the plugin settings)
  • Using backslashes instead of the forward slashes (used by default when browsing to dot.exe in the UI)
  • Upgrading to the graphviz lite distribution from PlantUML (version 2.44.1)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9

github_iconTop GitHub Comments

2reactions
arnaudroquescommented, Dec 30, 2020

Thanks @arnaudroques. If I am not wrong, the problem is just that GraphvizWindowsLite overrides searchDotExe(), no?

Yes. All these need a proper refactor now 😃

Is there a github to track for this or it’s just the above forum thread?

Just the forum. It should be fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it’s not working for you !

0reactions
krasacommented, Jan 12, 2021

seems fixed in the new version

Read more comments on GitHub >

github_iconTop Results From Across the Web

dot.exe fails silently (#2064) - graphviz - GitLab
Steps to reproduce I run the following command: dot graph_bierverkostung.dot -Tsvg -o test.svg -v However, no output...
Read more >
Can't render component diagram with PlantUML in IntelliJ
In Intellij, click the wrench icon on the far right of the menu panel that contains the plantuml view and editor arrangement. Click...
Read more >
Camel Dot Maven Goal - The Apache Software Foundation!
The camel:dot goal of the Camel Maven Plugin is used to generate Visualisation diagrams for your Enterprise Integration Patterns.
Read more >
OWLViz - Protege Wiki
OWLViz is designed to be used with the Protege-OWL editor. It enables class hierarchies in an OWL Ontology to be viewed and incrementally ......
Read more >
Using GIMPTOOL-2.0.exe on Windows (#6378) · Issues - GitLab
Attempting to build a plugin using the Windows gimptool-2.0.exe results in an error that the input and output file are invalid since they ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found