leptonica 1.83.1 ioformats_reg test failure

  • Done
  • quality assurance status badge
Details
3 participants
  • Ahmad Draidi
  • Guillaume Le Vaillant
  • Maxim Cournoyer
Owner
unassigned
Submitted by
Maxim Cournoyer
Severity
normal
Merged with
M
M
Maxim Cournoyer wrote on 21 Aug 2023 21:44
(name . bug-guix)(address . bug-guix@gnu.org)
87edjwcha6.fsf@gmail.com
Hello,

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

Toggle snippet (317 lines)
////////////////////////////////////////////////
//////////////// 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 ******

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

--
Thanks,
Maxim
M
M
Maxim Cournoyer wrote on 2 Sep 2023 04:12
control message for bug #65381
(address . control@debbugs.gnu.org)
877cp91fxp.fsf@gmail.com
merge 65381 65441
quit
A
A
Ahmad Draidi wrote on 15 Feb 13:59 +0100
leptonica 1.83.1 ioformats_reg test failure
(address . 65441@debbugs.gnu.org)
87zfw1hoid.fsf@redscript.org
Greetings,

I looked into this and can see that running tests in parallel causes
random failures. I've seen the same thing on Debian also.

I've sent in a patch series[1] that includes a fix for this.

Thanks,
Ahmad

G
G
Guillaume Le Vaillant wrote on 24 Feb 11:26 +0100
(name . Ahmad Draidi)(address . a.r.draidi@redscript.org)(address . 65441-done@debbugs.gnu.org)
87ttlyjgws.fsf@kitej
Fixed in df5653adcbd1f9799f810f46d514b2ca4112af97.
Closing.
-----BEGIN PGP SIGNATURE-----

iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCZdnEow8cZ2x2QHBvc3Rl
by5uZXQACgkQa+ggit8h/j9eeQD/T43C0K2Z6sNDQIiVvVEosmJVyWCNd7e+zaDU
n/VDwj8A/0gNhKM1NFbYTii9h7xNdmQraPSnNhT4ArQyheYa1Ml1
=nZyF
-----END PGP SIGNATURE-----

Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 65441@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 65441
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch