sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #26787
[Bug 1336804] Re: Image searching fails when primary screen is not screen 0
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 changed:
- 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
** Changed in: sikuli
Importance: Undecided => High
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 1.1.0
** Changed in: sikuli
Status: In Progress => Fix Committed
--
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:
[1.1.0-Beta2] Windows 7: Image searching fails when primary screen is
not screen 0
Status in Sikuli:
Fix Committed
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
References