Page 1 of 1

magick/cache.c:1203: AcquireNexusPixels:

Posted: 2007-11-17T06:38:23-07:00
by gothmog
Hi, I'm currently working in some scripts for transitions between two images, and I got one strange error during the execution of one of them.

The exact instruction and values are this:

Code: Select all

convert 008.png -mattecolor transparent -virtual-pixel transparent -background none -distort perspective "0,0,0,0 0,540,100,110 720,540,620,110 720,0,720,0" z.png
If I change one coordinate, which one no cares, it works ok, but with that exact values, returns the following error:

Code: Select all

convert: magick/cache.c:1203: AcquireNexusPixels: Assertion `nexus_info->length == (MagickSizeType) ((size_t) nexus_info->length)' failed.
I tried with other images, formats (jpg and png) and original sizes, and the problem happens too, so the problem is not the image.

Using version 6.3.6 11/08/07, compiled by myself.

Code: Select all

# convert -version
Version: ImageMagick 6.3.6 11/08/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2007 ImageMagick Studio LLC

Re: magick/cache.c:1203: AcquireNexusPixels:

Posted: 2007-11-17T07:49:59-07:00
by magick
We tried your command with ImageMagick 6.3.7-0, the current release, and could not reproduce the problem. The problem could be specific to your image. Can you post a URL to your 008.png image?

Re: magick/cache.c:1203: AcquireNexusPixels:

Posted: 2007-11-17T10:50:48-07:00
by gothmog
Example images which provoke error:

jpg:

http://img167.imagevenue.com/img.php?im ... 1093lo.jpg
http://img185.imagevenue.com/img.php?im ... _112lo.jpg

png (the same images, converted with ImageMagick):

http://img125.imageshack.us/img125/5610/005kb2.png
http://img125.imageshack.us/img125/6458/004hx8.png

Also the following sequence causes the error:

Code: Select all

convert -size 720x576 gradient: w.png
convert w.png -mattecolor transparent -virtual-pixel transparent -background none -distort perspective "0,0,0,0 0,540,100,110 720,540,620,110 720,0,720,0" z.png

Re: magick/cache.c:1203: AcquireNexusPixels:

Posted: 2007-11-17T12:23:10-07:00
by magick
We tried your command with the latest ImageMagick release 6.3.7-0 and it ran without complaint.

Re: magick/cache.c:1203: AcquireNexusPixels:

Posted: 2007-11-18T07:11:06-07:00
by gothmog
Ok, I will download the 6.3.7 release.

Thanks.

Re: magick/cache.c:1203: AcquireNexusPixels:

Posted: 2007-12-06T12:19:52-07:00
by gothmog
Ok, it happened again with version 6.3.7, although with distinct coordinates.

(tested with 6.3.7-2)

Code: Select all

convert -size 720x576 xc:black z.png

convert z.png -mattecolor transparent -virtual-pixel transparent -background none -distort perspective "0,0,0,0 0,576,0,576 720,576,150,456 720,0,150,120" out.png

Re: magick/cache.c:1203: AcquireNexusPixels:

Posted: 2007-12-06T12:39:25-07:00
by magick
We can reproduce the problem you posted and will have a fix in ImageMagick 6.3.7-3 Beta within a day or two. Thanks.

Re: magick/cache.c:1203: AcquireNexusPixels:

Posted: 2007-12-29T08:02:30-07:00
by gothmog
It fails again, although with differente error message:

Code: Select all

$ convert -size 720x576 xc:red -mattecolor transparent -virtual-pixel transparent -background none -distort perspective "0,0,0,0 0,576,0,576 720,576,150,456 720,0,150,120" z.png
convert: Memory allocation failed `No such file or directory'.
Version: 6.3.7-8

Code: Select all

$ convert --version
Version: ImageMagick 6.3.7 12/29/07 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2008 ImageMagick Studio LLC
EDIT: I detected the compliance with 6.3.7-4 and then updated to last release, so it doesn't look like a regression.