Item8710: Graphviz dot 2.26.0 returns rc=1 if warnings generated
Current State: Closed
Target Release: n/a
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.
- 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.
- 17 Mar 2010
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.
- 21 Mar 2010
Release 1.8 Version 6986 (2010-03-29) released
- 02 Apr 2010