JDK-8144030 : [macosx] test java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java fails (again)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8,9,11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux_ubuntu,os_x
  • Submitted: 2015-11-25
  • Updated: 2023-03-07
  • Resolved: 2022-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 11 JDK 17 JDK 19 JDK 8
11.0.19Fixed 17.0.7Fixed 19 b19Fixed 8u381Fixed
Related Reports
Relates :  
Relates :  
Description
Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed. The shape has not been applied.

configuration: Ubuntu 15.04 linux + GNOME + JDK9 b93 + HiDPI display

the issue looks similar to JDK-8143932. if set some delay in the end of initializeGUI method then the test is passed (please note that initializeGUI runs on EDT).

So if this is not an EDT issue, then the bug should be considered as a test bug easy fixable by adding of the delay.


Comments
A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1688 Date: 2023-01-25 08:48:57 +0000
25-01-2023

Fix Request(11u) Original patch does not apply cleanly to jdk11u, because there is a difference in ProblemList.txt where jdk excludes macosx-all and linux-all, but jdk11u only excludes macosx-all. So I modified ProblemList.txt to delete the line of ShapeNotSetSometimes.java. There is no risk because this fix is only test. Testing: I checked the operation on RHEL9 manually.
25-01-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/1053 Date: 2023-01-11 08:01:19 +0000
11-01-2023

Fix Request(17u) The patch applies cleanly to 17u. There is no risk because this fix is only test. Testing: I checked the operation on RHEL9 manually.
11-01-2023

Changeset: e5041ae3 Author: Alexander Zvegintsev <azvegint@openjdk.org> Date: 2022-04-16 10:02:25 +0000 URL: https://git.openjdk.java.net/jdk/commit/e5041ae3d45b43be10d5da747d773882ebf0482b
16-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8233 Date: 2022-04-13 21:28:35 +0000
13-04-2022

This test fails on Ubuntu 18.04 LTS with jdk12. Attached is the jtreg report.
08-11-2018

This is still failing on MacOSX - JDK 11 Attempt 0 Checking java.awt.Frame with Rounded-corners shape (java.awt.geom.Path2D$Float@6a5334b3)... checking 165, 196, color = java.awt.Color[r=0,g=0,b=255] checking 191, 163, color = java.awt.Color[r=0,g=0,b=255] checking 146, 185, color = java.awt.Color[r=0,g=0,b=255] checking 61, 170, color = java.awt.Color[r=0,g=0,b=255] checking 148, 171, color = java.awt.Color[r=0,g=0,b=255] checking 82, 172, color = java.awt.Color[r=0,g=0,b=255] checking 186, 11, color = java.awt.Color[r=0,g=0,b=255] checking 199, 141, color = java.awt.Color[r=0,g=0,b=255] checking 13, 173, color = java.awt.Color[r=0,g=0,b=255] checking 187, 3, color = java.awt.Color[r=0,g=0,b=255] Attempt 1 Checking java.awt.Frame with Rounded-corners shape (java.awt.geom.Path2D$Float@4e927d3c)... checking 165, 196, color = java.awt.Color[r=0,g=0,b=255] checking 191, 163, color = java.awt.Color[r=0,g=0,b=255] checking 146, 185, color = java.awt.Color[r=0,g=0,b=255] checking 61, 170, color = java.awt.Color[r=0,g=0,b=255] checking 148, 171, color = java.awt.Color[r=0,g=0,b=255] checking 82, 172, color = java.awt.Color[r=0,g=0,b=255] checking 186, 11, color = java.awt.Color[r=0,g=0,b=244] window.getX() = 70, window.getY() = 450 ----------System.err:(15/1107)---------- Checking for transparency failed: point: 256, 461, color = java.awt.Color[r=0,g=0,b=244] is not of expected background color java.awt.Color[r=0,g=0,b=255] java.lang.RuntimeException: Test failed. The shape has not been applied. at ShapeNotSetSometimes.doTest(ShapeNotSetSometimes.java:160) at ShapeNotSetSometimes.main(ShapeNotSetSometimes.java:122) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:569) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115) at java.base/java.lang.Thread.run(Thread.java:832) JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed. The shape has not been applied. JavaTest Message: shutting down test
10-05-2018

the test fails with JDK8 b132 as well
22-08-2016

Prem, please reply on SQE comment below
22-08-2016

so it seems to be a product issue (similar to e.g., JDK-7172434)
19-08-2016

rerunning this test with JDK9 b132 on OS X 10.11 (delay was increased to make screenshots): some artifacts are visible around the shape. please compare "expected.png" and "nok-*.png". so the shape drawing is broken. retina display was used, but not sure if that does matter. another strange point about the test: please see the "checking outside points only" comment. why don't we check the inner points? running the test on Ubuntu 14.04 Linux (using increased delay) it could be noticed that the white shaped window flashes and then vanishes, only the background blue frame remains (as opposed to OS X). is it what expected? that's quite suspicious and may be a separate issue. the test fails here in case if the inner points are checked too.
19-08-2016

reopening the issue as it also fails for me in case of Mac OS X 10.10 + JDK9b95 + HiDPI display. but not sure if this is just some lack of delays to avoid concurrent drawing in this case; needs deeper investigation from my side (that may be another issue, so my apologies for this 'lazy' approach)
07-12-2015

Test passed on Ubuntu 15. Ubuntu GNOME is not supported.
01-12-2015

the issue is not reproducible on Ubuntu 14.04 Linux and Windows 7.
25-11-2015

RULE "java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java" java.lang.RuntimeException: Test failed. The shape has not been applied.
25-11-2015