← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #681587]: [1.1.4]After run [Take screenshot], sikulixIDE window disappear

 

Question #681587 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/681587

    Status: Open => Answered

RaiMan proposed the following answer:
I checked with the latest build of IDE 1.1.4 from today on Windows 10-64
latest on Java 8 and with Java 12.

Linda has in her IDE preferences, that the screenshot's image filename
should be generated by trying to read some text from the captured image.
This triggers the startup of the Tesseract stuff, which in turn leads to
an exception with the Java JNA stuff.

from the log:
....
                at com.sun.jna.Native.register(Native.java:1360)
                at net.sourceforge.tess4j.TessAPI1.<clinit>(TessAPI1.java:41)
                at org.sikuli.script.TextRecognizer.start(TextRecognizer.java:92)
                at org.sikuli.ide.PatternPaneNaming.getFilenameFromImage(PatternPaneNaming.java:130)
                at org.sikuli.ide.ButtonCapture.update(ButtonCapture.java:144)
                at org.sikuli.util.OverlayCapturePrompt.notifyObserver(OverlayCapturePrompt.java:266)
                at org.sikuli.util.OverlayCapturePrompt$1.mouseReleased(OverlayCapturePrompt.java:138)
...

This usually happens if there is a Java classpath in the system
environment, that has a JNA version specified, that does not work with
SikuliX (it has the version 5.3.1 bundled).

My tests with a clean environment (no Java classpath) did not show up
with any problems and named the image files with text, that could be
read from the image.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.