JDK-8095276 : [Mac,Retina] Unit test failures in 3D system tests on Retina display
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8u25,8u40
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2014-11-17
  • Updated: 2015-06-12
  • Resolved: 2015-04-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8
8u60Resolved
Related Reports
Duplicate :  
Relates :  
Description
I just ran the system tests on my Mac retina display and get the following failures:

test3d.MeshCompareTest > testSnapshot3D[0] FAILED
    junit.framework.AssertionFailedError: expected:rgba(116,116,116,255) but was:rgba(254,254,254,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.MeshCompareTest.compareColors(MeshCompareTest.java:291)
        at test3d.MeshCompareTest.lambda$testSnapshot3D$379(MeshCompareTest.java:326)

test3d.MeshCompareTest > testSnapshot3D[3] FAILED
    junit.framework.AssertionFailedError: expected:rgba(216,205,103,255) but was:rgba(222,205,53,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.MeshCompareTest.compareColors(MeshCompareTest.java:291)
        at test3d.MeshCompareTest.lambda$testSnapshot3D$379(MeshCompareTest.java:325)

test3d.Snapshot3DTest > testSnapshot3D[0] FAILED
    junit.framework.AssertionFailedError: expected:rgba(186,186,186,255) but was:rgba(255,255,255,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.Snapshot3DTest.compareColors(Snapshot3DTest.java:148)
        at test3d.Snapshot3DTest.lambda$testSnapshot3D$386(Snapshot3DTest.java:182)

test3d.Snapshot3DTest > testSnapshot3D[2] FAILED
    junit.framework.AssertionFailedError: expected:rgba(73,205,50,255) but was:rgba(133,205,50,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.Snapshot3DTest.compareColors(Snapshot3DTest.java:148)
        at test3d.Snapshot3DTest.lambda$testSnapshot3D$386(Snapshot3DTest.java:181)

test3d.Snapshot3DTest > testSnapshot3D[3] FAILED
    junit.framework.AssertionFailedError: expected:rgba(73,205,150,255) but was:rgba(133,205,250,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.Snapshot3DTest.compareColors(Snapshot3DTest.java:148)
        at test3d.Snapshot3DTest.lambda$testSnapshot3D$386(Snapshot3DTest.java:181)

test3d.Snapshot3DTest > testSnapshot3D[4] FAILED
    junit.framework.AssertionFailedError: expected:rgba(235,235,235,255) but was:rgba(182,182,182,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.Snapshot3DTest.compareColors(Snapshot3DTest.java:148)
        at test3d.Snapshot3DTest.lambda$testSnapshot3D$386(Snapshot3DTest.java:181)

test3d.Snapshot3DTest > testSnapshot3D[6] FAILED
    junit.framework.AssertionFailedError: expected:rgba(200,205,50,255) but was:rgba(220,205,50,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.Snapshot3DTest.compareColors(Snapshot3DTest.java:148)
        at test3d.Snapshot3DTest.lambda$testSnapshot3D$386(Snapshot3DTest.java:181)

test3d.Snapshot3DTest > testSnapshot3D[7] FAILED
    junit.framework.AssertionFailedError: expected:rgba(200,205,225,255) but was:rgba(220,205,192,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.Snapshot3DTest.compareColors(Snapshot3DTest.java:148)
        at test3d.Snapshot3DTest.lambda$testSnapshot3D$386(Snapshot3DTest.java:181)

test3d.TriangleMeshPNTValidationTest > testDegeneratedMeshUpdateNormals FAILED
    junit.framework.AssertionFailedError: expected:rgba(255,0,0,255) but was:rgba(182,0,0,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.TriangleMeshPNTValidationTest.lambda$testDegeneratedMeshUpdateNormals$393(TriangleMeshPNTValidationTest.java:161)

test3d.TriangleMeshPNTValidationTest > testDegeneratedMeshUpdatePoints FAILED
    junit.framework.AssertionFailedError: expected:rgba(255,0,0,255) but was:rgba(182,0,0,255)
        at testharness.VisualTestBase.assertColorEquals(VisualTestBase.java:169)
        at test3d.TriangleMeshPNTValidationTest.lambda$testDegeneratedMeshUpdatePoints$396(TriangleMeshPNTValidationTest.java:208)

2179 tests completed, 10 failed, 583 skipped
:systemTests:test FAILED

Comments
This is a duplicate of RT-39418.
16-04-2015

I don't have a retina display system so I will need a reliable way to simulate it in order to fix the problem.
17-12-2014

This is probably a duplicate of RT-39416. If possible, this would be a good candidate for 8u60.
17-12-2014

I'll test both this and RT-39418 on my Mac in non-retina mode (thanks for the "quickres" hint).
18-11-2014

No failures if I use quickres to switch to non-retina mode. Also, sanitytest's snapshot test fails for probably related reasons...
18-11-2014

I see the same errors on my retina MBP with GT650M.
18-11-2014

To reproduce, run the following: gradle -PFULL_TEST=true -PUSE_ROBOT=true -Dtest.single=test3d/MeshCompareTest :systemTests:test gradle -PFULL_TEST=true -PUSE_ROBOT=true -Dtest.single=test3d/Snapshot3DTest :systemTests:test gradle -PFULL_TEST=true -PUSE_ROBOT=true -Dtest.single=test3d/TriangleMeshPNTValidationTest :systemTests:test
18-11-2014

This may be a problem specific to the Intel Iris graphics chipset as opposed to a general problem with Retina. See RT-39418.
17-11-2014