Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_file_jpeg2k.py::TestFileJpeg2k::test_16bit_monchrome_j2k_like_tiff FAILED on ppc64 #3290

Closed
ernsteiswuerfel opened this issue Aug 5, 2018 · 5 comments
Labels
Big-endian Big-endian processors Platform A catchall for platform-related Testing
Projects

Comments

@ernsteiswuerfel
Copy link

ernsteiswuerfel commented Aug 5, 2018

On my PowerMac G5 (Gentoo Linux, ppc64, big endian) test_16bit_monchrome_j2k_like_tiff test fails with Pillow 5.2.0 and git-master.

What did you do?

make release-test

What versions of Pillow and Python are you using?

Pillow: git-master
Python: 3.6.5

Tests/test_file_jpeg2k.py::TestFileJpeg2k::test_16bit_j2k_roundtrips PASSED
Tests/test_file_jpeg2k.py::TestFileJpeg2k::test_16bit_jp2_roundtrips PASSED
Tests/test_file_jpeg2k.py::TestFileJpeg2k::test_16bit_monchrome_j2k_like_tiff FAILED

==================================================================================================== FAILURES =====================================================================================================
________________________________________________________________________________ TestFileJpeg2k.test_16bit_monchrome_j2k_like_tiff ________________________________________________________________________________

self = <test_file_jpeg2k.TestFileJpeg2k testMethod=test_16bit_monchrome_j2k_like_tiff>

    def test_16bit_monchrome_j2k_like_tiff(self):
    
        tiff_16bit = Image.open('Tests/images/16bit.cropped.tif')
        j2k = Image.open('Tests/images/16bit.cropped.j2k')
>       self.assert_image_similar(j2k, tiff_16bit, 1e-3)

Tests/test_file_jpeg2k.py:159: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/helper.py:154: in assert_image_similar
    raise e
Tests/helper.py:146: in assert_image_similar
    ave_diff, epsilon))
E   AssertionError: 0.001 not greater than or equal to 254.937744140625 :  average pixel value difference 254.9377 > epsilon 0.0010
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
================================================================================ 1 failed, 269 passed, 5 skipped in 29.63 seconds =================================================================================
make: *** [Makefile:81: release-test] Fehler 2
@ernsteiswuerfel ernsteiswuerfel changed the title test_16bit_monchrome_j2k_like_tiff FAILED on ppc64 test_file_jpeg2k.py::TestFileJpeg2k::test_16bit_monchrome_j2k_like_tiff FAILED on ppc64 Aug 5, 2018
@ernsteiswuerfel
Copy link
Author

Still fails in git-master.

--------------------------------------------------------------------
PIL SETUP SUMMARY
--------------------------------------------------------------------
version      Pillow 5.4.0.dev0
platform     linux 3.6.5 (default, Dec 15 2018, 17:39:35)
             [GCC 7.4.0]
--------------------------------------------------------------------
--- JPEG support available
--- OPENJPEG (JPEG2000) support available (2.3)
--- ZLIB (PNG/ZIP) support available
*** LIBIMAGEQUANT support not available
--- LIBTIFF support available
--- FREETYPE2 support available
--- LITTLECMS2 support available
--- WEBP support available
--- WEBPMUX support available
--------------------------------------------------------------------

[...]

==================================================================================================== FAILURES =====================================================================================================
_______________________________________________________________________________ TestFileJpeg2k.test_16bit_monochrome_j2k_like_tiff ________________________________________________________________________________

self = <test_file_jpeg2k.TestFileJpeg2k testMethod=test_16bit_monochrome_j2k_like_tiff>

    def test_16bit_monochrome_j2k_like_tiff(self):
    
        tiff_16bit = Image.open('Tests/images/16bit.cropped.tif')
        j2k = Image.open('Tests/images/16bit.cropped.j2k')
>       self.assert_image_similar(j2k, tiff_16bit, 1e-3)

Tests/test_file_jpeg2k.py:175: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Tests/helper.py:154: in assert_image_similar
    raise e
Tests/helper.py:146: in assert_image_similar
    ave_diff, epsilon))
E   AssertionError: 0.001 not greater than or equal to 254.937744140625 :  average pixel value difference 254.9377 > epsilon 0.0010
================================================================================ 1 failed, 283 passed, 5 skipped in 15.01 seconds =================================================================================
make: *** [Makefile:81: release-test] Fehler 1

@mattst88
Copy link

mattst88 commented Jan 2, 2019

Probably big-endian related. Fails on hppa as well.

@ernsteiswuerfel
Copy link
Author

Still fails in 5.4.1.

@aclark4life aclark4life added the Platform A catchall for platform-related label May 11, 2019
@aclark4life aclark4life added this to Backlog in Pillow May 11, 2019
@aclark4life aclark4life moved this from Backlog to In progress in Pillow May 11, 2019
@hugovk hugovk added the Big-endian Big-endian processors label Dec 18, 2019
@radarhere
Copy link
Member

Closing, as this is now part of #4213

Pillow automation moved this from In progress to Closed Mar 14, 2020
@radarhere
Copy link
Member

This has now been fixed by #5901

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Big-endian Big-endian processors Platform A catchall for platform-related Testing
Projects
Pillow
  
Closed
Development

No branches or pull requests

5 participants