JDK-6830714 : cmm test failures with OpenJDK
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: OpenJDK6,8
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2009-04-15
  • Updated: 2016-01-12
  • Resolved: 2016-01-12
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 Other
8Fixed OpenJDK6Resolved
Related Reports
Duplicate :  
Relates :  
Description
When running on openjdk=true builds, but not production builds, the following three color management tests consistently fail:

sun/java2d/cmm/ColorConvertOp/ColConvCCMTest.java
Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: Invalid result of the ColorConvertOp for ColorSpace:CS_LINEAR_RGB Data type:TYPE_BYTE. Golden image:BufferedImage@5f8172: type = 5 ColorModel: #pixelBits = 24 numComponents = 3 color space = java.awt.color.ICC_ColorSpace@2ba11b transparency = 1 has alpha = false isAlphaPre = false ByteInterleavedRaster: width = 256 height = 256 #numDataElements 3 dataOff[0] = 2

sun/java2d/cmm/ColorConvertOp/ColConvDCMTest.java
Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: Invalid result of the ColorConvertOp for ColorSpace:CS_LINEAR_RGB Image type:TYPE_INT_ARGB. Golden image:LRGB.png

sun/java2d/cmm/ColorConvertOp/MTColConvTest.java
Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: java.lang.RuntimeException: Invalid result of the ColorConvertOp for ColorSpace:CS_LINEAR_RGB Image type:TYPE_INT_ARGB. Golden image:LRGB.png

Presumably these failures are due to the use of Little cms rather than the Kodak cms.  
The tests may be too strict or the little cms conversion may be too inaccurate.

Comments
Jdk8 uses lcms as a default color management module, so this problem affects jdk8 as well. Suggested solution is to increase tolerance in affected tests.
06-06-2013