Find(String) not functional

Bug #1584054 reported by h3kdM3x on 2016-05-20
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Sikuli
Undecided
Unassigned

Bug Description

Sikulix setup done by sikulixsetup-1.1.1-20160520.065527-27-forsetup.jar
OS Win 7 Pro
JRE 1.8.0_31

Function find() does not accept argument of type string.

Running this code >

# -*- coding: utf-8 -*
Debug.on(3)
import org.sikuli.script.TextRecognizer as TR
Settings.OcrReadText = True
Settings.OcrSearchText = True
Settings.OcrLanguage = "slk"
TR.reset()
#find("1463748965451.png")
find("Upozornenie")
#print m
#print m.getTarget()
r = Region(433,351,89,15)
r.highlight(5)

Causes >

[debug] FileManager: tempfile create: C:\Users\255304\AppData\Local\Temp\Sikulix_1244007538\sikuli-5908137321867601659.py
[debug] Jython: requested to use as default region: S(0)[0,0 1280x1024]

[debug] JythonScriptRunner: runPython: running script from IDE: Untitled.sikuli
[error] Image: could not be loaded: file:/C:/Users/255304/AppData/Local/Temp/Sikulix_1244007538/tmp-1705873482.sikuli/Upozornenie.png
[debug] Region: handleImageMissing: Upozornenie.png (capture missing )
[error] RunTimeIDE: Exists: Abort: Jython: at sikuli-5908137321867601659 (1)
[error] RunTimeIDE: ImageMissing: Upozornenie
[debug] IDE: Scriptrun: cleanup in handler for uncaughtException: java.nio.BufferOverflowException

[debug] Sikulix: cleanUp: 0

[debug] Image: purge: ImagePath: /C:/Users/255304/AppData/Local/Temp/Sikulix_1244007538/tmp-1705873482.sikuli/
[debug] ImagePath: new BundlePath: /C:/Work/AUT/c.sikuli/

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers