JDK-8023098 : XRender : AlphaComposite test results are incorrect.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: linux
  • Submitted: 2013-08-15
  • Updated: 2017-12-07
  • Resolved: 2013-10-22
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
8 b115Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Description
On Linux with JDK 8 the attached program performs OpenGL drawings correctly if run with -Dsun.java2d.opengl=True option. 

However, if run with  -Dsun.java2d.opengl=False or if sun.java2d.opengl option is not specified at all, then the same program produces different OpenGL drawings and they are not correct.

If run on JDK 7, then in all cases the program draws the same correct drawing.

To reproduce using JDK8:

javac AlphaCompositeTest.java
java -Dsun.java2d.opengl=False AlphaCompositeTest. 
Then see the graphics output on screen. 
java -Dsun.java2d.opengl=True AlphaCompositeTest 
Then see the graphics output on screen.

 The output differs and with  -Dsun.java2d.opengl=False looks incorrect.

The output does not differ and looks correct when run with JDK 7.


We have a set of functional tests falling because of that issue.



Comments
Suggested fix for 7082809 resolves this particular failure.
21-10-2013

RULE 2D_JavaOGLBAT/comparison/AlphaCompositeComplexTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/AlphaCompositeTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/ClipComplexTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/ClipTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/GeneralPathTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/PaintTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/SimpleShapesTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/StrokeComplexTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/TransformTest ExitCode 1 RULE 2D_JavaOGLBAT/comparison/PixelInterpolationTest ExitCode 1
20-08-2013

Can be reproduced on Ubuntu 10.04 and 12.04. Xrender version is 0.9.5
15-08-2013

The issue can be seen at emb-arm-trimslice-23, where Aurora detected it. It can also be seen on my machine. Please, specify what exact additional info is needed.
15-08-2013

Need info about xrender installed on the system.
15-08-2013

As advised, if I add -Dsun.java2d.xrender=false the issue disappears. However, the end user would not normally do that. So I think this does not solve the issue.
15-08-2013