VisionProxy.dll not available in AppData\Roaming\Sikulix\SikulixLibs_201712071454

Asked by Cynthia N

Hello,

I am trying to execute image search function with SikuliX and Appium, however upon executing the SikuliX API I am getting the error:

[error] RunTimeAPI: *** terminating: loadlib: VisionProxy.dll not available in C:\Users\cn713c\AppData\Roaming\Sikulix\SikulixLibs_201712071454

I've followed the documentation regarding adding SikuliX dependency to Maven but for some reason it appears it is not able to export the required libs.

More information is below. I've researched for full Maven setup with SikuliX but the dependency is the only step I am aware of that is required. Is there a configuration step that is missing that could be causing this error?

Fixes Tried:
1. Adding SNAPSHOT dependency in Maven
2. Updating 32-bit Java to 64-bit Java on 64-bit Windows 7

Environment Info:

Windows 7 Professional – 64-bit
Eclipse Oxygen Release (4.7.0)
Apache Tomcat 9.0
Java JDK 1.8.0_151
Appium v1.7.1
Spring MVC 5.0.0
SikuliX 1.1.1

pom.xml

<!-- https://github.com/RaiMan/SikuliX-2014/wiki/How-to-use-with-Maven -->
    <dependency>
        <groupId>com.sikulix</groupId>
        <artifactId>sikulixapi</artifactId>
        <version>1.1.1</version>
    </dependency>

Error

[debug] Debug.init: from sikuli.Debug: on: 3
[debug] RunTimeINIT: loadOptions: check: C:\Users\cn713c\Desktop\eclipse-java-oxygen-R-win32\eclipse
[debug] RunTimeINIT: loadOptions: check: C:\Users\cn713c
[debug] RunTimeINIT: loadOptions: check: C:\Users\cn713c\AppData\Roaming\Sikulix\SikulixStore
[debug] RunTimeINIT: global init: entering as: API
[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: (0, -1080) 1920 x 1080
[debug] RunTimeINIT: Monitor 2: (-1920, -1080) 1920 x 1080
[debug] RunTimeINIT: runs as sikulixapi-1.1.1.jar in: C:\Users\cn713c\Documents\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\AutomationEngine\WEB-INF\lib
[debug] RunTimeINIT: exists libs folder at: C:\Users\cn713c\AppData\Roaming\Sikulix\SikulixLibs_201711011200
[debug] RunTimeINIT: libs folder empty or has wrong content
[debug] RunTimeINIT: now exporting libs
[debug] RunTimeINIT: addToClasspath:
file:/C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixapi-1.1.1.jar
[debug] RunTimeINIT: libs to export are at:
jar:file:/C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixlibswin-1.1.1.jar!/sikulixlibs/windows/libs64/
[debug] RunTimeINIT: resourceList: enter
[debug] RunTimeINIT: resourceLocation: (class org.sikuli.script.RunTime) /sikulixlibs/windows/libs64
[debug] RunTimeINIT: resourceList: having jar: jar:file:/C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixlibswin-1.1.1.jar!/sikulixlibs/windows/libs64/
[debug] RunTimeINIT: files exported: 0 from: /sikulixlibs/windows/libs64 to:
 C:\Users\cn713c\AppData\Roaming\Sikulix\SikulixLibs_201711011200
[debug] RunTimeINIT: addToWindowsSystemPath: added to systempath:
C:\Users\cn713c\AppData\Roaming\Sikulix\SikulixLibs_201711011200
[debug] RunTimeINIT: checkJavaUsrPath: added to ClassLoader.usrPaths
***** show environment for API (build 201711011200)
user.home: C:\Users\cn713c
user.dir (work dir): C:\Users\cn713c\Desktop\eclipse-java-oxygen-R-win32\eclipse
user.name: cn713c
java.io.tmpdir: C:\Users\cn713c\AppData\Local\Temp
running 64Bit on Windows (6.1) from a jar
java 8-64 version 1.8.0_151-b12 vm 25.151-b12 class 52.0 arch amd64
app data folder: C:\Users\cn713c\AppData\Roaming\Sikulix
libs folder: C:\Users\cn713c\AppData\Roaming\Sikulix\SikulixLibs_201711011200
executing jar: C:\Users\cn713c\Documents\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp1\wtpwebapps\AutomationEngine\WEB-INF\lib\sikulixapi-1.1.1.jar
*** classpath dump sikulix
  3: /C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixapi-1.1.1.jar
*** classpath dump end
***** show environment end
[debug] RunTimeAPI: global init: leaving
[debug] RunTimeAPI: initAPI: entering
[debug] RunTimeAPI: resourceList: enter
[debug] RunTimeAPI: resourceLocation: (class org.sikuli.script.RunTime) /Lib
[debug] RunTimeAPI: resourceList: having jar: jar:file:/C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixapi-1.1.1.jar!/Lib/
[debug] RunTimeAPI: files exported: 0 from: Lib to:
 C:\Users\cn713c\AppData\Roaming\Sikulix\Lib
[debug] RunTimeAPI: initAPI: leaving
[error] RunTimeAPI: *** terminating: loadlib: VisionProxy.dll not available in C:\Users\cn713c\AppData\Roaming\Sikulix\SikulixLibs_201711011200
[debug] RunTimeAPI: final cleanup
[debug] FileManager: deleteFileOrFolder:
C:\Users\cn713c\AppData\Local\Temp\Sikulix_1136682687

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

I made a test with a plain Java application using a Maven build.
see: https://github.com/RaiMan/SikuliX-2014/tree/develop/MavenRun

I ran this on a Windows 10 64-Bit with Java 1.8 latest.

It works a s expected and especially exports the correct library dll's to the libs folder.

So it seems to have something to do with your special setup/environment.

It looks like the SikuliX jar files are not taken from a local Maven repository, but from some Eclipse related internal lib folder.

The problem exists between these 2 steps: (only this is relevant)
--1: [debug] RunTimeINIT: resourceList: having jar: jar:file:/C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixlibswin-1.1.1.jar!/sikulixlibs/windows/libs64/

--2: [debug] RunTimeINIT: files exported: 0 from: /sikulixlibs/windows/libs64 to:

in between the mentioned jar file containing the libs is scanned for the lib files according to a list before read using getResource(), which worked, since no errors are reported (all guarded with try/catch).
The libs are extracted using ZipInputStream, but no errors are reported in your case.

Conclusion: I have no idea.

You might raise the Debug level to 4, to eventually get additional messages.

BTW: later we have the same problem with the Lib folder from sikulixapi.jar
debug] RunTimeAPI: resourceList: having jar: jar:file:/C:/Users/cn713c/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/AutomationEngine/WEB-INF/lib/sikulixapi-1.1.1.jar!/Lib/
[debug] RunTimeAPI: files exported: 0 from: Lib to:

Revision history for this message
Abilashkar (abilashkar) said :
#2

Hi Railman,
I am also facing the same issue when i use to run the project in eclipse its running. After taking maven build and executing the same in same system it is throwing the same error and execution is getting stopped. Please let us know is there any solution for this . My system is win 10 64 bit.

Revision history for this message
Abilashkar (abilashkar) said :
#3

using dependency
<dependency>
   <groupId>com.sikulix</groupId>
   <artifactId>sikulixapi</artifactId>
   <version>1.1.2</version>
  </dependency>

Can you help with this problem?

Provide an answer of your own, or ask Cynthia N for more information if necessary.

To post a message you must log in.