Segmentation fault when attempting to resize large picture

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
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

We tried your command with ImageMagick 6.2.7-7 Beta on a Fedora Core 5 system and valgrind found no complaints or memory leaks.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Add -limit memory 32 -limit map 64 to your command line (before your first image) and see if that helps.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

Ok, add -debug cache to your command line. If that does not reveal anything interesting try -debug all or -debug trace.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Post by magick »

You do not have enough free space in your /tmp directory. Find a path that has plenty of freespace (several gigabytes) and set the MAGICK_TMPDIR environment variable. Assume /data is writeable and has 10GB of free space:
  • export MAGICK_TMPDIR /data
    /opt/imagemagick/6.2.7-beta8/bin/convert srtm_ramp2.world.21600x10800.jpg -resize 2160x1080 srtm_ramp2.world.2160x1080.jpg
Post Reply