Segmentation fault (core dumped)

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
jono1515
Posts: 3
Joined: 2013-08-15T23:45:44-07:00
Authentication code: 6789

Segmentation fault (core dumped)

Post by jono1515 »

I am trying to run

Code: Select all

convert --sequence-max *JPG max.jpg
on a sequence of star trail images. After a fairly long delay I get this Segmentation fault (core dumped) error.

I've tried running this on Imagemagick 6.8.6-8 that I compiled from source on my iBook G4 (ppc) running Xubuntu 12.04 and also on Imagemagick 6.6.9-7 that I installed through apt-get on my HP DL360 (3rd gen, with dual Intel Xeon 2.80GHz cpu's) server running Ubuntu 12.04.

I tried on the iBook first and figured this was just some sort of problem with trying to do this on an old power pc processor on a version of imagemagick I built from source, but when it wouldn't run on my DL360 server I suspected something larger was going on. The best I could figure out from a google search was that this has something to do with multi-threading or something... but I couldn't figure out what the solution is. Maybe some ./configure options I could do before compiling?

I've run this same command in the past on my macbook pro (which I no longer have) and had it work without a hitch. Unfortunately I don't know what version of ImageMagick I had installed on there, so that's not too much help.

Does anyone have any idea what I can do to make this work? Thanks for any help!

Jono
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Segmentation fault (core dumped)

Post by snibgo »

I haven't come across "--sequence-max", and it doesn't work on ImageMagick 6.8.6-0 on Windows, and isn't documented. Perhaps you mean "-evaluate-sequence max".

Perhaps you are running out of memory. How many images, and how many pixels in each one?
snibgo's IM pages: im.snibgo.com
jono1515
Posts: 3
Joined: 2013-08-15T23:45:44-07:00
Authentication code: 6789

Re: Segmentation fault (core dumped)

Post by jono1515 »

When I read that I thought "oh god, I'm a total idiot" but...
I run

Code: Select all

convert -evaluate-sequence-max *JPG max.jpg
I get this error:

convert: unrecognized option `-evaluate-sequence-max' @ error/convert.c/ConvertImageCommand/1433

When I run

Code: Select all

convert --evaluate-sequence-max *JPG max.jpg
I get the same Sementation fault (core dumped) error as if I just do --sequence-max.

I doubt I'm running out of memory only because I've run this command on larger numbers of files. It is a lot I'm trying to do, but I've done more in the past. The image pixel dimensions are 2048x1536 and I'm running this on about 511 images. I'll try running the operation on a smaller subset of the pictures and see if I get different results.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Segmentation fault (core dumped)

Post by snibgo »

The command would be:

Code: Select all

convert *.JPG -evaluate-sequence max max.jpg
No hyphen between "-evaluate-sequence" and "max", and this comes after the input filename.

At 6 bytes/pixel, you need 9.6 GB for the input images. If you don't have enough RAM, it should use disk. If you run out of disk, it can fall over. It's worth trying for just a couple of images. When that works, increase the number.
snibgo's IM pages: im.snibgo.com
jono1515
Posts: 3
Joined: 2013-08-15T23:45:44-07:00
Authentication code: 6789

Re: Segmentation fault (core dumped)

Post by jono1515 »

Thanks! That's working on the DL360. And on the iBook apparently I didn't have the jpeg delegate included since I built from source. I'm pretty sure once I get that squared away it'd work (in small enough batches) on there too. Thanks for your help!

jono
Post Reply