DanBloomberg / leptonica

Leptonica is an open source library containing software that is broadly useful for image processing and image analysis applications. The official github repository for Leptonica is: danbloomberg/leptonica. See leptonica.org for more documentation.
Other
1.8k stars 393 forks source link

1.82.0 test suite is failing #610

Closed kloczek closed 2 years ago

kloczek commented 2 years ago

I;m executing test suite with -j1 because https://github.com/DanBloomberg/leptonica/issues/567 Looks lie latest version has some new issue.

+ /usr/bin/make -O V=1 VERBOSE=1 check -j1
Making check in src
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/leptonica-1.82.0/src'
make[1]: Nothing to be done for 'check'.
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/leptonica-1.82.0/src'
Making check in prog
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/leptonica-1.82.0/prog'
/usr/bin/make  adaptmap_reg adaptnorm_reg affine_reg alphaops_reg alphaxform_reg baseline_reg bilateral2_reg bilinear_reg binarize_reg binmorph1_reg binmorph3_reg binmorph6_reg blackwhite_reg blend1_reg blend2_reg blend3_reg blend4_reg blend5_reg boxa1_reg boxa2_reg boxa3_reg boxa4_reg bytea_reg ccbord_reg ccthin1_reg ccthin2_reg checkerboard_reg circle_reg cmapquant_reg colorcontent_reg colorfill_reg coloring_reg colorize_reg colormask_reg colormorph_reg colorquant_reg colorseg_reg colorspace_reg compare_reg compfilter_reg conncomp_reg conversion_reg convolve_reg crop_reg dewarp_reg distance_reg dither_reg dna_reg dwamorph1_reg edge_reg encoding_reg enhance_reg equal_reg expand_reg extrema_reg falsecolor_reg fhmtauto_reg findcorners_reg findpattern_reg flipdetect_reg fpix1_reg fpix2_reg genfonts_reg grayfill_reg graymorph1_reg graymorph2_reg grayquant_reg hardlight_reg hash_reg heap_reg insert_reg ioformats_reg iomisc_reg italic_reg jbclass_reg jpegio_reg kernel_reg label_reg lineremoval_reg locminmax_reg logicops_reg lowaccess_reg lowsat_reg maze_reg mtiff_reg multitype_reg nearline_reg newspaper_reg numa1_reg numa2_reg numa3_reg overlap_reg pageseg_reg paint_reg paintmask_reg pdfio1_reg pdfio2_reg pdfseg_reg pixa1_reg pixa2_reg pixadisp_reg pixcomp_reg pixmem_reg pixserial_reg pngio_reg pnmio_reg projection_reg projective_reg psio_reg psioseg_reg pta_reg ptra1_reg ptra2_reg quadtree_reg rankbin_reg rankhisto_reg rank_reg rasteropip_reg rasterop_reg rectangle_reg rotate1_reg rotate2_reg rotateorth_reg scale_reg seedspread_reg selio_reg shear1_reg shear2_reg skew_reg smallpix_reg speckle_reg splitcomp_reg string_reg subpixel_reg texturefill_reg threshnorm_reg translate_reg warper_reg watershed_reg wordboxes_reg writetext_reg xformbox_reg gifio_reg webpio_reg webpanimio_reg jp2kio_reg
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/leptonica-1.82.0/prog'
make[2]: 'adaptmap_reg' is up to date.
make[2]: 'adaptnorm_reg' is up to date.
make[2]: 'affine_reg' is up to date.
make[2]: 'alphaops_reg' is up to date.
make[2]: 'alphaxform_reg' is up to date.
make[2]: 'baseline_reg' is up to date.
make[2]: 'bilateral2_reg' is up to date.
make[2]: 'bilinear_reg' is up to date.
make[2]: 'binarize_reg' is up to date.
make[2]: 'binmorph1_reg' is up to date.
make[2]: 'binmorph3_reg' is up to date.
make[2]: 'binmorph6_reg' is up to date.
make[2]: 'blackwhite_reg' is up to date.
make[2]: 'blend1_reg' is up to date.
make[2]: 'blend2_reg' is up to date.
make[2]: 'blend3_reg' is up to date.
make[2]: 'blend4_reg' is up to date.
make[2]: 'blend5_reg' is up to date.
make[2]: 'boxa1_reg' is up to date.
make[2]: 'boxa2_reg' is up to date.
make[2]: 'boxa3_reg' is up to date.
make[2]: 'boxa4_reg' is up to date.
make[2]: 'bytea_reg' is up to date.
make[2]: 'ccbord_reg' is up to date.
make[2]: 'ccthin1_reg' is up to date.
make[2]: 'ccthin2_reg' is up to date.
make[2]: 'checkerboard_reg' is up to date.
make[2]: 'circle_reg' is up to date.
make[2]: 'cmapquant_reg' is up to date.
make[2]: 'colorcontent_reg' is up to date.
make[2]: 'colorfill_reg' is up to date.
make[2]: 'coloring_reg' is up to date.
make[2]: 'colorize_reg' is up to date.
make[2]: 'colormask_reg' is up to date.
make[2]: 'colormorph_reg' is up to date.
make[2]: 'colorquant_reg' is up to date.
make[2]: 'colorseg_reg' is up to date.
make[2]: 'colorspace_reg' is up to date.
make[2]: 'compare_reg' is up to date.
make[2]: 'compfilter_reg' is up to date.
make[2]: 'conncomp_reg' is up to date.
make[2]: 'conversion_reg' is up to date.
make[2]: 'convolve_reg' is up to date.
make[2]: 'crop_reg' is up to date.
make[2]: 'dewarp_reg' is up to date.
make[2]: 'distance_reg' is up to date.
make[2]: 'dither_reg' is up to date.
make[2]: 'dna_reg' is up to date.
make[2]: 'dwamorph1_reg' is up to date.
make[2]: 'edge_reg' is up to date.
make[2]: 'encoding_reg' is up to date.
make[2]: 'enhance_reg' is up to date.
make[2]: 'equal_reg' is up to date.
make[2]: 'expand_reg' is up to date.
make[2]: 'extrema_reg' is up to date.
make[2]: 'falsecolor_reg' is up to date.
make[2]: 'fhmtauto_reg' is up to date.
make[2]: 'findcorners_reg' is up to date.
make[2]: 'findpattern_reg' is up to date.
make[2]: 'flipdetect_reg' is up to date.
make[2]: 'fpix1_reg' is up to date.
make[2]: 'fpix2_reg' is up to date.
make[2]: 'genfonts_reg' is up to date.
make[2]: 'grayfill_reg' is up to date.
make[2]: 'graymorph1_reg' is up to date.
make[2]: 'graymorph2_reg' is up to date.
make[2]: 'grayquant_reg' is up to date.
make[2]: 'hardlight_reg' is up to date.
make[2]: 'hash_reg' is up to date.
make[2]: 'heap_reg' is up to date.
make[2]: 'insert_reg' is up to date.
make[2]: 'ioformats_reg' is up to date.
make[2]: 'iomisc_reg' is up to date.
make[2]: 'italic_reg' is up to date.
make[2]: 'jbclass_reg' is up to date.
make[2]: 'jpegio_reg' is up to date.
make[2]: 'kernel_reg' is up to date.
make[2]: 'label_reg' is up to date.
make[2]: 'lineremoval_reg' is up to date.
make[2]: 'locminmax_reg' is up to date.
make[2]: 'logicops_reg' is up to date.
make[2]: 'lowaccess_reg' is up to date.
make[2]: 'lowsat_reg' is up to date.
make[2]: 'maze_reg' is up to date.
make[2]: 'mtiff_reg' is up to date.
make[2]: 'multitype_reg' is up to date.
make[2]: 'nearline_reg' is up to date.
make[2]: 'newspaper_reg' is up to date.
make[2]: 'numa1_reg' is up to date.
make[2]: 'numa2_reg' is up to date.
make[2]: 'numa3_reg' is up to date.
make[2]: 'overlap_reg' is up to date.
make[2]: 'pageseg_reg' is up to date.
make[2]: 'paint_reg' is up to date.
make[2]: 'paintmask_reg' is up to date.
make[2]: 'pdfio1_reg' is up to date.
make[2]: 'pdfio2_reg' is up to date.
make[2]: 'pdfseg_reg' is up to date.
make[2]: 'pixa1_reg' is up to date.
make[2]: 'pixa2_reg' is up to date.
make[2]: 'pixadisp_reg' is up to date.
make[2]: 'pixcomp_reg' is up to date.
make[2]: 'pixmem_reg' is up to date.
make[2]: 'pixserial_reg' is up to date.
make[2]: 'pngio_reg' is up to date.
make[2]: 'pnmio_reg' is up to date.
make[2]: 'projection_reg' is up to date.
make[2]: 'projective_reg' is up to date.
make[2]: 'psio_reg' is up to date.
make[2]: 'psioseg_reg' is up to date.
make[2]: 'pta_reg' is up to date.
make[2]: 'ptra1_reg' is up to date.
make[2]: 'ptra2_reg' is up to date.
make[2]: 'quadtree_reg' is up to date.
make[2]: 'rankbin_reg' is up to date.
make[2]: 'rankhisto_reg' is up to date.
make[2]: 'rank_reg' is up to date.
make[2]: 'rasteropip_reg' is up to date.
make[2]: 'rasterop_reg' is up to date.
make[2]: 'rectangle_reg' is up to date.
make[2]: 'rotate1_reg' is up to date.
make[2]: 'rotate2_reg' is up to date.
make[2]: 'rotateorth_reg' is up to date.
make[2]: 'scale_reg' is up to date.
make[2]: 'seedspread_reg' is up to date.
make[2]: 'selio_reg' is up to date.
make[2]: 'shear1_reg' is up to date.
make[2]: 'shear2_reg' is up to date.
make[2]: 'skew_reg' is up to date.
make[2]: 'smallpix_reg' is up to date.
make[2]: 'speckle_reg' is up to date.
make[2]: 'splitcomp_reg' is up to date.
make[2]: 'string_reg' is up to date.
make[2]: 'subpixel_reg' is up to date.
make[2]: 'texturefill_reg' is up to date.
make[2]: 'threshnorm_reg' is up to date.
make[2]: 'translate_reg' is up to date.
make[2]: 'warper_reg' is up to date.
make[2]: 'watershed_reg' is up to date.
make[2]: 'wordboxes_reg' is up to date.
make[2]: 'writetext_reg' is up to date.
make[2]: 'xformbox_reg' is up to date.
make[2]: 'gifio_reg' is up to date.
make[2]: 'webpio_reg' is up to date.
make[2]: 'webpanimio_reg' is up to date.
make[2]: 'jp2kio_reg' is up to date.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/leptonica-1.82.0/prog'
/usr/bin/make  check-TESTS
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/leptonica-1.82.0/prog'
make[3]: Entering directory '/home/tkloczko/rpmbuild/BUILD/leptonica-1.82.0/prog'
PASS: adaptmap_reg
PASS: adaptnorm_reg
PASS: affine_reg
PASS: alphaops_reg
PASS: alphaxform_reg
PASS: baseline_reg
PASS: bilateral2_reg
PASS: bilinear_reg
PASS: binarize_reg
PASS: binmorph1_reg
PASS: binmorph3_reg
PASS: binmorph6_reg
PASS: blackwhite_reg
PASS: blend1_reg
PASS: blend2_reg
PASS: blend3_reg
PASS: blend4_reg
PASS: blend5_reg
PASS: boxa1_reg
PASS: boxa2_reg
PASS: boxa3_reg
PASS: boxa4_reg
PASS: bytea_reg
PASS: ccbord_reg
PASS: ccthin1_reg
PASS: ccthin2_reg
PASS: checkerboard_reg
PASS: circle_reg
PASS: cmapquant_reg
PASS: colorcontent_reg
PASS: colorfill_reg
PASS: coloring_reg
PASS: colorize_reg
PASS: colormask_reg
PASS: colormorph_reg
PASS: colorquant_reg
PASS: colorseg_reg
PASS: colorspace_reg
PASS: compare_reg
PASS: compfilter_reg
PASS: conncomp_reg
PASS: conversion_reg
PASS: convolve_reg
PASS: crop_reg
PASS: dewarp_reg
PASS: distance_reg
PASS: dither_reg
PASS: dna_reg
PASS: dwamorph1_reg
PASS: edge_reg
PASS: encoding_reg
PASS: enhance_reg
PASS: equal_reg
PASS: expand_reg
PASS: extrema_reg
PASS: falsecolor_reg
PASS: fhmtauto_reg
PASS: findcorners_reg
PASS: findpattern_reg
PASS: flipdetect_reg
PASS: fpix1_reg
PASS: fpix2_reg
PASS: genfonts_reg
PASS: grayfill_reg
PASS: graymorph1_reg
PASS: graymorph2_reg
PASS: grayquant_reg
PASS: hardlight_reg
PASS: hash_reg
PASS: heap_reg
PASS: insert_reg
PASS: ioformats_reg
FAIL: iomisc_reg
PASS: italic_reg
PASS: jbclass_reg
PASS: jpegio_reg
PASS: kernel_reg
PASS: label_reg
PASS: lineremoval_reg
PASS: locminmax_reg
PASS: logicops_reg
PASS: lowaccess_reg
PASS: lowsat_reg
PASS: maze_reg
PASS: mtiff_reg
PASS: multitype_reg
PASS: nearline_reg
PASS: newspaper_reg
PASS: numa1_reg
PASS: numa2_reg
PASS: numa3_reg
PASS: overlap_reg
PASS: pageseg_reg
PASS: paint_reg
PASS: paintmask_reg
PASS: pdfio1_reg
PASS: pdfio2_reg
PASS: pdfseg_reg
PASS: pixa1_reg
PASS: pixa2_reg
PASS: pixadisp_reg
PASS: pixcomp_reg
PASS: pixmem_reg
PASS: pixserial_reg
PASS: pngio_reg
PASS: pnmio_reg
PASS: projection_reg
PASS: projective_reg
PASS: psio_reg
PASS: psioseg_reg
PASS: pta_reg
PASS: ptra1_reg
PASS: ptra2_reg
PASS: quadtree_reg
PASS: rankbin_reg
PASS: rankhisto_reg
PASS: rank_reg
PASS: rasteropip_reg
PASS: rasterop_reg
PASS: rectangle_reg
PASS: rotate1_reg
PASS: rotate2_reg
PASS: rotateorth_reg
PASS: scale_reg
PASS: seedspread_reg
PASS: selio_reg
PASS: shear1_reg
PASS: shear2_reg
PASS: skew_reg
PASS: smallpix_reg
PASS: speckle_reg
PASS: splitcomp_reg
PASS: string_reg
PASS: subpixel_reg
PASS: texturefill_reg
PASS: threshnorm_reg
PASS: translate_reg
PASS: warper_reg
PASS: watershed_reg
PASS: wordboxes_reg
PASS: writetext_reg
PASS: xformbox_reg
PASS: gifio_reg
PASS: webpio_reg
PASS: webpanimio_reg
PASS: jp2kio_reg
===========================================
   leptonica 1.82.0: prog/test-suite.log
