[2.0.4] SikuliXception in exists function, if image is larger than image to search in --- by intention

Bug #1887941 reported by umesh on 2020-07-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sikuli
Undecided
RaiMan

Bug Description

Sikuli version : 20x
OS: win 10
reduced code for issue:

r = Region(0, 0, 5, 5)
r.exists(r"anyLittleBigImage.png")

Throws SikuliXception. Traces are:

[error] script [ sikulitemp-737716647910362225 ] stopped with error in line 2
[error] org.sikuli.script.SikuliXception ( org.sikuli.script.SikuliXception: image to search (849, 335) is larger than image to search in (5, 5) )
[error] --- Traceback --- error source first
line: module ( function ) statement
2: main ( <module> ) r.exists(r"anyLittleBigImage.png")
[error] --- Traceback --- end --------------

Expected behavior: as per documentation, exists should either return None or Match found.

umesh (umsalotagi) wrote :

I see that :
In sikuli 1.1.1. -> _results = Vision.find(_findInput); --in-- Region.find(Image)

is now replaced by

In Sikuli 2.0.x -> _results = Finder2.find(_findInput); --in-- Region.find(Image)

Vision do not throw exception in any case.
Whereas Finder2.find throws SikuliXception (a RuntimeException)

This change in behavior is causing many breaks in code. Already one more IR was raised related to SikuliXception .

RaiMan (raimund-hocke) on 2020-07-18
Changed in sikuli:
status: New → Invalid
summary: - SikuliXception in exists function
+ [2.0.4] SikuliXception in exists function, if image is larger than image
+ to search in --- by intention
Changed in sikuli:
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.5
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers