Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8171000

Robot.createScreenCapture() crashes in wayland mode

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b04
    • OS:
      linux

      Backports

        Description

        Our customer has reported that jdownloader crashes in wayland mode.

        https://bugzilla.redhat.com/show_bug.cgi?id=1402819

        My investigation suggests that it is due to incompatible nature of wayland vs. X11.

        Due to security concern, wayland does not allow snapshot screen. As the result, XGetImage() can return NULL.

        A simple NULL checks can avoid the crash.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kaddepalli Krishna Addepalli
                Reporter:
                zgu Zhengyu Gu
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: