← Back to team overview

sikuli-driver team mailing list archive

[Bug 1528930] Re: VisionProxy.dll Library Loading Errror on Command LIne

 

Raiman, can you able to change to code to not refer to
HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Pref and be independent of Windows
registry?

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

Title:
  VisionProxy.dll Library Loading Errror on Command LIne

Status in Sikuli:
  Invalid

Bug description:
  I am I able to run Sikuli via command line:
  C:\pathtosikuli\runsikulix.cmd -r C:\Sikuli\scripts\mysikulscript.sikuli -- arg1 arg2

  however, I am getting java.util.prefs.WindowsPreferences (init)
  WARNING: could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.

  I am trying to call Sikuli script via my VBA Exell app:
  retVal = Shell("C:\pathtosikuli\runsikulix.cmd -r C:\Sikuli\scripts\mysikulscript.sikuli -- arg1 arg2",vbNormalFocus)

  Here I have -Dsikuli.Debug=3  for debugging information

  Here is the log file of failed execusion:

  +++  inside CHECKJAVA
  +++ running this Java
  +++  inside JAVA_OK_PATH
  +++ SIKULI_HOME C:\Users\username\Desktop\Sikuli\Run\
  +++ trying to run SikuliX
  +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -Dsikuli.Debug=3 -jar C:\Users\username\Desktop\Sikuli\Run\sikulix.jar -r "\\network	est\01 WI Standardization & Automation\Passenger Cabin\WLI_extract.sikuli" -- YT791
  [debug] RunTimeINIT: loadOptions: check: C:\Users\username\Desktop\Sikuli\Run
  [debug] RunTimeINIT: loadOptions: check: C:\Users\username
  [debug] RunTimeINIT: loadOptions: check: C:\Users\username\AppData\Roaming\Sikulix\SikulixStore
  [debug] RunTimeINIT: global init: entering as: IDE
  [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
  [debug] RunTimeINIT: Monitor 0: (0, 0) 1920 x 1080
  [debug] RunTimeINIT: Monitor 1: (1920, -120) 1600 x 1200
  [debug] RunTimeINIT: Monitor 2: (3520, 30) 1680 x 1050
  [debug] RunTimeINIT: runs as sikulix.jar in: C:\Users\username\Desktop\Sikuli\Run
  [debug] RunTimeINIT: exists libs folder at: C:\Users\username\AppData\Roaming\Sikulix\SikulixLibs_201510051707
  [debug] RunTimeINIT: libs folder empty or has wrong content
  [debug] RunTimeINIT: now exporting libs
  [debug] RunTimeINIT: libs to export are at:
  jar:file:/C:/Users/username/Desktop/Sikuli/Run/sikulix.jar!/sikulixlibs/windows/libs32
  [debug] RunTimeINIT: resourceList: enter
  [debug] RunTimeINIT: resourceLocation: (class org.sikuli.ide.SikuliIDE) /sikulixlibs/windows/libs32
  [debug] RunTimeINIT: resourceList: having jar: jar:file:/C:/Users/username/Desktop/Sikuli/Run/sikulix.jar!/sikulixlibs/windows/libs32
  [debug] RunTimeINIT: files exported: 17 from: /sikulixlibs/windows/libs32 to:
   C:\Users\username\AppData\Roaming\Sikulix\SikulixLibs_201510051707
  ***** show environment for IDE (build 201510051707)
  user.home: C:\Users\username
  user.dir (work dir): C:\Users\username\Desktop\Sikuli\Run
  user.name: username
  java.io.tmpdir: C:\Users\username\AppData\Local\Temp
  running 32Bit on Windows (6.1) from a jar
  java 7-32 version 1.7.0_55-b13 vm 24.55-b03 class 51.0 arch x86
  app data folder: C:\Users\username\AppData\Roaming\Sikulix
  libs folder: C:\Users\username\AppData\Roaming\Sikulix\SikulixLibs_201510051707
  executing jar: C:\Users\username\Desktop\Sikuli\Run\sikulix.jar
  *** classpath dump sikulix
    0: /C:/Users/username/Desktop/Sikuli/Run/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] IDE: Switching to ScriptRunner with option -r, -t or -i
  [debug] Runner: commandline: -r "\\network\test_extract.sikuli" -- Y11
  [debug] --- Sikuli parameters ---
  [debug] 1: -r
  [debug] 2: \\network\test_extract.sikuli
  [debug] --- User parameters ---
  [debug] 1: Y11
  [debug] ScriptingSupport: givenScriptName:
  \\network\test_extract.sikuli
  [debug] ScriptingSupport: Trying to run script:
  \\network\test_extract.py
  [debug] ScriptingSupport: initScriptingSupport: enter
  [debug] JythonSupport: init: starting
  [debug] JythonSupport: init: success
  [debug] JythonSupport: ***** Jython sys.path
   0: C:\Users\username\Desktop\Sikuli\Run\Lib
   1: C:\Users\username\Desktop\Sikuli\Run\sikulix.jar\Lib
   2: __classpath__
   3: __pyclasspath__/
  [debug] JythonSupport: ***** Jython sys.path end
  [debug] Jython: sikuli: Sikuli: starting init
  [error] RunTimeIDE: Problematic lib: C:\Users\username\AppData\Roaming\Sikulix\SikulixLibs_201510051707\VisionProxy.dll (...TEMP...)
  [error] RunTimeIDE: VisionProxy.dll loaded, but it might be a problem with needed dependent libraries
  ERROR: ...TEMP...: The specified procedure could not be found
  [error] RunTimeIDE:  *** terminating: problem with native library: VisionProxy.dll
  [debug] RunTimeIDE: final cleanup
  [debug] FileManager: deleteFileOrFolder:
  C:\Users\username\AppData\Local\Temp\Sikulix_469029050\

  Here is the execution log file of working commandline:

  +++ SIKULIX_HOME specified but not useable %~dp0
  +++  inside CHECKJAVA
  +++ running this Java
  +++  inside JAVA_OK_PATH
  +++ SIKULI_HOME C:\Users\username\Desktop\Sikuli\Run\
  +++ trying to run SikuliX
  +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -Dsikuli.Debug=3 -jar C:\Users\username\Desktop\Sikuli\Run\sikulix.jar -r "\\network\test_extract.sikuli" -- YT791
  [debug] RunTimeINIT: loadOptions: check: C:\Users\username
  [debug] RunTimeINIT: loadOptions: check: C:\Users\username
  [debug] RunTimeINIT: loadOptions: check: C:\Users\username\AppData\Roaming\Sikulix\SikulixStore
  [debug] RunTimeINIT: global init: entering as: IDE
  [debug] RunTimeINIT: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
  [debug] RunTimeINIT: Monitor 0: (0, 0) 1920 x 1080
  [debug] RunTimeINIT: Monitor 1: (1920, -120) 1600 x 1200
  [debug] RunTimeINIT: Monitor 2: (3520, 30) 1680 x 1050
  [debug] RunTimeINIT: runs as sikulix.jar in: C:\Users\username\Desktop\Sikuli\Run
  [debug] RunTimeINIT: exists libs folder at: C:\Users\username\AppData\Roaming\Sikulix\SikulixLibs_201510051707
  [debug] RunTimeINIT: libs folder empty or has wrong content
  [debug] RunTimeINIT: now exporting libs
  [debug] RunTimeINIT: libs to export are at:
  jar:file:/C:/Users/username/Desktop/Sikuli/Run/sikulix.jar!/sikulixlibs/windows/libs64
  [debug] RunTimeINIT: resourceList: enter
  [debug] RunTimeINIT: resourceLocation: (class org.sikuli.ide.SikuliIDE) /sikulixlibs/windows/libs64
  [debug] RunTimeINIT: resourceList: having jar: jar:file:/C:/Users/username/Desktop/Sikuli/Run/sikulix.jar!/sikulixlibs/windows/libs64
  [debug] RunTimeINIT: files exported: 17 from: /sikulixlibs/windows/libs64 to:
   C:\Users\username\AppData\Roaming\Sikulix\SikulixLibs_201510051707
  ***** show environment for IDE (build 201510051707)
  user.home: C:\Users\username
  user.dir (work dir): C:\Users\username
  user.name: username
  java.io.tmpdir: C:\Users\username\AppData\Local\Temp
  running 64Bit on Windows (6.1) from a jar
  java 7-64 version 1.7.0_55-b13 vm 24.55-b03 class 51.0 arch amd64
  app data folder: C:\Users\username\AppData\Roaming\Sikulix
  libs folder: C:\Users\username\AppData\Roaming\Sikulix\SikulixLibs_201510051707
  executing jar: C:\Users\username\Desktop\Sikuli\Run\sikulix.jar
  *** classpath dump sikulix
    0: /C:/Users/username/Desktop/Sikuli/Run/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] IDE: Switching to ScriptRunner with option -r, -t or -i
  [debug] Runner: commandline: -r "\\network\test_extract.sikuli" -- Y11
  [debug] --- Sikuli parameters ---
  [debug] 1: -r
  [debug] 2: \\network\test_extract.sikuli
  [debug] --- User parameters ---
  [debug] 1: Y11
  [debug] ScriptingSupport: givenScriptName:
  \\network\test_extract.sikuli
  [debug] ScriptingSupport: Trying to run script:
  \\network\test_extract.py
  [debug] ScriptingSupport: initScriptingSupport: enter
  [debug] JythonSupport: init: starting
  [debug] JythonSupport: init: success
  [debug] JythonSupport: ***** Jython sys.path
   0: C:\Users\username\Desktop\Sikuli\Run\Lib
   1: C:\Users\username\Desktop\Sikuli\Run\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

  
  I have noticed VBA shell version tried to load 32 bit version of java 7 1.7.0_55 vs 64 bit version of the working one.

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


References