JDK-8224825 : java/awt/Color/AlphaColorTest.java fails in linux-x64 system
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 11,12,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux
  • CPU: x86_64
  • Submitted: 2019-05-27
  • Updated: 2019-10-04
  • Resolved: 2019-07-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 11 JDK 13 JDK 14
11.0.5-oracleFixed 13 b30Fixed 14Fixed
Related Reports
Relates :  
Relates :  
Description
When "jtreg" regression test "test/jdk/java/awt/Color/AlphaColorTest.java" is run on VM with current desktop set to Unity, it passes but when is run on "ubuntu:GNOME" desktop (which is default in 18.04] it fails. The frame shown is white in colour ie red is 255 but the test expects frame's red color to be between 122-132.

java.lang.RuntimeException: Color is not as expected. Got java.awt.Color[r=255,g=255,b=255]
jib > 	at AlphaColorTest.main(AlphaColorTest.java:70)
jib > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
jib > 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jib > 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
jib > 	at java.base/java.lang.reflect.Method.invoke(Method.java:567)
jib > 	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
Comments
11u Fix Request: I would like to backport this patch to 11u, as it is on Oracle 11u backport list. The original patch does not apply cleanly. However, the conflict is minor, as quarantined test is not on 11u's problem list.
05-08-2019

URL: https://hg.openjdk.java.net/jdk/jdk13/rev/20c686ec8135 User: alitvinov Date: 2019-07-16 14:30:22 +0000
16-07-2019

The file "WrongColorWithJDK13+23OnOracleLinux7.4.png" with a screenshot was attached to the bug. The screenshot demonstrates: - the regression test failure on Oracle Linux 7.4 x64 with JDK 13+23, which is the build without the fix for JDK-8214579 (resolved in JDK 13+24). - the dialog of the regression test with the wrong color which leads to the test failure and the terminal showing that the test passes and fails while being run with the same settings. The described above experiment with JDK 13+23 and following test runs show that the observed new intermittent test failure: "Color is not as expected. Got java.awt.Color[r=189,g=189,b=189]", is not new and was present in JDK 13 before integration of the fix JDK-8214579. - The intermittent test failure is also reproducible with: JDK 11+25, JDK 11+28.
12-07-2019

On 7/11/19 11:13 AM, Anton Litvinov wrote: > Hello Phil, > > Thank you for these additional details. I have tried to run the test "open/test/jdk/java/awt/Color/AlphaColorTest.java" with JDK 13 compiled from "jdk/jdk13" with/without this back out fix and the results are not so stable on my VirtualBox host with openSUSE Leap 15.0 OS (GNOME 3.26.2): > > 1. "AlphaColorTest.java" stably fails with JDK 13 without this back out fix and the test failure message is stably: > "Color is not as expected. Got java.awt.Color[r=255,g=255,b=255]" > > 2. "AlphaColorTest.java" starts passing with JDK 13 with the back out fix, but continues to intermittently fail with the failure message: > "Color is not as expected. Got java.awt.Color[r=189,g=189,b=189]" > > It looks that either this regression test had been failing intermittently before the fix 8214579, which we are backing out, was integrated, or some other fix causes this intermittent failure. > > Maybe in this case it is better not to change this "open/test/jdk/ProblemList.txt" as well as the test itself "open/test/jdk/java/awt/Color/AlphaColorTest.java" as part of this back out fix for JCK test failure? > > Thank you, > Anton http://mail.openjdk.java.net/pipermail/2d-dev/2019-July/010187.html
12-07-2019

Issue is reproducible with JDK11.0.5b01 on Ubuntu19.10 Machine : llg00tuo.uk.oracle.com RULE "java/awt/Color/AlphaColorTest.java" Exception java.lang.RuntimeException: Color is not as expected. Got java.awt.Color[r=255,g=255,b=255] http://llg00gql.uk.oracle.com:9504/runs/02464/2464553.ManualSubmit/2464553.ManualSubmit-1/workDir/java/awt/Color/AlphaColorTest.jtr
26-06-2019

Regression of JDK-8214579
30-05-2019