Memory allocation failed 6.3.5-4

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
jka

Memory allocation failed 6.3.5-4

Post by jka »

i got a problem converting tif to pdf on fc7 (2.6.21-1.3194.fc7 x86_64) . I got the latest ImageMagick i could find (compiled from ImageMagick-6.3.5-4.tar.gz).

convert image.tif image.pdf
convert: Memory allocation failed `image.pdf'

the result image.pdf looks like a pdf but is broken. conversions to gif,tga etc. work.

it seems that some mmap() calls fail , like:
mmap(NULL, 219043336192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = -1 ENOMEM (Cannot allocate memory)

I tested the same conversion on x86 with ImageMagick-6.3.5-4 on some older machine and it works, any hints on what could be wrong on x86_64 ? compared to traces from 32bit the mmap(2) lengths are very different (with same image).
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Memory allocation failed 6.3.5-4

Post by magick »

Can you post a URL to your image.tif so we can download it and attempt to reproduce the problem?
jka

Re: Memory allocation failed 6.3.5-4

Post by jka »

http://www.tec-fax.de/image/001.tif

i noticed that i can convert it to pdf if i convert it from tif to tga first and the tga->pdf.
jka

Re: Memory allocation failed 6.3.5-4

Post by jka »

ill try to downgrade my libtiff (3.8.2-7) when i find time this week.
you also want some traces ?
szekelygobe
Posts: 4
Joined: 2018-04-13T04:37:04-07:00
Authentication code: 1152

Re: Memory allocation failed 6.3.5-4

Post by szekelygobe »

Can you help me to downgrade the libtiff (on mac).
Post Reply