magick/cache.c:1203: AcquireNexusPixels:

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
gothmog

magick/cache.c:1203: AcquireNexusPixels:

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

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

Post 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?
gothmog

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

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

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

Post by magick »

We tried your command with the latest ImageMagick release 6.3.7-0 and it ran without complaint.
gothmog

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

Post by gothmog »

Ok, I will download the 6.3.7 release.

Thanks.
gothmog

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

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

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

Post 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.
gothmog

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

Post 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.
Post Reply