← Back to team overview

sikuli-driver team mailing list archive

[Bug 1541146] Re: Capture Problem with Multiple Monitors

 

** Changed in: sikuli
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1541146

Title:
  Capture Problem with Multiple Monitors

Status in Sikuli:
  Fix Released

Bug description:
  Using Windows 7 (32-Bit) and a Nvidia NVS 510 Multi-Monitor Card (4)

  After installing SikuliX (1.1.0) , in order to run, I had to increase
  the amount of memory available for Java, but once done, the IDE
  started.  But then, when I went to Capture an image for Find(), the
  screen darkened, then darkened again, then again, and again (pretty
  black) with the wording to Select Image on all the screens.  When I
  did, it showed basically a Black image for the thumbnail.  And then it
  was unable to Find() it.  I tried unplugging all but one of the
  monitors, and it worked!  As I added each monitor in, the screen
  became progressively darker with attempted capture.

  I have seen many similar problems, but they all seem to be related to
  changes in the configuration done after startup.

  From the Debug output, it looks like Sikuli sees the monitors.  Any
  assistance appreciated.

  
  C:\SikuliX>runsikulix -d 3 -c
  +++ JAVA_HOME specified but not useable C:\Program Files\Java\jre1.8.0_25
  +++ looking for Java in system path and then in standard places
  +++ running this Java
  java version "1.7.0_75"
  Java(TM) SE Runtime Environment (build 1.7.0_75-b13)
  Java HotSpot(TM) Client VM (build 24.75-b04, mixed mode)
  +++ trying to run SikuliX
  +++ using: -Xms256M -Xmx1024M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -ja
  r C:\SikuliX\sikulix.jar -d 3 -c
  [debug] RunTimeINIT: loadOptions: check: C:\SikuliX
  [debug] RunTimeINIT: loadOptions: check: C:\Users\auto_eicuhis8
  [debug] RunTimeINIT: loadOptions: check: C:\Users\auto_eicuhis8\AppData\Roaming\
  Sikulix\SikulixStore
  [debug] RunTimeINIT: global init: entering as: IDE
  [debug] RunTimeINIT: Monitor 0: (0, -1200) 1920 x 1200
  [debug] RunTimeINIT: Monitor 1: (1920, 0) 1920 x 1200
  [debug] RunTimeINIT: ScreenDevice 2 has (0,0) --- will be primary Screen(0)
  [debug] RunTimeINIT: Monitor 2: (0, 0) 1920 x 1200
  [debug] RunTimeINIT: Monitor 3: (1920, -1200) 1920 x 1200
  [debug] RunTimeINIT: runs as sikulix.jar in: C:\SikuliX
  [debug] RunTimeINIT: exists libs folder at: C:\Users\auto_eicuhis8\AppData\Roami
  ng\Sikulix\SikulixLibs_201510051707
  [debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
  C:\Users\auto_eicuhis8\AppData\Roaming\Sikulix\SikulixLibs_201510051707
  [debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
  ***** show environment for IDE (build 201510051707)
  user.home: C:\Users\auto_eicuhis8
  user.dir (work dir): C:\SikuliX
  user.name: auto_eicuhis8
  java.io.tmpdir: C:\Users\AUTO_E~4\AppData\Local\Temp
  running 32Bit on Windows (6.1) from a jar
  java 7-32 version 1.7.0_75-b13 vm 24.75-b04 class 51.0 arch x86
  app data folder: C:\Users\auto_eicuhis8\AppData\Roaming\Sikulix
  libs folder: C:\Users\auto_eicuhis8\AppData\Roaming\Sikulix\SikulixLibs_20151005
  1707
  executing jar: C:\SikuliX\sikulix.jar
  *** classpath dump sikulix
    0: /C:/SikuliX/sikulix.jar
  *** classpath dump end
  ***** show environment end
  [debug] RunTimeIDE: global init: leaving
  [debug] RunTimeIDE: initIDEbefore: entering
  [debug] RunTimeIDE: initIDEbefore: leaving
  [debug] RunTimeIDE: initAPI: entering
  [debug] RunTimeIDE: initAPI: leaving
  [debug] init user preferences
  [debug] IDE: running with Locale: en_US
  [debug] --- Sikuli parameters ---
  [debug] 1: -d
  [debug] 2: 3
  [debug] 3: -c
  [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
  [debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
  [info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
  [debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
  [debug] ScriptingSupport: initScriptingSupport: enter
  [debug] JythonSupport: init: starting
  [debug] JythonSupport: init: success
  [debug] JythonSupport: ***** Jython sys.path
  0: C:\SikuliX\Lib
  1: C:\SikuliX\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)[0,-1200 1920x1200] center: (960, -600) --- OK
   
  [debug] Screen: *** checking: S(2)[1920,0 1920x1200] center: (2880, 600) --- OK
  [debug] Screen: *** checking: S(3)[1920,-1200 1920x1200] center: (2880, -600) --
  - OK
  [debug] RunTimeIDE: loadLib: WinUtil.dll
  [debug] Jython: requested to use as default region: R[0,0 1920x1200]@S(0)
  [debug] Jython: sikuli: Sikuli: ending init
  [debug] JythonScriptRunner: running Jython 2.7.0
  [debug] ScriptingSupport: initScriptingSupport: added: jython
  [debug] ScriptingSupport: initScriptingSupport: exit with defaultrunner: jython
  (py)
  [debug] IDE: Adding components to window
  [debug] [I18N] menuRecent
  [debug] IDE: creating tabbed editor
  [debug] IDE: creating message area
  [debug] IDE: creating combined work window
  [debug] IDE: Putting all together
  [debug] restore session: C:\SikuliX\Nates.sikuli
  [debug] IDE: doNew: create new tab at: -1
  [debug] EditorPane: EditorPane: creating new pane (constructor)
  [debug] EditorPane: loadfile: C:\SikuliX\Nates.sikuli
  [debug] ImagePath: new BundlePath:
  /C:/SikuliX/Nates.sikuli/
  [debug] EditorPane: initBeforeLoad: py
  [debug] EditorPane: updateDocumentListeners from: initBeforeLoad
  [debug] EditorPane: InitTab: (text/python)
  [debug] SikuliEditorKit.read
  [debug] Image: loaded: 1454425189029.png (file:/C:/SikuliX/Nates.sikuli/14544251
  89029.png)
  [debug] Image: cached: 1454425189029.png (92 KB) (# 1 KB 92 -- 0 % of 64 MB)
  [debug] ThumbButtonLabel: setTargetOffset: L(-4,-2)
  [debug] EditorPane: updateDocumentListeners from: loadFile
  [info] IDE startup:  4.1 seconds
  [debug] IDE startup:  4.1 seconds
  [debug] ScreenUnion: getIdFromPoint: (935, 677) as (935, -523) in (0, -1200, 384
  0, 2400) on 1
  [debug] captureCompleted: C:/SikuliX/Nates.sikuli/1454427591528.png
  [debug] click(find(find( )

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1541146/+subscriptions


References