【问题标题】:graphviz/dot crash (turned out to be caused by faulty installation)graphviz/dot crash(原来是安装错误引起的)
【发布时间】:2009-10-03 01:04:07
【问题描述】:

我正在尝试使用 GraphViz 工具来生成一些依赖关系图,但我在获取 dot 导出图像时运气不佳。 SVG 工作正常,但其他任何内容(jpeg、gif、png)都会导致 dot 崩溃。

这是我的图表:

digraph test {
 main -> parse -> execute;
 main -> init;
 main -> cleanup;
 execute -> make_string;
 execute -> printf
 init -> make_string;
 main -> printf;
 execute -> compare;
}

这是有效的命令行(用于 svg):

dot test.dot -Tsvg -o test.svg

以下是导致崩溃的命令行:

dot test.dot -Tjpg -o test.jpg
dot test.dot -Tjpeg -o test.jpeg
dot test.dot -Tpng -o test.png

我是否遗漏了一些明显的东西?

谢谢,

(注意这是在 WinXP 32 位上使用 2.24 graphviz 包)。

【问题讨论】:

    标签: windows graphviz


    【解决方案1】:

    好的误报,安装程序似乎由于某种原因错过了一些文件。进行卸载/重新安装修复它。

    感谢您的健全性检查!

    【讨论】:

      【解决方案2】:

      在这里工作正常(Debian 测试,graphviz 2.20.2-3+b4):

      $ dot test.dot -Tjpeg -o test.jpeg
      $ file test.jpeg 
      test.jpeg: JPEG image data, JFIF standard 1.01, comment: "CREATOR: gd-jpeg v1.0 (using IJ"
      $ dot test.dot -Tpng -o test.png
      $ file test.png
      test.png: PNG image, 480 x 347, 8-bit/color RGBA, non-interlace
      

      你的系统是什么?

      【讨论】:

        【解决方案3】:

        没有什么明显的 - 那些对我来说“只是工作”,但你会错过一些图像格式的帮助库吗?

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2021-01-05
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多