Subject: bug#65441: closed (Re: bug#65441: leptonica 1.83.1 ioformats_reg test failure)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 24 Feb 2024 10:29:02 +0000

Your bug report

#65441: leptonica 1.83.1 ioformats_reg test failure

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
65441: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=65441
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#65441: leptonica 1.83.1 ioformats_reg test failure
From: Guillaume Le Vaillant <[email-masked]>
To: Ahmad Draidi <[email-masked]>
Cc: [email-masked]
Date: Sat, 24 Feb 2024 10:26:43 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Fixed in df5653adcbd1f9799f810f46d514b2ca4112af97.
Closing.

Subject: leptonica 1.83.1 ioformats_reg test failure
From: Maxim Cournoyer <[email-masked]>
To: bug-guix <[email-masked]>
Date: Mon, 21 Aug 2023 15:44:01 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello,

This package's test suite sometimes fail; here's the test output for the
failed test:

--8<---------------cut here---------------start------------->8---
////////////////////////////////////////////////
////////////////   ioformats_reg   ///////////////
////////////////////////////////////////////////
leptonica-1.83.1 : libgif 5.2.1 : libjpeg 6b (libjpeg-turbo 2.1.4) : libpng 1.6.37 : libtiff 4.4.0 : zlib 1.2.13 : libwebp 1.2.4 : libopenjp2 2.5.0
Test bmp 1 bpp file:
Info in pixReadMemBmp: removing opaque cmap from 1 bpp
Info in ioFormatTest: write/read bmp
Info in pixReadMemBmp: removing opaque cmap from 1 bpp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read g4 compressed tiff
Info in ioFormatTest: write/read g3 compressed tiff
Info in ioFormatTest: write/read rle compressed tiff
Info in ioFormatTest: write/read packbits compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   1.789
Info in ioFormatTest: All formats read and written OK!

Test other 1 bpp file:
Info in ioFormatTest: write/read bmp
Info in pixReadMemBmp: removing opaque cmap from 1 bpp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read g4 compressed tiff
Info in ioFormatTest: write/read g3 compressed tiff
Info in ioFormatTest: write/read rle compressed tiff
Info in ioFormatTest: write/read packbits compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   1.632
Info in ioFormatTest: All formats read and written OK!

Test 2 bpp file:
Info in ioFormatTest: write/read bmp
Warning in pixWriteMemBmp: 2 bpp files can't be read; converting to 8 bpp
Error in findFileFormatStream: truncated file
Error in pixReadStream: Unknown format: no pix returned
Error in pixRead: pix not read
Error in pixEqualWithAlpha: pix1 and pix2 not both defined
Info in ioFormatTest:    **** bad bmp image: d = 2 ****
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   1.608

Test 2 bpp file with cmap:
Info in ioFormatTest: write/read bmp
Warning in pixWriteMemBmp: 2 bpp files can't be read; converting to 8 bpp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   2.770
Info in ioFormatTest: All formats read and written OK!

Test 4 bpp file:
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   1.841
Info in ioFormatTest: All formats read and written OK!

Test 4 bpp file with cmap:
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   3.486
Info in ioFormatTest: All formats read and written OK!

Test 8 bpp grayscale file with cmap:
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in cmapEqual: colormap sizes are different
Info in ioFormatTest: write/read lzw compressed tiff
Info in cmapEqual: colormap sizes are different
Info in ioFormatTest: write/read zip compressed tiff
Info in cmapEqual: colormap sizes are different
Info in ioFormatTest: write/read jpeg compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in cmapEqual: colormap sizes are different
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   2.535
Info in ioFormatTest: All formats read and written OK!

