Chentai-Kao / call-graph-plugin

Code Graph Intellij Plugin
82 stars 29 forks source link

Exception after udpdate #8

Open nabarunnag opened 5 years ago

nabarunnag commented 5 years ago

I updated the plugin and it started throwing this error when I try to generate a graph

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:945)
    at callgraph.Utils$runBackgroundTask$1.run(Utils.kt:131)
    at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:731)
    at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
    at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
    at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
    at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
    at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
    at com.intellij.openapi.progress.impl.CoreProgressManager$4.run(CoreProgressManager.java:403)
    at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:748)
nurinamu commented 4 years ago

Same here.

Any updates for this?

nurinamu commented 4 years ago

This issue is probably caused by lack of memory. I found some hint from below post https://github.com/nidi3/graphviz-java/issues/110 It is now working fine after I change the scope for building the graph.