Page 1 of 1

Problem: Memory allocation failed, wrong disk resource

Posted: 2008-01-17T02:49:03-07:00
by hdv
Hi,

i have a problem converting some multi scene tiff to pdf.

Example:
convert pdfConv1.tiff test1.pdf
delivers:
convert: Memory allocation failed `test1.pdf'

pdfConv1.tiff is a 140K TIFF, resolution 1728x1110 with 9 scenes. On other tiff around this size and larger the same error occurs. Smaller tiffs are no problem. On other systems with imagemagick (same IM version) its no problem to convert the tiffs.
With
convert -list resource

i get:
File Area Memory Map Disk
------------------------------------------------
768 1006.0mb 1.96gb 3.93gb -1.07374e+09

The disk-size must be wrong, but even if i set
MAGICK_DISK_LIMIT to larger size the error still occurs.

I guess imagemagick is somehow misconfigured on this specific system.
Any help would be appreciated.

System: Dual Xeon 2.66GHz, 2GB Mem., Debian etch
IM Version: ImageMagick 6.2.4 02/10/07 Q16

Thanks in advance,
hdv

Re: Problem: Memory allocation failed, wrong disk resource

Posted: 2008-01-17T07:22:50-07:00
by magick
ImageMagick takes precautions to not consume all your memory resources, but the TIFF delegate library may not. Try adding '-limit memory 1 -limit map 1' to your command line and see if that helps. If that fails try upgrading to the latest release of ImageMagick. If that fails the problem may very well be the TIFF library trying and failing to allocate a large pixel buffer. Use the 'tiffinfo' command and post the results of the command here.

Re: Problem: Memory allocation failed, wrong disk resource

Posted: 2008-01-23T01:32:39-07:00
by hdv
Same error with '-limit memory 1 -limit map 1'

Update to latest release isn't possible at the moment due to sysadmin concerns.

Meantime workaround:
convert pdfConv1.tiff gif:- | convert gif:- test1.pdf

Seems only to be a problem when converting directly to pdf.

hdv