Number: 1381
Title: Crash with DIA output on WIndows
Submitter: Orlando J. P. Jr.
Date: Wed Jun 25 12:50:36 2008
Subsys: Dot
Version: 2.19
System: x86-Windows-
Severity: major
When I tried to build a ".dot" file to ".dia" file, using Graphviz (graphviz-2.19.20080616.0445.exe), I got the following error:

Activated plugin library: gvplugin_pango.dll
Using textlayout: textlayout:cairo
Activated plugin library: gvplugin_dot_layout.dll
Using layout: dot:dot_layout
Using device: dia:cg
The plugin configuration file:
        C:Arquivos de programasGraphviz2.19Binconfig
                was successfully loaded.
    render      :  cairo dot fig gd map ps svg tk vml vrml xdot
    layout      :  circo dot fdp neato nop nop1 nop2 twopi
    textlayout  :  textlayout
    device      :  canon cmap cmapx cmapx_np dia dot eps fig gd gd2 gif hpgl ima
p imap_np ismap jpe jpeg jpg mif mp pcl pdf pic plain plain-ext png ps ps2 svg s
vgz tk vml vmlz vrml vtx wbmp xdot
    loadimage   :  (lib) gd gd2 gif jpe jpeg jpg png ps svg
fontname: "Times-Roman" resolved to: (ps) "Times New Roman 13.9990234375"
fontname: "Palatino-Italic" resolved to: (ps) "Palatino Linotype Italic 24"
network simplex: 5 nodes 6 edges 0 iter 0.00 sec
mincross: pass 0 iter 0 trying 0 cur_cross 1 best_cross 1
mincross: pass 0 iter 1 trying 1 cur_cross 1 best_cross 1
mincross: pass 0 iter 2 trying 0 cur_cross 0 best_cross 0
mincross test123: 0 crossings, 0.00 secs.
network simplex: 35 nodes 48 edges 11 iter 0.00 sec
routesplines: 7 edges, 43 boxes 0.00 sec
Using device: dia:cg
Error: Error opening compressed output file
The file a.dia was created, but empty.

The command was:

dot -Tdia -o c:tempaa.dia -v

But when I tried using ".gif" (dot -Tgif -o c:tempaa.gif -v I got success.

digraph test123 {
               a -> b -> c;
               a -> {x y};
               b [shape=box];
               c [label="hellonworld",color=green,fontsize=24,
               a -> z [label="hi", weight=100];
               x -> z [label="multi-linenlabel"];
               edge [style=dashed,color=red];
               b -> y;
               {rank=same; b x}
The problem is in the libz that comes with the gtk package we use. It is somehow compiled to not allow gdzopen(). The fix should be to build our own version of libz and to use that.
Owner: *
Status: *