Memory allocation failed 6.3.5-4
Posted: 2007-07-31T01:13:49-07:00
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).
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).