<AWT Dev> [11][JDK-8171000]Robot.createScreenCapture() crashes in wayland mode

Krishna Addepalli krishna.addepalli at oracle.com
Thu Feb 1 12:06:36 UTC 2018


Hi All, 

 

Please review a fix for JDK-8171000: https://bugs.openjdk.java.net/browse/JDK-8171000

Webrev: http://cr.openjdk.java.net/~kaddepalli/8171000/webrev00/

 

The crash happens since XGetImage can return NULL in case of Wayland, which doesnot permit reading screen pixels outside the owning window. Added a null check to prevent the same, and also refactored and removed unnecessary code to make the function simpler.

 

Thanks,

Krishna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20180201/bc44dc18/attachment.html>


More information about the awt-dev mailing list