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

Robot produces black screenshots on remote Windows 2012 or 8.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P3 P3
    • 9
    • 9
    • client-libs
    • None
    • windows_2012

      Tests run successfully as if there is a headful environment but all the captured screenshots are black.

      java.awt.Robot.createScreenCapture(rectangle) method is used.

      Here is the scenario to reproduce:

      Use Remote Desktop connection to run the app that is taking the screenshot.
      Leave it running and disconnect the session.
      Screenshots obtained after the disconnection will be black.

      Similar scenario is jenkins build running on the Windows Server 2012. It won't fail with headless exception but all the screenshots will be black.

      I believe Robot should throw an exception rather than returning all black screenshots.

            ssadetsky Semyon Sadetsky (Inactive)
            mrkam Alexander Kuznetcov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: