Item8710: Graphviz dot 2.26.0 returns rc=1 if warnings generated

pencil
Priority: Normal
Current State: Closed
Released In:
Target Release: n/a
Applies To: Extension
Component: DirectedGraphPlugin
Branches:
Reported By: BryanThale
Waiting For: Main.BryanThale
Last Change By: BryanThale
Graphviz dot 2.26.0 seems to have changed the return code value being returned when non-fatal warnings are generated during rendering. 2.24 returned 0 but 2.26 returns 1.

This causes the DirectedGraphPlugin.pl helper script to fail and the DirectedGraphPlugin itself to report an error and not attach the generated graphs to the topic even though they were generated in the working directory.

The work-around I've come up with is to have DirectedGraphPlugin.pl check if the expected output files were actually generated and swallow the RC=1 in that case.

-- BryanThale - 15 Mar 2010

if you have a fix available, please feel free to check it in to svn, or post it here. The output file format is unpredictable. If you have an example DOT graph that generates errors I could use for testing that would be helpful. I might also return the warnings to the plugin and attach them to the topic along with any generated output files.

-- GeorgeClark - 17 Mar 2010

Fix coming.

These are the files produced in working/tmp when processing the anti-aliased Simple LAN setup (custom icons / shapefiles) example using dot 2.26:

There is also a .ps file produced but it is quite a bit larger than the other files. I can upload that too if you think it is worth looking at.

Anyway, the important thing shown is that the png image is correctly produced even though dot returned a non-zero return code. Dot 2.24 behaved differently and returned 0 in this same circumstance.

-- BryanThale - 21 Mar 2010

Release 1.8 Version 6986 (2010-03-29) released

-- BryanThale - 02 Apr 2010
 

ItemTemplate edit

Summary Graphviz dot 2.26.0 returns rc=1 if warnings generated
ReportedBy BryanThale
Codebase 1.0.9
SVN Range 6693
AppliesTo Extension
Component DirectedGraphPlugin
Priority Normal
CurrentState Closed
WaitingFor BryanThale
Checkins DirectedGraphPlugin:721400ea2264 DirectedGraphPlugin:0cc43796dbf4
TargetRelease n/a
ReleasedIn
I Attachment Action Size Date Who Comment
DGPAwATwcpJdw.pngpng DGPAwATwcpJdw.png manage 66 K 21 Mar 2010 - 04:13 BryanThale Image file produced by dot 2.26
DGPSBRaoRwx_x.dotdot DGPSBRaoRwx_x.dot manage 1 K 21 Mar 2010 - 04:12 BryanThale Dot output file for anitaliased Simple LAN setup (custom icons / shapefiles) example
DiGraphPluginRunl0olX0t1gb.loglog DiGraphPluginRunl0olX0t1gb.log manage 913 bytes 21 Mar 2010 - 04:04 BryanThale DirectedGraphPlugin.pl log file using dot 2.26
DiGraphPluginszth8L9OO4.dotdot DiGraphPluginszth8L9OO4.dot manage 516 bytes 21 Mar 2010 - 04:09 BryanThale Dot input file from anitaliased Simple LAN setup (custom icons / shapefiles) example
DiGraphPluginszth8L9OO4.dot.errerr DiGraphPluginszth8L9OO4.dot.err manage 2 K 21 Mar 2010 - 04:10 BryanThale Verbose errorlog output from dot 2.26
Topic revision: r10 - 02 Apr 2010, BryanThale
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy