JDK-8194136 : api/java_awt/interactive/RobotTest0001 and RobotTest0002 doesn't work properly。
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8u151,9,10,16,17
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu
  • CPU: x86
  • Submitted: 2017-12-22
  • Updated: 2024-06-03
  • Resolved: 2024-06-03
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 21
21Resolved
Related Reports
Duplicate :  
Description
Product tested:OpenJDK10 fcs 36(64bit)/JCK 10b08,OracleJDK10 fcs 36(64bit)/JCK 10b08
OS/architecture:Ubuntu17.10 x64

Actual behavior: 
1)RobotTest0001: The mouse cursor doesn't automatically moves from the red circle to the green ,blue and ends up the gray.

2)RobotTest0001: The white area below each circle changed color to black after clicking "Start getPixelColor" button.Refer to RobotTest0001.jpg

3)RobotTest0002: Robot captures black screen after clicking "Start createScreenCapure" button.Refer to RobotTest0002.jpg

Verification:
OracleJDK10 fcs 36 on Mac10.13-x64 :Passed
OracleJDK10 fcs 36 on Win10 x64:Passed
Comments
Tested with JDK 8u151, and found the same failure in Wayland, and passed in XOrg. Since Ubuntu 17.10 uses Wayland by default, which is not supported by Java, the workaround is to use XOrg.
09-01-2018

Looks like there are issues with Wayland, which is the default UI renderer for Ubuntu 17.10. Workaround is to use XOrg, on which this test passes. Instructions on how to switch to XOrg are provided here: https://itsfoss.com/switch-xorg-wayland/
09-01-2018

Hi Tony, Did you test this on a VM or a standalone machine? If on VM, could you try with a standalone machine as well? Thanks, Krishna
08-01-2018

Tried with JDK10 on ubuntu 16.04 on a standalone machine, and this test passed without any problems, so I suspect, it is something to do with Gnome desktop introduced in ubuntu 17.10.
04-01-2018

Tried with JDK9.0.1 on ubuntu 17.10, and observed the same behavior as JDK10. [~vdyakov] : to answer your question, this test is present in JCK 9 as well, and is not passing on ubuntu 17.10.
04-01-2018

Looks like the mouseMove in robot is not working as expected. Also, getPixelColor of robot is yielding wrong values from the native side.
03-01-2018

is this tck-red a regression?
23-12-2017

while I double checked today, this is not seen on OEL6.7. with OpenJDK builds 10b24, 10b36 etc. it looks to me the issue is specific to Ubuntu only.
22-12-2017