Re: Assertion failure reading possibly corrupt JPEG2000 file

Alan Fry <[email protected]> Wed, 24 Mar 2010 15:26:51 +0000
Newsgroups gmane.comp.video.image-magick.bugs
Message-ID <[email protected]>
On 24 Mar 2010, at 14:42, Steve Madsen wrote:

> While running "identify" on http://lightyearsoftware.com/image.jp2,  
> I see the following on Solaris i386 (uname -a: SunOS xxx 5.11 snv_89  
> i86pc i386 i86pc; ImageMagick 6.6.0-8, Jasper 1.900.1):
>
> Assertion failed: dec->numcomps == 3, file jpc_dec.c, line 1077,  
> function jpc_dec_tiledecode
> Abort (core dumped)

On Intel MacPro 10.5.8 ImageMagick 6.3.3 I get this error:

jpc_dec.c:1080: failed assertion `dec->numcomps == 3'
Abort trap

Image opens in Preview and GraphicConverter, 512x512, 72,72 ppi.  
Image, as you say, is very blocky.

Alan Fry

>
> On Mac OS X 10.6.2 (current ImageMagick and libraries from  
> MacPorts), for the same image:
>
> identify: MissingImageChannel `image.jp2' @ error/jp2.c/ReadJP2Image/ 
> 413.
>
> OS X Preview is able to open the file and display something, though  
> it reports dimensions of 512x512 and yet is very blocky. It makes me  
> think the image stream is corrupted midway.
>
> This sounds very similar to http://studio.imagemagick.org/pipermail/magick-bugs/2009-June/003251.html 
> , but that report didn't include platform information. Given my  
> mixed results, platform is important.
>
> -- 
> Steve Madsen <[email protected]>
> Light Year Software, LLC  http://lightyearsoftware.com
>
>
>
>
> _______________________________________________
> Magick-bugs mailing list
> [email protected]
> http://studio.imagemagick.org/mailman/listinfo/magick-bugs