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

GraphvizException: TypeError: Module.print... is an inappropriate error message for what seems to be "graph too large for memory" #15

Open
jzwolak opened this issue Jul 21, 2020 · 4 comments

Comments

@jzwolak
Copy link

jzwolak commented Jul 21, 2020

There is an earlier issue that mentions this and the issue was marked as resolved. I raise the issue again with a different point of view and call for a different resolution.

The following exception seems to be a result of the call graph being too large to display - possibly because of memory constraints. If this is true, then a suitable error message should be displayed to the user indicating that the call graph is too large and the scope should be reduced. In addition, some indications on how to reduce the scope should be suggested; or at least, a pointer to the documentation where the user may read and learn how to reduce the scope.

guru.nidi.graphviz.engine.GraphvizException: TypeError: Module.print is not a function
	at guru.nidi.graphviz.engine.ResultHandler.waitFor(ResultHandler.java:42)
	at guru.nidi.graphviz.engine.GraphvizV8Engine$Env.execute(GraphvizV8Engine.java:91)
	at guru.nidi.graphviz.engine.GraphvizV8Engine.jsExecute(GraphvizV8Engine.java:67)
	at guru.nidi.graphviz.engine.AbstractJsGraphvizEngine.execute(AbstractJsGraphvizEngine.java:28)
	at guru.nidi.graphviz.engine.Graphviz.execute(Graphviz.java:184)
	at guru.nidi.graphviz.engine.Renderer.toString(Renderer.java:46)
	at callgraph.Utils.getLayoutFromGraphViz(Utils.kt:300)
	at callgraph.Utils.layout(Utils.kt:115)
	at callgraph.CanvasBuilder.buildGraph(CanvasBuilder.kt:39)
	at callgraph.CanvasBuilder.build(CanvasBuilder.kt:27)
	at callgraph.CallGraphToolWindow$run$1.run(CallGraphToolWindow.kt:217)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:869)
	at callgraph.Utils$runBackgroundTask$1.run(Utils.kt:131)
	at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:932)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:434)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$null$3(ProgressRunner.java:233)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:166)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:627)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:572)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:61)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:153)
	at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:233)
	at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
	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.lang.Thread.run(Thread.java:834)
@RAM237
Copy link

RAM237 commented Dec 23, 2020

Same here

@LuckyClover1
Copy link

+1

2 similar comments
@finviman
Copy link

+1

@ArunOnCloud
Copy link

+1

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

5 participants