Using shapefile with Windows MSBuild Debug builds silently fails
Steps to reproduce
- Download and unzip e.g. https://www2.graphviz.org/Packages/stable/windows/10/msbuild/Debug/Win32/graphviz-2.44.1-win32.zip
- Clone the graphviz repository and
cd graphviz\rtest
- Run
<unzip-location>\Graphviz\bin\dot -Kdot -Tps -o user_shapes_dot.ps user_shapes.gv
Where user_shapes.gv is:
digraph G {
n [label="", shapefile="graphs/jcr.gif"]
x [width=3, height=3, label="", shapefile="graphs/jcr.gif"]
m -> n -> x
}
- Run
echo %errorlevel%
- Run
dir user_shapes_dot.ps
Expected Behaviour
Zero exit status and non-empty PostScript file as with the Release build:
C:\Users\magja\graphviz\rtest>echo %errorlevel%
0
C:\Users\magja\graphviz\rtest>dir user_shapes_dot.ps
Volume in drive C is Win7Pro
Volume Serial Number is 168D-7220
Directory of C:\Users\magja\graphviz\rtest
2020-08-02 09:01 123 073 user_shapes_dot.ps
1 File(s) 123 073 bytes
0 Dir(s) 47 478 906 880 bytes free
Actual Behaviour
Non-zero exit status and empty PostScript file.
C:\Users\magja\graphviz\rtest>echo %errorlevel%
-1073740791
C:\Users\magja\graphviz\rtest>dir user_shapes_dot.ps
Volume in drive C is Win7Pro
Volume Serial Number is 168D-7220
Directory of C:\Users\magja\graphviz\rtest
2020-08-02 09:03 0 user_shapes_dot.ps
1 File(s) 0 bytes
0 Dir(s) 47 477 399 552 bytes free
OS Version
Windows 10
Graphviz Version
dot - graphviz version 2.44.1 (20200629.0800)
Additional info
When run under MinGW, the exit status is 127
:
~/graphviz/rtest$ ~/Downloads/graphviz-2.44.1-msbuild-win32-debug/Graphviz/bin/dot -Kdot -Tps -o user_shapes_dot.ps graphs/user_shapes.gv
~/graphviz/rtest$ echo $?
127
The problem can also be seen indirectly in this pipeline
Edited by Magnus Jacobsson