===========================================

# TOTAL: 146
# PASS:  145
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0

.. contents:: :depth: 2

FAIL: iomisc_reg
================

////////////////////////////////////////////////
////////////////   iomisc_reg   ///////////////
////////////////////////////////////////////////
leptonica-1.82.0 : libgif 5.2.1 : libjpeg 6b (libjpeg-turbo 2.1.3) : libpng 1.6.37 : libtiff 4.3.0 : zlib 1.2.11.zlib-ng : libwebp 1.2.2 : libopenjp2 2.4.0
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Failure in iomisc_reg: value comparison for index 4
difference = 15777.000000 but allowed delta = 3000.000000
Failure in iomisc_reg: value comparison for index 5
difference = 10791.000000 but allowed delta = 3000.000000
Failure in iomisc_reg: value comparison for index 6
difference = 6393.000000 but allowed delta = 3000.000000
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Failure in iomisc_reg: value comparison for index 36
difference = 244.000000 but allowed delta = 200.000000
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Time:   0.186 sec

////////////////////////////////////////////////
////////////////   iomisc_reg   ///////////////
////////////////////////////////////////////////
leptonica-1.82.0 : libgif 5.2.1 : libjpeg 6b (libjpeg-turbo 2.1.3) : libpng 1.6.37 : libtiff 4.3.0 : zlib 1.2.11.zlib-ng : libwebp 1.2.2 : libopenjp2 2.4.0
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Failure in iomisc_reg: value comparison for index 4
difference = 15777.000000 but allowed delta = 3000.000000
Failure in iomisc_reg: value comparison for index 5
difference = 10791.000000 but allowed delta = 3000.000000
Failure in iomisc_reg: value comparison for index 6
difference = 6393.000000 but allowed delta = 3000.000000
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Failure in iomisc_reg: value comparison for index 36
difference = 244.000000 but allowed delta = 200.000000
Info in pixReadStreamPng: not stripping 16 --> 8 in png reading
Time:   0.184 sec
FAIL iomisc_reg (exit status: 1)

============================================================================
Testsuite summary for leptonica 1.82.0
============================================================================
# TOTAL: 146
# PASS:  145
# SKIP:  0
# XFAIL: 0
# FAIL:  1
# XPASS: 0
# ERROR: 0
============================================================================
See prog/test-suite.log
============================================================================
DanBloomberg commented 2 years ago

Thank you for submitting this. We have had numerous issues with these compression numbers because of the use of different compression libraries. I've "fixed" this by removing the problematic tests, and putting some of them in misctest1.c, which is not a regression test.

kloczek commented 2 years ago

FYI: In this case I'm uisni zlib-ng 2.0.6.

DanBloomberg commented 2 years ago

Thanks. I'm using zlib 1.2.11. I guess they keep improving it.

kloczek commented 2 years ago

BTW do you plan to make a new release with those fixes? 🤔 Thx.

DanBloomberg commented 2 years ago

Yes, likely sometime in May. See version-notes.html for some of the changes going into 1.83.