pycallgraph icon indicating copy to clipboard operation
pycallgraph copied to clipboard

Graphviz fails to build output

Open Dreen opened this issue 10 years ago • 4 comments
trafficstars

When generating output for my profiled code I get the following error:

libpath/shortest.c:324: triangulation failed
libpath/shortest.c:192: source point not in any triangle
Error: in routesplines, Pshortestpath failed
Segmentation fault (core dumped)
Traceback (most recent call last):
  File "/usr/local/bin/pycallgraph", line 26, in <module>
    exec(__file_content)
  File "/usr/local/lib/python3.4/dist-packages/pycallgraph/pycallgraph.py", line 38, in __exit__
    self.done()
  File "/usr/local/lib/python3.4/dist-packages/pycallgraph/pycallgraph.py", line 81, in done
    self.stop()
  File "/usr/local/lib/python3.4/dist-packages/pycallgraph/pycallgraph.py", line 90, in generate
    output.done()
  File "/usr/local/lib/python3.4/dist-packages/pycallgraph/output/graphviz.py", line 112, in done
    'code %(ret)i.' % locals())
pycallgraph.exceptions.PyCallGraphException: The command "dot -Tpng -opycallgraph.png /tmp/tmpjxrt96s0" failed with error code 35584.

Dreen avatar Oct 18 '15 13:10 Dreen

Segmentation fault (core dumped)

This might be a graphviz error. I can see a few bug report on theirs issue tracker: http://www.graphviz.org/mantisbt/view.php?id=2382 http://www.graphviz.org/mantisbt/view.php?id=2246

The latter might have a solution about changing the splines setting.

Can you show a reproducible example, and give me the environment specs?

gak avatar Oct 30 '15 07:10 gak

I decrease max_depth, and it's work for me.

evgeniikozhanov avatar Aug 11 '17 07:08 evgeniikozhanov

Hello, i found a workaround and what you can do is when you call dot pass as an argument: -Gnewrank=true without specifying max_depth and it will work!

ghost avatar Dec 08 '17 10:12 ghost

I decrease max_depth, and it's work for me.

worked for me too thanks!

yuvalneteera avatar Mar 18 '19 12:03 yuvalneteera