[1.1.0] Only recognise two monitors --- fixed 2015-06-24+

Bug #1462935 reported by Tangy
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

I have three monitors at windows 7 pro, 64 bit. I use Sikuli 1.1.0 (sikulixsetup-1.1.0-20150607.230955-97-forsetup.jar). The middle monitor is monitor 1 with a resolution 1920x1200. The left monitor is monitor 2 with a resolution 1280x1024. The right monitor is monitor 3 with a resolution 1920x1200.
I run this code:

Screen(0).highlight(3) // right monitor no. 3 highlighted
Screen(1).highlight(3) // left monitor no. 2 highlighted
Screen(2).highlight(3) // left monitor no. 2 highlighted

When the code run, first the right monitor no. 3 get highlighted, than the left monitor no. 2 get highlighted and finally the left monitor no. 2 get highlighted again. The middle monitor no. 1 never get highlighted.

I get following messages:

[log] highlight S(0)[0,0 1920x1200] E:Y, T:3,0 for 3.0 secs
[log] highlight S(1)[-3200,176 1280x1024] E:Y, T:3,0 for 3.0 secs
[log] highlight S(2)[-3200,176 1280x1024] E:Y, T:3,0 for 3.0 secs

For the left and the middle monitor I get negativ coordinates.

Anyway there are problems to recognise images. I run following single line code for each montior:

click( )

On the right monitor no. 3 Sikuli regonise the images.

On the middle monitor no. 2 I get an error:
[error] script [ Unbenannt ] stopped with error in line 1
[error] FindFailed ( can not find 1433753739736.png in R[0,0 1920x1200]@S(0) )

On the left monitor no. 2 I get an error:
[error] script [ Unbenannt ] stopped with error in line 1
[error] FindFailed ( can not find 1433753576223.png in R[0,0 1920x1200]@S(0) )

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.0] Jython: Only recognise two monitors

Seems to be a problem when running Jython scripts from IDE.

could you please start the IDE from command line using
runsikulix.cmd -d 3 -c

and then in the IDE run the command:
JScreen.showMonitors()

... and paste the output here. Thanks.

summary: - Only recognise two monitors
+ [1.1.0] Jython: Only recognise two monitors
Revision history for this message
Tangy (krueger-albert) wrote :

When I run

JScreen.showMonitors()

I get no output in the IDE. Only at the command line:

[debug] FileManager: tempfile create:
C:\Users\akr\AppData\Local\Temp\Sikulix_1072751614\sikuli-9064582352015424481.py

[debug] Jython: requested to use as default region: R[0,0 1920x1200]@S(0)
[debug] JythonScriptRunner: runPython: running script from IDE:
Unbenannt.sikuli
*** monitor configuration [ 3 Screen(s)] ***
*** Primary is Screen 0
Screen 0: S(0)[0,0 1920x1200]
Screen 1: S(1)[-3200,176 1280x1024]
Screen 2: S(2)[-3200,176 1280x1024]
*** end monitor configuration ***
[debug] Sikulix: cleanUp: 0

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

thanks (the option -c lets all output go to command line).

further towards the beginning of the debug output there should be a line starting
[debug] Screen: initScreens: ….

pls. post theses lines also. thanks.

Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.0] Jython: Only recognise two monitors --- fixed 2015-06-09+

Sorry, just found the problem - will be fixed with tomorrows build.

Changed in sikuli:
status: New → Fix Committed
importance: Undecided → Critical
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
summary: - [1.1.0] Jython: Only recognise two monitors
+ [1.1.0] Jython: Only recognise two monitors --- fixed 2015-06-09+
summary: - [1.1.0] Jython: Only recognise two monitors --- fixed 2015-06-09+
+ [1.1.0] Only recognise two monitors --- fixed 2015-06-09+
Revision history for this message
Tangy (krueger-albert) wrote : Re: [1.1.0] Only recognise two monitors --- fixed 2015-06-09+
Download full text (4.4 KiB)

Here is the output. I think first time I made a mistake because now I get more output.

C:\Users\akr\Documents\sikuli_1.1>runsikulix.cmd -d 3 -c
+++ running this Java
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\Users\akr\Documents\sikuli_1.1\sikulix.jar -d 3 -c
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr\AppData\Roaming\Sikulix\Si
kulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: ScreenDevice 2 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: fSxBase: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: runs as sikulix.jar in: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: exists libs folder at: C:\Users\akr\AppData\Roaming\Sikulix
\SikulixLibs_201506020100
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Users\akr\AppData\Roaming\Sikulix\SikulixLibs_201506020100
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
***** show environment for IDE (build 201506020100)
user.home: C:\Users\akr
user.dir (work dir): C:\Users\akr\Documents\sikuli_1.1
user.name: akr
java.io.tmpdir: C:\Users\akr\AppData\Local\Temp
running 64Bit on Windows (6.1) from a jar
java 7-64 version 1.7.0_71-b14 vm 24.71-b01 class 51.0 arch amd64
app data folder: C:\Users\akr\AppData\Roaming\Sikulix
libs folder: C:\Users\akr\AppData\Roaming\Sikulix\SikulixLibs_201506020100
executing jar: C:\Users\akr\Documents\sikuli_1.1\sikulix.jar
*** classpath dump sikulix
  0: /C:/Users/akr/Documents/sikuli_1.1/sikulix.jar
*** classpath dump end
***** show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] init user preferences
[debug] IDE: running with Locale: de_DE
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[info] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[debug] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] ScriptingSupport: initScriptingSupport: enter
[debug] JythonSupport: init: starting
[debug] JythonSupport: init: success
[debug] JythonSupport: ***** Jython sys.path
 0: C:\Users\akr\Documents\sikuli_1.1\Lib
 1: C:\Users\akr\Documents\sikuli_1.1\sikulix.jar\Lib
 2: __classpath__
 3: __pyclasspath__/
[debug] JythonSupport: ***** Jython sys.path end
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeIDE: loadLib: VisionProxy.dll
[debug] Mouse: init
[debug] KeyBoard: init
[debug] Screen: initScreens: multi monitor mouse check
[debug] Screen: *** checking: S(0)[0,0 1920x1200] center: (960, 600) --- OK
[debug] Screen: *** checking: S(1)[-3200,176 1280x1024] center: (-2560, 688) ---
 OK
[debug] Screen: *** checking: S(2)[-3200,176 1280x1024] center: (-2560, 68...

Read more...

Revision history for this message
Tangy (krueger-albert) wrote :

I saw your last post late. Thanks for the fast fix.

Revision history for this message
Tangy (krueger-albert) wrote :
Download full text (5.4 KiB)

I don't know if you fix the bug. But when I try again the output is different and still only the left and right monitor get highlighted. The output from "sikulixsetup-1.1.0-20150609.230942-99-forsetup.jar" is now:

C:\Users\akr\Documents\sikuli_1.1>runsikulix.cmd -d 3 -c
+++ running this Java
java version "1.7.0_71"
Java(TM) SE Runtime Environment (build 1.7.0_71-b14)
Java HotSpot(TM) 64-Bit Server VM (build 24.71-b01, mixed mode)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar
C:\Users\akr\Documents\sikuli_1.1\sikulix.jar -d 3 -c
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr
[debug] RunTimeINIT: loadOptions: check: C:\Users\akr\AppData\Roaming\Sikulix\Si
kulixStore
[debug] RunTimeINIT: global init: entering as: IDE
[debug] RunTimeINIT: ScreenDevice 2 has (0,0) --- will be primary Screen(0)
[debug] RunTimeINIT: fSxBase: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: runs as sikulix.jar in: C:\Users\akr\Documents\sikuli_1.1
[debug] RunTimeINIT: exists libs folder at: C:\Users\akr\AppData\Roaming\Sikulix
\SikulixLibs_201506020100
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Users\akr\AppData\Roaming\Sikulix\SikulixLibs_201506020100
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
***** show environment for IDE (build 201506020100)
user.home: C:\Users\akr
user.dir (work dir): C:\Users\akr\Documents\sikuli_1.1
user.name: akr
java.io.tmpdir: C:\Users\akr\AppData\Local\Temp
running 64Bit on Windows (6.1) from a jar
java 7-64 version 1.7.0_71-b14 vm 24.71-b01 class 51.0 arch amd64
app data folder: C:\Users\akr\AppData\Roaming\Sikulix
libs folder: C:\Users\akr\AppData\Roaming\Sikulix\SikulixLibs_201506020100
executing jar: C:\Users\akr\Documents\sikuli_1.1\sikulix.jar
*** classpath dump sikulix
  0: /C:/Users/akr/Documents/sikuli_1.1/sikulix.jar
*** classpath dump end
***** show environment end
[debug] RunTimeIDE: global init: leaving
[debug] RunTimeIDE: initIDEbefore: entering
[debug] RunTimeIDE: initIDEbefore: leaving
[debug] init user preferences
[debug] IDE: running with Locale: de_DE
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[info] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[debug] HotkeyManager: add Capture Hotkey: STRG+UMSCHALT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] HotkeyManager: add Abort Hotkey: ALT+UMSCHALT C (67, 9)
[debug] ScriptingSupport: initScriptingSupport: enter
[debug] JythonSupport: init: starting
[debug] JythonSupport: init: success
[debug] JythonSupport: ***** Jython sys.path
 0: C:\Users\akr\Documents\sikuli_1.1\Lib
 1: C:\Users\akr\Documents\sikuli_1.1\sikulix.jar\Lib
 2: __classpath__
 3: __pyclasspath__/
[debug] JythonSupport: ***** Jython sys.path end
[debug] Jython: sikuli: Sikuli: starting init
[debug] RunTimeIDE: loadLib: VisionProxy.dll
[error] Location: outside any screen (-110, 453) - subsequent actions might not
work as expected
[error] Location: outside any screen (-110, 453) - subsequent actions might not
work as expected
[debug] Mous...

Read more...

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

apparently not yet fixed, sorry.

Since I do not have any chance, to test with more than 2 monitors, I would highly appreciate, if you test again with tomorrows build.

I will add some more debug info.

Then you only need to post the section

***** show environment for IDE (build ...)
....
***** show environment end

Changed in sikuli:
importance: Critical → High
Revision history for this message
Tangy (krueger-albert) wrote :

The output of "sikulixsetup-1.1.0-20150611.230942-101-forsetup.jar" is

***** show environment for IDE (build 201506020100)
user.home: C:\Users\akr
user.dir (work dir): C:\Users\akr\Documents\sikuli_1.1
user.name: akr
java.io.tmpdir: C:\Users\akr\AppData\Local\Temp
running 64Bit on Windows (6.1) from a jar
java 7-64 version 1.7.0_71-b14 vm 24.71-b01 class 51.0 arch amd64
app data folder: C:\Users\akr\AppData\Roaming\Sikulix
libs folder: C:\Users\akr\AppData\Roaming\Sikulix\SikulixLibs_201506020100
executing jar: C:\Users\akr\Documents\sikuli_1.1\sikulix.jar
*** classpath dump sikulix
  0: /C:/Users/akr/Documents/sikuli_1.1/sikulix.jar
*** classpath dump end
***** show environment end

RaiMan (raimund-hocke)
summary: - [1.1.0] Only recognise two monitors --- fixed 2015-06-09+
+ [1.1.0] Only recognise two monitors --- fixed 2015-06-24+
Changed in sikuli:
importance: High → Critical
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.