JDK-8155606 : [PIT] Robot's createScreenCapture() broken on Linux
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 9
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-04-28
  • Updated: 2016-09-09
  • Resolved: 2016-04-29
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 9
9 b117Fixed
Related Reports
Relates :  
Description
Run the attached test on Linux with the current (before b118) state of jdk9 client repo.
Most probably, screen capture will be complete garbage painted on the screen and saved in a file.
It works OK on OS X and Windows.

Comments
Don't manually mark it fixed. It will get marked fixed properly when the fix in the PIT workspace is pushed.
29-04-2016

fixed in PIT so it is resolved. --- old/src/java.desktop/unix/native/libawt_xawt/awt/awt_Robot.c 2016-04-28 15:06:08.043767600 +0300 +++ new/src/java.desktop/unix/native/libawt_xawt/awt/awt_Robot.c 2016-04-28 15:06:07.508714100 +0300 @@ -265,7 +265,7 @@ if (isGtkSupported) { gtk->gdk_threads_enter(); gtk_failed = gtk->get_drawable_data(env, pixelArray, x, y, width, - jwidth, height, dx, dy, scale); + height, jwidth, dx, dy, scale); gtk->gdk_threads_leave(); }
29-04-2016

Fix will be ready in a 5 minutes
28-04-2016