After giving the command "display img.jpg", flipping the image and quitting, I get
display: magick/list.c:447: DestroyImageList: Assertion `images->signature == 0xabacadabUL' failed.
Aborted (core dumped)
Looking what happens, I see that utilities/display.c calls MagickCommandGenesis(...,DisplayImageCommand,...)
and this never returns. Indeed, wand/display.c:DisplayImageCommand() calls DestroyImageList() on something that was
destroyed already and aborts. Of the Transform commands Crop, Chop, Flip, Flop, Rotate, ..., the first (Crop) calls
XCropImage(...,*image,...) and does not change the value of *image, but Flip, Flop, RotateLeft/Right do things
like *image=DestroyImage(*image); *image=flip_image; so that *image is destroyed. However, DisplayImageCommand()
remembered the old location of *image in image_list and tries to destroy it again.
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.
2 posts • Page 1 of 1