Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StackOverflowError when calling toFile #237

Open
wy672515431 opened this issue Jun 20, 2022 · 1 comment
Open

StackOverflowError when calling toFile #237

wy672515431 opened this issue Jun 20, 2022 · 1 comment

Comments

@wy672515431
Copy link

I am using version 0.18.1 and I get a StackOverflowError when trying to output to a file. Here's a minimal example to reproduce the problem:
MutableGraph graph = mutGraph("example1").setDirected(true).add( mutNode("a").add(Color.RED).addLink(mutNode("b"))); Graphviz.fromGraph(graph).height(100).render(Format.PNG).toFile(file);

Error message is below.

at guru.nidi.graphviz.engine.Graphviz.useDefaultEngines(Graphviz.java:112) at guru.nidi.graphviz.engine.Graphviz.useEngine(Graphviz.java:124) at guru.nidi.graphviz.engine.Graphviz.useDefaultEngines(Graphviz.java:112) at guru.nidi.graphviz.engine.Graphviz.useEngine(Graphviz.java:124) at guru.nidi.graphviz.engine.Graphviz.useDefaultEngines(Graphviz.java:112) at guru.nidi.graphviz.engine.Graphviz.useEngine(Graphviz.java:124) at guru.nidi.graphviz.engine.Graphviz.useDefaultEngines(Graphviz.java:112) at guru.nidi.graphviz.engine.Graphviz.useEngine(Graphviz.java:124) at guru.nidi.graphviz.engine.Graphviz.useDefaultEngines(Graphviz.java:112) at guru.nidi.graphviz.engine.Graphviz.useEngine(Graphviz.java:124)

@wy672515431
Copy link
Author

when I add Graphviz.useDefaultEngines(); , the error become guru.nidi.graphviz.engine.GraphvizException: None of the provided engines could be initialized.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant