[1.1.0] screen coordinates change after snapshot --- fixed 2015-06-24

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

Bug Description

Sikuli version: 1.1.0 nightly build
OS: Win 7 64-bit

Setup:
My hardware setup is a laptop with 3 external monitors. (Laptop is closed so laptop monitor itself is not in use.)
Sikuli reports screens as follows:

Number of screens is 3
java.awt.Rectangle[x=0,y=0,width=1920,height=1080]
java.awt.Rectangle[x=1920,y=0,width=1680,height=1050]
java.awt.Rectangle[x=-1600,y=0,width=1600,height=900]

which is correct. And I can reliably run sikuli scripts.

Problem:

I found that if I take a screenshot, then following this the screen(0) coordinates are now offset. Resulting execution of sikuli scripts will fail because of this. In other words sikuli will now report:

Number of screens is 3
java.awt.Rectangle[x=1602,y=2,width=1916,height=1076] <--- note change in x,y on screen(0)
java.awt.Rectangle[x=1920,y=0,width=1680,height=1050]
java.awt.Rectangle[x=-1600,y=0,width=1600,height=900]

The problem usually manifests as an error message like:

[log] CLICK on L(1624,187)@S(0)[1602,2 1916x1076]
[error] Location: outside any screen (1381, 523) - subsequent actions might not work as expected

To reproduce:

run the attached project and note correct coordinates.
Take a screenshot and paste into junk() method
run the project again and it will fail with wrong coordinates.

Also see SikulixDebug.txt file included in the project.

Revision history for this message
mikemorg (mike-morganelli) wrote :
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.0] screen coordinates change after snapshot

Thanks for the reminder and the input.
I plan to have this fixed in the final 1.1.0.

Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
summary: - screen coordinates change after snapshot
+ [1.1.0] screen coordinates change after snapshot
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
summary: - [1.1.0] screen coordinates change after snapshot
+ [1.1.0] screen coordinates change after snapshot --- fixed 2015-06-24
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.