From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mcv1outg.rz.uni-leipzig.de (mcv1outg.rz.uni-leipzig.de [139.18.1.193]) by sourceware.org (Postfix) with ESMTPS id 2BF73385841D for ; Wed, 14 Sep 2022 14:31:32 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2BF73385841D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=uni-leipzig.de Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=izbi.uni-leipzig.de Received: from v1.rz.uni-leipzig.de (v1.rz.uni-leipzig.de [139.18.1.26]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by mcv1outg.rz.uni-leipzig.de (Postfix) with ESMTPS id 4MSN7Q5LbHz11G1 for ; Wed, 14 Sep 2022 16:31:30 +0200 (CEST) Received: from server1.rz.uni-leipzig.de (server1.rz.uni-leipzig.de [139.18.1.1]) by v1.rz.uni-leipzig.de (Postfix) with ESMTPS id B657420990 for ; Wed, 14 Sep 2022 16:31:30 +0200 (CEST) Received: from FIZI-LE-062.izi.fraunhofer.de (dfngate.izi.fraunhofer.de [195.37.189.73]) by server1.rz.uni-leipzig.de (Postfix) with ESMTPSA id 7152794002 for ; Wed, 14 Sep 2022 16:31:28 +0200 (CEST) Date: Wed, 14 Sep 2022 16:31:28 +0200 From: Ulf-Dietrich Braumann To: cygwin@cygwin.com Subject: ImageMagick 7.0.10-27 crashes when handling jp2 Message-ID: User-Agent: Alpine 2.22 (WNT 394 2020-01-19) Organization: "http://www.uni-leipzig.de" MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT X-Rspamd-UID: fb1f78 X-ExSBR-Direction: Incoming X-Rspamd-Score: 0.00 X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,KAM_DMARC_STATUS,KAM_NUMSUBJECT,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi, I have noticed that my ImageMagick (installed via the Net Release Setup Program version 2.919 from an official download site) reproducibly crashes when generating or converting or displaying or comparing or identifying any JPEG-2000 files: $magick input.png output_magick.jp2 Abort (core dumped) I instead have used OpenJPEG 2.1.1 (own build): $opj_compress -i input.png -o output_openjpeg.jp2 That cannot be displayed: $display output_openjpeg.jp2 Abort (core dumped) It also cannot be compared: $compare -metric ssim output_openjpeg.jp2 input.png null: Abort (core dumped) $convert output_openjpeg.jp2 output.png Abort (core dumped) $identify output_openjpeg.jp2 Abort (core dumped) However, I am sure that the file output_openjpeg.jp2 is a valid JPEG-2000 file, as e.g. XnView has no problem to display it. Here the version information: $magick -version Version: ImageMagick 7.0.10-27 Q16 x86_64 2021-02-07 https://imagemagick.org Copyright: © 1999-2020 ImageMagick Studio LLC License: https://imagemagick.org/script/license.php Features: Cipher DPC HDRI OpenMP(4.5) Delegates (built-in): bzlib cairo djvu fftw fontconfig fpx freetype gslib gvc jbig jng jp2 jpeg lcms lqr lzma pangocairo png ps raqm raw rsvg tiff webp x xml zlib Can anybody check if ImageMagick behaves similarly odd handling JPEG-2000 on other Cygwin installations? I did a cygcheck and could not find errors, in particular none concerning ImageMagick. Please note that ImageMagick has identic problems using a JPEG-2000 test file generated using jasper 2.0.14 (official Cygwin setup): $jasper < input.ppm --output-format jp2 > output_jasper.jp2 $identify output_jasper.jp2 Abort (core dumped) And so on ... Thanks a lot - UD