[1.1.0-Beta2] Windows 7: Image searching fails when primary screen is not screen 0 --- fixed 1.1.0 (2015-05-15+)

Bug #1336804 reported by Tim Green
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

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.

Revision history for this message
RaiMan (raimund-hocke) wrote :

Can you send me a screenshot of the monitor settings page in the failing case:
left: 1440x900
right: 1920x1200 having the desktop (primary screen)

start the IDE from command line with parameters
-d 3 -c

and do some simple tests like:
Screen(0).find(capture())
Screen(1).find(capture())

and send the log file and the above screenshot silently to my mail at https://launchpad.net/~raimund-hocke

thanks.

BTW: I tested the fixes on Win 8.1 64 and had no problems like this.

summary: - Image searching fails when primary screen is not screen 0
+ [1.1.0-Beta2] Windows 7: Image searching fails when primary screen is
+ not screen 0
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
status: In Progress → Fix Committed
Revision history for this message
Tim Green (m-launchpad-q) wrote : Re: [1.1.0-Beta2] Windows 7: Image searching fails when primary screen is not screen 0

I've setup the screen as instructed and run the tests - first find on screen 0 fails, second succeeds.

Let me know if you need anything else... thanks!

RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
summary: [1.1.0-Beta2] Windows 7: Image searching fails when primary screen is
- not screen 0
+ not screen 0 --- fixed 1.1.0 (2015-05-15+)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.