1

Windows 7 でGraphViz 2.28 (現在の安定版)を使用していますが、次のコードで Graphviz/Dot がクラッシュします。

digraph G {
ranksep = 1.0; size = "10,10";
{
    node [shape = plaintext, fontsize = 20];
    GAWM1 -> GAWM2 -> 0;
}

node [shape = box];
{rank = same;0;wx1;wx2;rx1;}

wx1 -> wx2;
wx2 -> rx1;
wx1 -> rx1[color = blue];

subgraph struct
{
    node [shape = record];
    rx11 [shape = record, label = "rx1 | [x=[wx2]]"];
}
{rank = same; GAWM1; "rx11";}

// W'WR Order:
wx2 -> wx1[style = dashed, color = red, label = "1"]; }

この例でいくつかの実験を行うと、事態は奇妙になります。

  1. 最後のステートメント「wx2 -> wx1[style = dashed, color = red, label = "1"];」のみの場合にうまく機能します。削除されます。
  2. 8行目「{rank = same;0;wx1;wx2;rx1;}」のみを削除するとうまくいきます
  3. 最後のステートメントのラベル (つまり、", label = "1"")のみが削除された場合にもうまく機能します。

問題をGraphviz Issue Trackerに報告しましたが、まだ返信がありません。原因究明にご協力いただけないでしょうか。

ありがとうございました。

4

1 に答える 1

0

スクリプトの次のバリエーションはクラッシュしません。

digraph G {
ranksep = 1.0; size = "10,10";
{
    node [shape = plaintext, fontsize = 20];
    GAWM1 -> GAWM2 -> 0;
}
node [shape = box];
{rank = same;0;wx1;wx2;rx1;}
wx1 -> wx2;
wx2 -> rx1;
wx1 -> rx1[color = blue];
subgraph struct
{
    node [shape = record];
    rx11 [shape = record, label = "rx1 | [x=[wx2]]"];
}
{rank = same; GAWM1; "rx11";}
// W'WR Order:
//wx2 -> wx1[style = dashed, color = red, label = "1"]; 
wx2 -> wx1 [style=dashed, color=red];
}

labelの間の短辺の がバグのように見えます。wx1wx2

于 2013-01-14T13:30:56.237 に答える