JDK-8207379 : Robot screen capture test fails with HiDPI at some screen locations
  • Type: Bug
  • Component: javafx
  • Sub-Component: window-toolkit
  • Affected Version: jfx11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-07-17
  • Updated: 2024-03-29
  • Resolved: 2024-03-20
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.
Other
jfx23 b10Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
On a Windows Hi-DPI system, I get a failure in one of the screen capture tests depending on the screen position of the Stage. When it fails, the scaled image is 501 pixels wide and the test expects it to be 500 pixels wide.

I believe that this is a testbug and not a bug in the implementation.
Comments
Changeset: c3396bf0 Author: Lukasz Kostyra <lkostyra@openjdk.org> Date: 2024-03-20 08:19:56 +0000 URL: https://git.openjdk.org/jfx/commit/c3396bf0c3c436458d523119227023fb957cc279
20-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jfx/pull/1403 Date: 2024-03-14 16:06:55 +0000
14-03-2024

I still see this frequently on my system. I filed JDK-8296556 to mark this as unstable on Windows HuDPI systems (along with the failing test reported in JDK-8255079).
08-11-2022

I still see this on my HiDPI system frequently. Here is the output when it fails: test.robot.javafx.scene.RobotTest > testScreenCapture FAILED java.lang.AssertionError: expected:<500.0> but was:<501.0> at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.failNotEquals(Assert.java:645) at org.junit.Assert.assertEquals(Assert.java:441) at org.junit.Assert.assertEquals(Assert.java:510) at test.robot.javafx.scene.RobotTest.testScreenCapture(RobotTest.java:750)
18-05-2020