Empty SVG nodes non-deterministically cause convert to hang
Posted: 2014-07-09T22:00:50-07:00
If I run the following:
convert test.svg -colors 5 -depth 8 -format "%c" histogram:info:
most of the time it completes perfectly, but about 20% of the time, it will hang indefinitely.
Here is the file I'm testing with
https://drive.google.com/file/d/0BwTtDg ... sp=sharing
This is the version of ImageMagick I'm running
Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-05-12 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl lzma png xml zlib
This is on OS X 10.9.3
The problem seems to be with paths or shapes that don't actually render anything, like:
<g>
<path d="M20.4,18"/>
</g>
and
<g>
<polygon points="24,15 24,15 24,15 "/>
</g>
Removing things like this fixes it.
Here's the fixed file that doesn't have any problem:
https://drive.google.com/file/d/0BwTtDg ... sp=sharing
Is there an underlying ImageMagick bug that can be fixed?
convert test.svg -colors 5 -depth 8 -format "%c" histogram:info:
most of the time it completes perfectly, but about 20% of the time, it will hang indefinitely.
Here is the file I'm testing with
https://drive.google.com/file/d/0BwTtDg ... sp=sharing
This is the version of ImageMagick I'm running
Version: ImageMagick 6.8.9-1 Q16 x86_64 2014-05-12 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2014 ImageMagick Studio LLC
Features: DPC Modules
Delegates: bzlib freetype jng jpeg ltdl lzma png xml zlib
This is on OS X 10.9.3
The problem seems to be with paths or shapes that don't actually render anything, like:
<g>
<path d="M20.4,18"/>
</g>
and
<g>
<polygon points="24,15 24,15 24,15 "/>
</g>
Removing things like this fixes it.
Here's the fixed file that doesn't have any problem:
https://drive.google.com/file/d/0BwTtDg ... sp=sharing
Is there an underlying ImageMagick bug that can be fixed?