Page 1 of 1

Aborting MagickGetImagesBlob

Posted: 2013-06-28T13:34:11-07:00
by albeebe
My question is, how can i safely abort the MagickGetImagesBlob request.

I'm using the iOS port to generate animated GIFs. I create a background thread and add all the frames then i call MagickGetImagesBlob to get the resulting GIF. It can take up to 10 seconds for MagickGetImagesBlob to return the GIF so I would like the ability to halt execution of MagickGetImagesBlob and safely move on.

I have i tried DestroyMagickWand while its in the process of executing MagickGetImagesBlob which immediately crashes the app with the message "Assertion failed: (image->signature == MagickSignature), function SyncImage, file magick/image.c, line 3412" SIGABRT. I was hoping i could catch that and move on, but i have not found a way to recover from that. Any ideas?

Re: Aborting MagickGetImagesBlob

Posted: 2013-06-28T18:30:55-07:00
by magick
MagickGetImagesBlob() is not interruptible. If you kill the thread, it will likely create either a temporary file or memory leak.