[1.1.0-Beta2] Windows 7: Image searching fails when primary screen is not screen 0 --- fixed 1.1.0 (2015-05-15+)
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:
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)
If I switch my monitors so that the primary 1920x1200 monitor is on the left and thus screen 0, everything works fine.
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+) |
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: 0).find( capture( )) 1).find( capture( ))
Screen(
Screen(
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.