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

Robot.createScreenCapture() crashes in wayland mode

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8u111, 9
    • Fix Version/s: 11
    • Component/s: client-libs
    • Environment:

      Fedora 25 with Gnome desktop, Ubuntu 17.10 with Wayland

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

      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:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: