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

On wayland sun.awt.screencast.ScreencastHelper.closeSession() never returns

XMLWordPrintable

    • generic
    • generic

      ADDITIONAL SYSTEM INFORMATION :
      Garuda linux with latest pipewire 1.2.2-2.

      A DESCRIPTION OF THE PROBLEM :
      When grabbing screenshot via Robot class, it will grab the screenshot but then closeSession() will be called by background task and that will never return thus deadlocking any attempt to get another screenshot.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create robot.
      Grab screen shot.
      Wait at least 2 seconds.
      Grab another screenshot

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Getting another screenshot
      ACTUAL -
      getRGBPixels method deadlocks on waiting for closeSession to return (they are both synchronized)

      CUSTOMER SUBMITTED WORKAROUND :
      I tried to instrument class to ignore closeSession but since it's internal class it did not work

      FREQUENCY : always

            azvegint Alexander Zvegintsev
            pnarayanaswa Praveen Narayanaswamy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: