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

java/awt/Robot Screen Capture tests fail after 8280861

XMLWordPrintable

    • b15

      java/awt/Robot/HiDPIScreenCapture/HiDPIRobotScreenCaptureTest.java often on Windows

      Log from a Windows 10 system
      Creating screen capture of java.awt.Rectangle[x=83,y=97,width=400,height=300]
      Checking rectangle java.awt.Rectangle[x=0,y=0,width=200,height=150] to have color java.awt.Color[r=0,g=255,b=0]
      Checking color at java.awt.Point[x=5,y=5] to be equal to java.awt.Color[r=0,g=255,b=0]... OK
      Checking color at java.awt.Point[x=195,y=5] to be equal to java.awt.Color[r=0,g=255,b=0]... OK
      Checking color at java.awt.Point[x=100,y=75] to be equal to java.awt.Color[r=0,g=255,b=0]... OK
      Checking color at java.awt.Point[x=5,y=145] to be equal to java.awt.Color[r=0,g=255,b=0]... OK
      Checking color at java.awt.Point[x=195,y=145] to be equal to java.awt.Color[r=0,g=255,b=0]... OK
      Checking rectangle java.awt.Rectangle[x=200,y=0,width=200,height=150] to have color java.awt.Color[r=0,g=0,b=255]
      Checking color at java.awt.Point[x=205,y=5] to be equal to java.awt.Color[r=0,g=0,b=255]... OK
      Checking color at java.awt.Point[x=395,y=5] to be equal to java.awt.Color[r=0,g=0,b=255]... Mismatch: found java.awt.Color[r=0,g=0,b=0] instead. Check image.png.
      ----------System.err:(12/735)----------
      java.lang.RuntimeException: Wrong image color!
      at HiDPIRobotScreenCaptureTest.checkRectColor(HiDPIRobotScreenCaptureTest.java:146)
      at HiDPIRobotScreenCaptureTest.main(HiDPIRobotScreenCaptureTest.java:119)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:828)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Wrong image color!
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Wrong image color!

        There are no Sub-Tasks for this issue.

            mkartashev Maxim Kartashev
            prr Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: