Page 1 of 1

[6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

Posted: 2008-09-21T14:53:31-07:00
by keltia
Hello, I'm using ImageMagick mostly with gallery2 (PHP-based photo gallery) on a FreeBSD 7.0/amd64 (64 bit) machine nder Apache 2.2.9. I recently upgraded my IM up to 6.4.3.6 and tried to create another instance of gallery2. It is hanging everytime whie installing/configuring the IM plugin.I've found that during the installation process, gallery2 uses identify on several files located in its own tree in order to find out which file formats are supported.

I managed to find identify created one or two 4GB sparse files in /var/tmp and tried to fill them hence filling up the partition so quickly that I could not recover from "no space left on device"... I've created a vmware instance to test that to avoid crashing my main machine and managed to find that the probem seem t be with the test.svg file (apparently whether SVG is compiled in the IM instance or not does not seem to matter).

I'm wondering if that could be a 64 bit problem in IM (at least identify). Any other report close to this one?

Code: Select all

-r--r--r--  1 www  www  10220 Aug  5  2005 cmyk.jpg
-r--r--r--  1 www  www    504 Aug  5  2005 test.bmp
-r--r--r--  1 www  www   3141 Aug  5  2005 test.eps
-r--r--r--  1 www  www    232 Aug  5  2005 test.gif
-r--r--r--  1 www  www   1102 Aug  5  2005 test.jp2
-r--r--r--  1 www  www    763 Aug  5  2005 test.jpg
-r--r--r--  1 www  www  30712 Aug  5  2005 test.pdf
-r--r--r--  1 www  www    730 Aug  5  2005 test.png
-r--r--r--  1 www  www  65770 Aug  5  2005 test.psd
-r--r--r--  1 www  www   8033 Aug  5  2005 test.svg
-r--r--r--  1 www  www     54 Jan 12  2006 test.tga
-r--r--r--  1 www  www   2729 Aug  5  2005 test.tif
-r--r--r--  1 www  www    408 Oct 10  2005 test.wmf
-r--r--r--  1 www  www  30585 Aug  5  2005 testProfile.jpg
-r--r--r--  1 www  www   4096 Aug  5  2005 truncated.pcd
IM has been compiled with the following options (specific to the FreeBSD port but should indicate which modules are in)

Code: Select all

# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for ImageMagick-nox11-6.4.3.6
_OPTIONS_READ=ImageMagick-nox11-6.4.3.6
WITHOUT_X11=true
WITHOUT_IMAGEMAGICK_TESTS=true
WITHOUT_IMAGEMAGICK_OPENMP=true
WITH_IMAGEMAGICK_PERL=true
WITHOUT_IMAGEMAGICK_MODULES=true
WITH_IMAGEMAGICK_BZLIB=true
WITH_IMAGEMAGICK_16BIT_PIXEL=true
WITHOUT_IMAGEMAGICK_DJVU=true
WITH_IMAGEMAGICK_LCMS=true
WITHOUT_IMAGEMAGICK_HDRI=true
WITH_IMAGEMAGICK_TTF=true
WITH_IMAGEMAGICK_FONTCONFIG=true
WITH_IMAGEMAGICK_JPEG=true
WITHOUT_IMAGEMAGICK_OPENEXR=true
WITH_IMAGEMAGICK_PNG=true
WITH_IMAGEMAGICK_TIFF=true
WITHOUT_IMAGEMAGICK_FPX=true
WITH_IMAGEMAGICK_JBIG=true
WITH_IMAGEMAGICK_JPEG2000=true
WITH_IMAGEMAGICK_DOT=true
WITHOUT_IMAGEMAGICK_WMF=true
WITHOUT_IMAGEMAGICK_SVG=true
WITH_IMAGEMAGICK_PDF=true
WITHOUT_IMAGEMAGICK_GSLIB=true

Re: [6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

Posted: 2008-09-21T15:09:04-07:00
by magick
ImageMagick can render SVG with the RSVG delegate library or its internal renderer. Type
  • identify -list configure
is rsvg associated with the DELEGATES tag. If so, the problem may be within the RSVG library otherwise MagickCore. Can you post a URL to your SVG image to see if we can reproduce the problem (or send it as a PM).

ImageMagick 6.4.3-7 is out. Does the problem occur when you use it?

Re: [6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

Posted: 2008-09-21T15:18:25-07:00
by keltia
magick wrote:ImageMagick can render SVG with the RSVG delegate library or its internal renderer. Type

identify -list configure

is rsvg associated with the DELEGATES tag. If so, the problem may be within the RSVG library otherwise MagickCore. Can you post a URL to your SVG image to see if we can reproduce the problem (or send it as a PM).

ImageMagick 6.4.3-7 is out. Does the problem occur when you use it?
I'm currently downloading it.

configure shows a with--rsvg=no and svg is not on the DELEGATES line.

The svg file itself can be found here

Thanks

Re: [6.4.3.6] FreeBSD/amd64: identify create 4 GB sparse file in

Posted: 2008-09-21T15:30:49-07:00
by magick
We tried test.svg with ImageMagick 6.4.3-7 with and without the RSVG delegate library and it rendered without complaint.