← Back to team overview

sikuli-driver team mailing list archive

[Bug 1336804] [NEW] Image searching fails when primary screen is not screen 0

 

Public bug reported:

SikuliX 1.1 beta 2
Windows 7 Enterprise

I've had this happen repeatedly with many different types of image
tests. Below is just a simple example that shows a typical error.

My setup: 2 monitors, smaller one to the *left* of my primary. So
monitor on left is 1440x900, primary monitor on right is 1920x1200.

With this code:

    scr=SCREEN
    print scr
    with scr:
        wait("1404305626472.png",20)

the following is the output:

   S(1)[1442,2 1916x1196] E:Y, T:3.0

   [error] script [ login ] stopped with error in line 57
   [error] FindFailed ( can not find 1404305626472.png in R[1442,2 478x1196]@S(1) )


Notice the reported region size on the FindFailed message - it does not match the size of the region actually specified and output when the screen size is printed.  Same error exists when I try to hard-code the region coordinates as as well. Notice that the reported search coordinates mention an X size of 478 = 1920 (size of second, primary monitor)-1442(reported starting x coordinate of second screen)

If I switch my monitors so that the primary 1920x1200 monitor is on the
left and thus screen 0, everything works fine.

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1336804

Title:
  Image searching fails when primary screen is not screen 0

Status in Sikuli:
  New

Bug description:
  SikuliX 1.1 beta 2
  Windows 7 Enterprise

  I've had this happen repeatedly with many different types of image
  tests. Below is just a simple example that shows a typical error.

  My setup: 2 monitors, smaller one to the *left* of my primary. So
  monitor on left is 1440x900, primary monitor on right is 1920x1200.

  With this code:

      scr=SCREEN
      print scr
      with scr:
          wait("1404305626472.png",20)

  the following is the output:

     S(1)[1442,2 1916x1196] E:Y, T:3.0

     [error] script [ login ] stopped with error in line 57
     [error] FindFailed ( can not find 1404305626472.png in R[1442,2 478x1196]@S(1) )

  
  Notice the reported region size on the FindFailed message - it does not match the size of the region actually specified and output when the screen size is printed.  Same error exists when I try to hard-code the region coordinates as as well. Notice that the reported search coordinates mention an X size of 478 = 1920 (size of second, primary monitor)-1442(reported starting x coordinate of second screen)

  If I switch my monitors so that the primary 1920x1200 monitor is on
  the left and thus screen 0, everything works fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1336804/+subscriptions


Follow ups

References