JDK-8292304 : [REDO] JDK-8289208 Test DrawRotatedStringUsingRotatedFont.java occasionally crashes on MacOS
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 17,18,19,20
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2022-08-12
  • Updated: 2022-08-13
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 20
20Unresolved
Related Reports
Relates :  
Sub Tasks
JDK-8292305 :  
Description
The following test is failing in the JDK20 CI:

sun/java2d/Disposer/TestDisposerRace.java

Here's a snippet from the log file:

#section:main
----------messages:(5/289)----------
command: main -mx128m TestDisposerRace
reason: User specified action: run main/othervm -mx128m TestDisposerRace 
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules java.desktop --add-exports java.desktop/sun.java2d=ALL-UNNAMED
elapsed time (seconds): 4.884
----------configuration:(4/103)----------
Boot Layer
  add modules: java.desktop            
  add exports: java.desktop/sun.java2d ALL-UNNAMED

----------System.out:(0/0)----------
----------System.err:(12/744)----------
java.lang.RuntimeException: Disposed more records than were added
	at TestDisposerRace.checkRecordsCountIsSane(TestDisposerRace.java:74)
	at TestDisposerRace.main(TestDisposerRace.java:45)
	at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
	at java.base/java.lang.reflect.Method.invoke(Method.java:578)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:1589)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Disposed more records than were added
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Disposed more records than were added
----------rerun:(37/5066)*----------

<snip>

result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Disposed more records than were added


This test failure first happened in jdk-20+11-616-tier3 and the only
new changeset is:

JDK-8289208 Test DrawRotatedStringUsingRotatedFont.java occasionally crashes on MacOS

Since this appears to be a regression, I'm starting this bug off as a P2.
Comments
Now that: JDK-8289208 Test DrawRotatedStringUsingRotatedFont.java occasionally crashes on MacOS has been backed out. I'm converting this bug in a [REDO] for that fix. Changing the priority from P2 -> P3 to match the original bug.
12-08-2022