JDK-8196181 : sun/java2d/GdiRendering/InsetClipping.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 9,10,11,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-01-25
  • Updated: 2021-06-21
  • Resolved: 2020-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 13 JDK 15 JDK 8 Other
11.0.8-oracleFixed 13.0.4Fixed 15 b21Fixed 8u311Fixed openjdk8u312Fixed
Description
Windows 7, JDK 10+11, D3D pipeline at 120 dpi:
java.lang.Error: Failed: incorrect color in pixel (0, 0)
	at InsetClipping.main(InsetClipping.java:110)
	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.Error: Failed: incorrect color in pixel (0, 0)
JavaTest Message: shutting down test
---

There are a couple of other open bugs that mention this test failing
but they could be very different issues, and the reports are old :
https://bugs.openjdk.java.net/browse/JDK-7124403
https://bugs.openjdk.java.net/browse/JDK-8031433
Comments
Fix Request (8u) I would like to backport this patch to 8u for parity with Oracle 8u311. There are only minor conflicts with original patch, and 8u changes have been reviewed.
02-06-2021

8u code review: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2021-June/013945.html
01-06-2021

Fix request (13u) Requesting backport to 13u for parity with 11u, applies cleanly.
10-06-2020

jdk11 backport request I would like to have the patch in OpenJDK11 as well (for parity with 11.0.8_oracle). The patch applies cleanly with the exception of the line removal in the test/jdk/ProblemList.txt that has to be simply confirmed.
30-04-2020

URL: https://hg.openjdk.java.net/jdk/jdk/rev/0ad172f3edb3 User: psadhukhan Date: 2020-04-24 11:16:29 +0000
24-04-2020

URL: https://hg.openjdk.java.net/jdk/client/rev/0ad172f3edb3 User: serb Date: 2020-04-16 17:20:42 +0000
16-04-2020

The test fails on all platforms where HiDPI is enabled.
13-04-2020

Observed same issue in JDK14+27 in mach 10.15 Mach5 URL: https://mach5.us.oracle.com:10060/api/v1/results/gtee-atr-client-manual-20200107-0602-7575-osx-x64-bin-openjdk-1-2877/log Observed this issue in JDK 14+32 on Mac 10.14/10.15 sun/java2d/GdiRendering/InsetClipping.java,[],[macosx-x64-open],[Exception: java.lang.Error: Failed: incorrect color in pixel (..., ...)],[bug4873505 bug6588884 headful], [InsetClipping],[5279],[] mach5 log: https://mach5.us.oracle.com:10060/api/v1/results/amrsahu-jdk-14-32-1423-20200214-0427-8723828-open_test_jdk_jdk_desktop-macosx-x64-open-0-908/log
20-02-2020

Few observations from testing the issue: . Executed the test case with JDK 10-internal on Win10 x64 with Nvidia card . The issue was reproducible with Hi-Dpi setting (1.25 scale) and not reproducible under normal resolution settings without Hi-Dpi.
31-01-2018