JDK-8022403 : sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u95,7u4,8,9,10,11
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • Submitted: 2013-08-06
  • Updated: 2025-04-03
  • Resolved: 2022-11-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 20
11.0.18Fixed 17.0.6Fixed 19.0.2Fixed 20 b24Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
fails with jdk1.8.0b100_compiler_upgrades, jdk1.8.0b99, jdk1.7.0_25b15

----------System.out:(1/50)----------
Screen shot file: OnScreenRenderingResizeTest.png
----------System.err:(14/864)----------
java.lang.RuntimeException: Test failed at 0-0 rgb=0xff00fe20
	at OnScreenRenderingResizeTest.checkBI(OnScreenRenderingResizeTest.java:204)
	at OnScreenRenderingResizeTest.main(OnScreenRenderingResizeTest.java:165)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:491)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
	at java.lang.Thread.run(Thread.java:724)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed at 0-0 rgb=0xff00fe20
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test failed at 0-0 rgb=0xff00fe20
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed at 0-0 rgb=0xff00fe20


test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test failed at 0-0 rgb=0xff00fe20
Comments
Thank you for the heads up, backport for JDK-8297241 is created and ready to go right after this one.
23-11-2022

If we are backporting this fix please make sure that we backport https://bugs.openjdk.org/browse/JDK-8297241 along with it. Because with just this fix we are seeing intermittent failure in Linux.
23-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk19u/pull/89 Date: 2022-11-22 20:01:18 +0000
22-11-2022

Fix request [19u] Clean test backport. Test update, low risk. Test passed during manual run on mac and linux using cmd: make run-test TEST=test/jdk/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java There's a followup fix for this test, that will be also backported.
22-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk11u-dev/pull/1529 Date: 2022-11-18 06:50:29 +0000
18-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk17u-dev/pull/898 Date: 2022-11-18 06:51:10 +0000
18-11-2022

Fix request [11u, 17u] Clean test backport, had to merge ProblemList.txt. Test update, low risk. Test passed during manual run using cmd: make run-test TEST=test/jdk/sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java
18-11-2022

Changeset: 65f7de25 Author: Jayathirth D V <jdv@openjdk.org> Date: 2022-11-16 07:58:55 +0000 URL: https://git.openjdk.org/jdk/commit/65f7de252366e30ba18a22c107fc301c0fdc9378
16-11-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/11158 Date: 2022-11-15 07:58:24 +0000
15-11-2022

In my local Ubuntu 22.04 VM this test fails everytime because it is hitting https://bugs.openjdk.org/browse/JDK-8269245 I am getting only black content from Robot.createScreenCapture(), if i disable wayland then Robot captures appropriate content and test passes.
11-11-2022

If i run this test indefinitely even in Mac it fails with minor color differences. And when it fails it doesn't dispose the frame. I minimised screen capture size to not include boundaries and added color tolerance for this test and ran for almost 10 minutes and it doesn't fail in my local Mac.
11-11-2022

Looks like additional VolatileImage drawing logic is added for JDK-6666931 to check synchronisation issues.
11-11-2022

This test case has some unused code which can be removed. Also it tries to draw content into Volatile Image when it is drawing into frame using BufferedImage. Need to investigate usage of volatile image for this test case. In my local Ubuntu machine also it fails everytime but visible i can see that it is drawing the needed content.
10-11-2022

Fails on windows 7 too .. with D3D pipeline, 120dpi, JDK 10+11 java.lang.RuntimeException: Test failed at 0-132 rgb=0xfff2f2f2 at OnScreenRenderingResizeTest.checkBI(OnScreenRenderingResizeTest.java:210) at OnScreenRenderingResizeTest.main(OnScreenRenderingResizeTest.java:181) 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:564) at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:115) at java.base/java.lang.Thread.run(Thread.java:844) JavaTest Message: Test threw exception: java.lang.RuntimeException: Test failed at 0-132 rgb=0xfff2f2f2
24-01-2018

No sense to keep a value in the rule. Next time it would fail in a different place. On my Ubuntu with Nvidia, it fails on every run but not in the same place, always with different rgb reported. RULE "sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java" Exception java.lang.RuntimeException: Test failed at ...
27-06-2016

RULE sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java Exception java.lang.RuntimeException: Test failed at ...-163 rgb=...
10-08-2015

RULE sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java Exception java.lang.RuntimeException: Test failed at ...-113 rgb=...
06-08-2015

RULE sun/java2d/DirectX/OnScreenRenderingResizeTest/OnScreenRenderingResizeTest.java Exception java.lang.RuntimeException: Test failed at ...-134 rgb=...
06-04-2015

We've reviewed your bulk request (120 bugs) and are OK with deferring them to JDK 9. You can go ahead and update these to: - Set label to 8-defer-approved - FixVersion to 9 Thanks for doing a great job of summarizing the details for the bulk deferral for us! Kind regards, Mathias
19-09-2013

The criteria for deferral bulk request bugs: - Not P2 - Not tck-red or conformance labeled - Not regressions reported/labeled against jdk8 - Not findbugs, parfait, eht, fuzzing labeled - Not netbeans, licbug, cap, cap-8 labeled against jdk8
18-09-2013

The criteria for deferral bulk request bugs: - Not P2 - Not tck-red or conformance labeled - Not regressions reported/labeled against jdk8 - Not findbugs, parfait, eht, fuzzing labeled - Not netbeans, licbug, cap, cap-8 labeled against jdk8
18-09-2013

The criteria for deferral bulk request bugs: - Not P2 - Not tck-red or conformance labeled - Not regressions reported/labeled against jdk8 - Not findbugs, parfait, eht, fuzzing labeled - Not netbeans, licbug, cap, cap-8 labeled against jdk8
18-09-2013

The criteria for deferral bulk request bugs: - Not P2 - Not tck-red or conformance labeled - Not regressions reported/labeled against jdk8 - Not findbugs, parfait, eht, fuzzing labeled - Not netbeans, licbug, cap, cap-8 labeled against jdk8
18-09-2013

jdk8: SQE OK to defer
16-09-2013

Assigning to Andrew because he has the other similar bugs
07-08-2013

All the tests which involve screen shots on OS X are broken anyway because of the gamma correction, until we disable that or update all the tests to allow for the error due to the (ahem) correction :-)
07-08-2013

There are at least two similar issues for this test https://jbs.oracle.com/bugs/issues/?jql=text%20~%20%22OnScreenRenderingResizeTest.java%22
06-08-2013