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.72k stars 384 forks source link

1.83.1: test suite fails in `ioformats_reg` unit #717

Closed kloczek closed 8 months ago

kloczek commented 8 months ago

Source code configured with

%configure \
        --disable-static \
        --program-prefix=leptonica- \
        %{nil}

and test suite is failing in ioformats_reg unit:

````console FAIL: ioformats_reg =================== //////////////////////////////////////////////// //////////////// ioformats_reg /////////////// //////////////////////////////////////////////// leptonica-1.83.1 : libgif 5.2.1 : libjpeg 6b (libjpeg-turbo 3.0.1) : libpng 1.6.40 : libtiff 4.6.0 : zlib 1.3.0.zlib-ng : libwebp 1.3.2 : 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 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 Info in ioFormatTest: All formats read and written OK! 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 diff = 3.227 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 decode the image 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 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! 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 diff = 1.587 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: **** 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 ******* Failure on at least one i/o format test ****** Test tiff r/w and format extraction Info in pixReadMemBmp: removing opaque cmap from 1 bpp Input format: 10 1 bpp 2 bpp 4 bpp 8 bpp 16 bpp 32 bpp Tiff read/write 8 bpp with cmap Info in cmapEqual: colormap sizes are different Tiff read/write 1 bpp with cmap Tiff read/write gray plus alpha Info in pixReadFromTiffStream: gray+alpha is not supported; converting to RGBA Info in pixReadStreamPng: converting (gray + alpha) ==> RGBA Tiff read/write 16 bit sampled rgb Tiff read/write rgb with half-sized tiff buffer ********** Success on tiff r/w to file ********* 1 bpp nbytes = 19922, size = 19922 nbytes = 18394, size = 18394 (w,h,bps,spp) = (550,426,1,1) nbytes = 19462, size = 19462 nbytes = 20470, size = 20470 (w,h,bps,spp) = (550,426,1,1) 2 bpp (w,h,bps,spp) = (550,426,2,1) 4 bpp (w,h,bps,spp) = (550,426,4,1) 8 bpp (w,h,bps,spp) = (550,426,8,1) 16 bpp (w,h,bps,spp) = (550,426,16,1) 32 bpp (w,h,bps,spp) = (576,432,8,3) ********** Success on tiff r/w to memory ********* 1 bpp Info in pixReadMemBmp: removing opaque cmap from 1 bpp 2 bpp Warning in pixWriteMemBmp: 2 bpp files can't be read; converting to 8 bpp 4 bpp 8 bpp Warning in fgetJp2kResolution: image resolution not found skipping: ds = 8, dd = 32, format = 15 16 bpp 32 bpp Warning in fgetJp2kResolution: image resolution not found ********** Success on non-tiff r/w to memory ********* ******* Success on tiff multipage read from memory ****** **** success writing 24 bpp png **** **** success writing 24 bpp tif **** ******* Success on 24 bpp rgb writing ******* Format data for image feyn.tif with format tiff_g4: nbytes = 104796, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image speckle2.png with format png: nbytes = 482, size (w, h, d) = (204, 152, 2) bps = 2, spp = 1, iscmap = 0 Format data for image weasel2.4g.png with format png: nbytes = 744, size (w, h, d) = (82, 73, 2) bps = 2, spp = 1, iscmap = 1 Format data for image speckle4.png with format png: nbytes = 1319, size (w, h, d) = (408, 304, 4) bps = 4, spp = 1, iscmap = 0 Format data for image weasel4.16c.png with format png: nbytes = 1559, size (w, h, d) = (82, 73, 4) bps = 4, spp = 1, iscmap = 1 Format data for image dreyfus8.png with format png: nbytes = 34971, size (w, h, d) = (329, 400, 8) bps = 8, spp = 1, iscmap = 1 Format data for image weasel8.240c.png with format png: nbytes = 3628, size (w, h, d) = (82, 73, 8) bps = 8, spp = 1, iscmap = 1 Format data for image test8.jpg with format jpg: nbytes = 55081, size (w, h, d) = (550, 426, 8) bps = 8, spp = 1, iscmap = 0 Info in readHeaderMemPng: gray + alpha: will extract as RGBA (spp = 4) Format data for image test-gray-alpha.png with format png: nbytes = 561, size (w, h, d) = (128, 128, 16) bps = 8, spp = 2, iscmap = 0 Info in readHeaderMemPng: gray + alpha: will extract as RGBA (spp = 4) Format data for image test16.tif with format tiff_zip: nbytes = 23570, size (w, h, d) = (550, 426, 16) bps = 16, spp = 1, iscmap = 0 Format data for image marge.jpg with format jpg: nbytes = 33094, size (w, h, d) = (576, 432, 32) bps = 8, spp = 3, iscmap = 0 Format data for image test32-alpha.png with format png: nbytes = 1284, size (w, h, d) = (128, 128, 32) bps = 8, spp = 4, iscmap = 0 Format data for image /tmp/lept.81duLT with format pnm: nbytes = 131671, size (w, h, d) = (329, 400, 8) bps = 8, spp = 1, iscmap = 0 Format data for image /tmp/lept.81duLT with format tiff_g3: nbytes = 206132, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.81duLT with format tiff_g4: nbytes = 104796, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.81duLT with format tiff_packbits: nbytes = 360098, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.81duLT with format tiff_rle: nbytes = 202592, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.81duLT with format tiff_lzw: nbytes = 217866, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.81duLT with format tiff_zip: nbytes = 183172, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.81duLT with format tiff_uncompressed: nbytes = 1042998, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 ******* Success on reading headers ******* ******* Failure on at least one test ******* Time: 2.381 sec //////////////////////////////////////////////// //////////////// ioformats_reg /////////////// //////////////////////////////////////////////// leptonica-1.83.1 : libgif 5.2.1 : libjpeg 6b (libjpeg-turbo 3.0.1) : libpng 1.6.40 : libtiff 4.6.0 : zlib 1.3.0.zlib-ng : libwebp 1.3.2 : 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 Error in pixReadStreamJp2k: failed to read the header Error in pixReadStream: jp2: no pix returned Error in pixRead: pix not read Error in pixCompareGray: pix2 not defined diff = 255.000 Info in ioFormatTest: **** bad jp2k image: d = 8, diff = 255.00 **** 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 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 Info in ioFormatTest: All formats read and written OK! 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 diff = 3.227 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 diff = 1.789 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 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: All formats read and written OK! 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 diff = 1.587 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 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 = 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 ****** Test tiff r/w and format extraction Info in pixReadMemBmp: removing opaque cmap from 1 bpp Input format: 10 1 bpp 2 bpp 4 bpp 8 bpp 16 bpp 32 bpp Tiff read/write 8 bpp with cmap Info in cmapEqual: colormap sizes are different Tiff read/write 1 bpp with cmap Tiff read/write gray plus alpha Info in pixReadFromTiffStream: gray+alpha is not supported; converting to RGBA Info in pixReadStreamPng: converting (gray + alpha) ==> RGBA Tiff read/write 16 bit sampled rgb Tiff read/write rgb with half-sized tiff buffer ********** Success on tiff r/w to file ********* 1 bpp nbytes = 19922, size = 19922 nbytes = 18394, size = 18394 (w,h,bps,spp) = (550,426,1,1) nbytes = 19462, size = 19462 nbytes = 20470, size = 20470 (w,h,bps,spp) = (550,426,1,1) 2 bpp (w,h,bps,spp) = (550,426,2,1) 4 bpp (w,h,bps,spp) = (550,426,4,1) 8 bpp (w,h,bps,spp) = (550,426,8,1) 16 bpp (w,h,bps,spp) = (550,426,16,1) 32 bpp (w,h,bps,spp) = (576,432,8,3) ********** Success on tiff r/w to memory ********* 1 bpp Info in pixReadMemBmp: removing opaque cmap from 1 bpp 2 bpp Warning in pixWriteMemBmp: 2 bpp files can't be read; converting to 8 bpp 4 bpp 8 bpp Warning in fgetJp2kResolution: image resolution not found skipping: ds = 8, dd = 32, format = 15 16 bpp 32 bpp Warning in fgetJp2kResolution: image resolution not found ********** Success on non-tiff r/w to memory ********* ******* Success on tiff multipage read from memory ****** **** success writing 24 bpp png **** **** success writing 24 bpp tif **** ******* Success on 24 bpp rgb writing ******* Format data for image feyn.tif with format tiff_g4: nbytes = 104796, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image speckle2.png with format png: nbytes = 482, size (w, h, d) = (204, 152, 2) bps = 2, spp = 1, iscmap = 0 Format data for image weasel2.4g.png with format png: nbytes = 744, size (w, h, d) = (82, 73, 2) bps = 2, spp = 1, iscmap = 1 Format data for image speckle4.png with format png: nbytes = 1319, size (w, h, d) = (408, 304, 4) bps = 4, spp = 1, iscmap = 0 Format data for image weasel4.16c.png with format png: nbytes = 1559, size (w, h, d) = (82, 73, 4) bps = 4, spp = 1, iscmap = 1 Format data for image dreyfus8.png with format png: nbytes = 34971, size (w, h, d) = (329, 400, 8) bps = 8, spp = 1, iscmap = 1 Format data for image weasel8.240c.png with format png: nbytes = 3628, size (w, h, d) = (82, 73, 8) bps = 8, spp = 1, iscmap = 1 Format data for image test8.jpg with format jpg: nbytes = 55081, size (w, h, d) = (550, 426, 8) bps = 8, spp = 1, iscmap = 0 Info in readHeaderMemPng: gray + alpha: will extract as RGBA (spp = 4) Format data for image test-gray-alpha.png with format png: nbytes = 561, size (w, h, d) = (128, 128, 16) bps = 8, spp = 2, iscmap = 0 Info in readHeaderMemPng: gray + alpha: will extract as RGBA (spp = 4) Format data for image test16.tif with format tiff_zip: nbytes = 23570, size (w, h, d) = (550, 426, 16) bps = 16, spp = 1, iscmap = 0 Format data for image marge.jpg with format jpg: nbytes = 33094, size (w, h, d) = (576, 432, 32) bps = 8, spp = 3, iscmap = 0 Format data for image test32-alpha.png with format png: nbytes = 1284, size (w, h, d) = (128, 128, 32) bps = 8, spp = 4, iscmap = 0 Format data for image /tmp/lept.QKW05f with format pnm: nbytes = 131671, size (w, h, d) = (329, 400, 8) bps = 8, spp = 1, iscmap = 0 Format data for image /tmp/lept.QKW05f with format tiff_g3: nbytes = 206132, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.QKW05f with format tiff_g4: nbytes = 104796, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.QKW05f with format tiff_packbits: nbytes = 360098, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.QKW05f with format tiff_rle: nbytes = 202592, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.QKW05f with format tiff_lzw: nbytes = 217866, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.QKW05f with format tiff_zip: nbytes = 183172, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 Format data for image /tmp/lept.QKW05f with format tiff_uncompressed: nbytes = 1042998, size (w, h, d) = (2528, 3300, 1) bps = 1, spp = 1, iscmap = 0 ******* Success on reading headers ******* ******* Failure on at least one test ******* Time: 1.647 sec FAIL ioformats_reg (exit status: 1) SKIP: italic_reg ================ SKIP italic_reg (exit status: 77) SKIP: kernel_reg ================ SKIP kernel_reg (exit status: 77) SKIP: nearline_reg ================== SKIP nearline_reg (exit status: 77) SKIP: numa1_reg =============== SKIP numa1_reg (exit status: 77) SKIP: numa2_reg =============== SKIP numa2_reg (exit status: 77) SKIP: numa3_reg =============== SKIP numa3_reg (exit status: 77) SKIP: pixa1_reg =============== SKIP pixa1_reg (exit status: 77) SKIP: projection_reg ==================== SKIP projection_reg (exit status: 77) SKIP: rankbin_reg ================= SKIP rankbin_reg (exit status: 77) SKIP: rankhisto_reg =================== SKIP rankhisto_reg (exit status: 77) SKIP: rank_reg ============== SKIP rank_reg (exit status: 77) SKIP: wordboxes_reg =================== SKIP wordboxes_reg (exit status: 77) ============================================================================ Testsuite summary for leptonica 1.83.1 ============================================================================ # TOTAL: 146 # PASS: 120 # SKIP: 25 # XFAIL: 0 # FAIL: 1 # XPASS: 0 # ERROR: 0 ============================================================================ See prog/test-suite.log ============================================================================ ````