Test 8 bpp color file with cmap:
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in cmapEqual: colormap sizes are different
Info in ioFormatTest: write/read lzw compressed tiff
Info in cmapEqual: colormap sizes are different
Info in ioFormatTest: write/read zip compressed tiff
Info in cmapEqual: colormap sizes are different
Info in ioFormatTest: write/read jpeg compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in cmapEqual: colormap sizes are different
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
Error in pixReadStreamJp2k: failed to read the header
Error in pixReadStream: jp2: no pix returned
Error in pixRead: pix not read
Error in pixCompareRGB: pix2 not defined or not ew bpp
diff =   0.000
Info in ioFormatTest: All formats read and written OK!

Test 8 bpp file without cmap:
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read jpeg compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   3.395
Info in ioFormatTest: All formats read and written OK!

Test 16 bpp file:
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
Error in pixReadStreamJp2k: failed to read the header
Error in pixReadStream: jp2: no pix returned
Error in pixRead: pix not read
Error in pixCompareRGB: pix2 not defined or not ew bpp
diff =   0.000
Info in ioFormatTest: All formats read and written OK!

Test 32 bpp files:
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in pixEqualWithAlpha: no colormaps, pix depths unequal, and one of them is RGB
Info in ioFormatTest:    **** bad png image: d = 32 ****
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read jpeg compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
diff =   3.773
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read jpeg compressed tiff
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read webp
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
Info in pixCompareRGB: Images are pixel-wise identical
diff =   0.000
Info in ioFormatTest: All formats read and written OK!

Test spp = 1, bpp = 1, cmap with alpha file:
Info in pixReadStreamPng: converting (cmap + alpha) ==> RGBA
Info in pixReadStreamPng: converting 1 bpp cmap with alpha ==> RGBA
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read jpeg compressed tiff
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in ioFormatTest: write/read webp
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
Error in pixReadStreamJp2k: failed to read the header
Error in pixReadStream: jp2: no pix returned
Error in pixRead: pix not read
Error in pixCompareRGB: pix2 not defined or not ew bpp
diff =   0.000
Info in ioFormatTest: All formats read and written OK!

Test spp = 1, bpp = 8, cmap with alpha file:
Info in pixReadStreamPng: converting (cmap + alpha) ==> RGBA
Info in pixReadStreamPng: converting 8 bpp cmap with alpha ==> RGBA
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read jpeg compressed tiff
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read webp
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
Info in pixCompareRGB: Images are pixel-wise identical
diff =   0.000
Info in ioFormatTest: All formats read and written OK!

Test spp = 1, fully transparent with alpha file:
Info in pixReadStreamPng: transparency, 1 spp, no colormap, no transparency array: convention is fully transparent image
Info in pixReadStreamPng: converting (fully transparent 1 spp) ==> RGBA
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read jpeg compressed tiff
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read pnm
Error in pixReadStreamPnm: read error type 6
Error in pixReadStream: pnm: no pix returned
Error in pixRead: pix not read
Error in pixEqualWithAlpha: pix1 and pix2 not both defined
Info in ioFormatTest:    **** bad pnm image: d = 32 ****
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read webp
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
Info in pixCompareRGB: Images are pixel-wise identical
diff =   0.000

Test spp = 2, gray with alpha file:
Info in pixReadStreamPng: converting (gray + alpha) ==> RGBA
Info in ioFormatTest: write/read bmp
Info in ioFormatTest: write/read png
Info in ioFormatTest: write/read uncompressed tiff
Info in ioFormatTest: write/read lzw compressed tiff
Info in ioFormatTest: write/read zip compressed tiff
Info in ioFormatTest: write/read jpeg compressed tiff
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read pnm
Info in ioFormatTest: write/read gif
Info in ioFormatTest: write/read jpeg
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read webp
Info in pixCompareRGB: Images are pixel-wise identical
Info in ioFormatTest: write/read jp2k
Warning in fgetJp2kResolution: image resolution not found
Info in pixCompareRGB: Images are pixel-wise identical
diff =   0.000
Info in ioFormatTest: All formats read and written OK!

  ******* Failure on at least one i/o format test ******
--8<---------------cut here---------------end--------------->8---

I'm not sure from the above output what is wrong exactly.  To be investigated.

-- 
Thanks,
Maxim