[Magick-bugs] ASSERT when trying to proccess a j2k file.

Khyota dnbyena at gmail.com
Mon Jun 15 14:13:38 PDT 2009


Running gentoo linux with imagemagick-6.5.1.0. when trying to run
identify or convert SOME .j2k files i get:

'jpc_dec.c:1077: jpc_dec_tiledecode: Assertion `dec->numcomps == 3'
failed.'.

openjpeg's j2k_to_image program processes them all just fine, imaegmagick
seems to fail on the more complex images.

An example of one that works produces:JPC 512x512 512x512+0+0 16-bit
DirectClass 5.92kb

Heres a backtrace log and an example of an image that fails and one that
passes, the tga's are the
resulting images from j2k_to_image. http://filebin.ca/fakqzk/textures.zip

Starting program: /usr/bin/identify fail.j2k
[Thread debugging using libthread_db enabled]
[New Thread 0x7f86f5e8c780 (LWP 10380)]

Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7f86f5e8c780 (LWP 10380)]
0x00007f86f4fe5225 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64    ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
    in ../nptl/sysdeps/unix/sysv/linux/raise.c
#0  0x00007f86f4fe5225 in *__GI_raise (sig=<value optimized out>) at
../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00007f86f4fe6743 in *__GI_abort () at abort.c:88
#2  0x00007f86f4fde0a9 in *__GI___assert_fail (assertion=0x7f86f24472e7
"dec->numcomps == 3", file=0x7f86f24472b0 "jpc_dec.c", line=1077,
    function=0x7f86f24473f0 "jpc_dec_tiledecode") at assert.c:78
#3  0x00007f86f2422d6a in jpc_dec_tiledecode (dec=0x62f880, tile=0x62fb70)
at jpc_dec.c:1077
#4  0x00007f86f242401a in jpc_dec_process_sod (dec=0x62f880, ms=<value
optimized out>) at jpc_dec.c:620
#5  0x00007f86f2424fbe in jpc_decode (in=0x62f810, optstr=<value optimized
out>) at jpc_dec.c:390
#6  0x00007f86f2412d5d in jas_image_decode (in=0x62f810, fmt=<value
optimized out>, optstr=0x0) at jas_image.c:372
#7  0x00007f86f265c172 in ReadJP2Image (image_info=0x61e200,
exception=0x603050) at coders/jp2.c:385
#8  0x00007f86f58db4e0 in ReadImage (image_info=0x61a060,
exception=0x603050) at magick/constitute.c:516
#9  0x00007f86f59a7e65 in ReadStream (image_info=0x615ec0,
stream=0x7f86f58da620 <PingStream>, exception=0x603050) at
magick/stream.c:948
#10 0x00007f86f58dc47d in PingImage (image_info=0x611d20,
exception=0x603050) at magick/constitute.c:244
#11 0x00007f86f58dc797 in PingImages (image_info=0x611d20,
exception=0x603050) at magick/constitute.c:372
#12 0x00007f86f55e31b4 in IdentifyImageCommand (image_info=0x60db80, argc=2,
argv=0x6067d0, metadata=0x7ffffdead588, exception=0x603050) at
wand/identify.c:298
#13 0x0000000000401053 in main (argc=2, argv=0x7ffffdead698) at
utilities/identify.c:119


Thanks!


More information about the Magick-bugs mailing list