BTW looking on https://github.com/DanBloomberg/leptonica/compare/1.83.1...master I think that it would be good to flush already committed changes and release new version.

DanBloomberg commented 8 months ago

Thank you for reporting this issue.

You skipped 25 tests because you don't have gnuplot, but that should not be a problem.

Are you running the test with make -jx check where x > 1? If so, please re-run with just make check, and that should fix the tests, which are likely due to a race condition.

Otherwise, there are a couple of puzzles here.

(1) The jp2k tests failed for RGB and 16 bpp, based on the error messages. However, they returned success! Also, why is it that the written jp2k files can't be read?

(2) pnm is failing for two 32-bit images that were derived from 1 and 2 spp with alpha. This is very strange, because pnm I/O does not depend on any external imaging library.

In any event, I will modify ioFormatTestj() to allow retrieval of the output written files, which will simplify any problem diagnosis.

As for updating the release to 1.84, I expect to do that in the next month, so that we have a new stable version for Ubuntu 24.04

kloczek commented 8 months ago

Are you running the test with make -jx check where x > 1? If so, please re-run with just make check, and that should fix the tests, which are likely due to a race condition.

Yes I'm running with -j48. OK will try .. so it looks like it is only parallelisation issue 🤔 Good to know 👍

kloczek commented 8 months ago

Just tested that with -j1 test suite is OK.

DanBloomberg commented 8 months ago

Great. Thanks for clarifying.

kloczek commented 8 months ago

Is this parallelisation issue is already solved or still not? 🤔

DanBloomberg commented 8 months ago

It continues and I'm not concerned about it. I will make a note in the README.html that the test should be done for j1.

kloczek commented 8 months ago

As long as you are using automake I think that you shuld have look on https://www.gnu.org/software/automake/manual/html_node/Serial-Test-Harness.html https://www.gnu.org/software/automake/manual/html_node/Parallel-Test-Harness.html