Page 1 of 1

Memory allocation failed 6.3.5-4

Posted: 2007-07-31T01:13:49-07:00
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).

Re: Memory allocation failed 6.3.5-4

Posted: 2007-07-31T07:11:45-07:00
by magick
Can you post a URL to your image.tif so we can download it and attempt to reproduce the problem?

Re: Memory allocation failed 6.3.5-4

Posted: 2007-08-02T03:30:58-07:00
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.

Re: Memory allocation failed 6.3.5-4

Posted: 2007-08-09T00:42:53-07:00
by jka
ill try to downgrade my libtiff (3.8.2-7) when i find time this week.
you also want some traces ?

Re: Memory allocation failed 6.3.5-4

Posted: 2018-04-13T04:54:09-07:00
by szekelygobe
Can you help me to downgrade the libtiff (on mac).