[1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time --- fixed in final 1.1.0

Bug #1461533 reported by RaiMan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
SikuliX
Fix Committed
Critical
RaiMan

Bug Description

Please help me.
Here is my code:
def open_shop(self):
        API.log('open_shop')

        # check if its already opened
        API.log(str(Pattern(Interface.Action['shop_slide']).similar(0.9)))
        shop_slide_match = self.GR.exists(Pattern(Interface.Action['shop_slide']).similar(0.9), 5)
        if shop_slide_match:
            API.log('-------------' + str(shop_slide_match))
            self.click(shop_slide_match.offset(Location(-25, 0)))

here is my log:
P(Game/Action/shop_slide.png) S: 0.9
-------------M[1650,464 85x32]@S(S(0)[0,0 1920x1080]) S:0,71 C:1692,480 [21/21 msec]

how can this be? I say look for an image with similar (0.9) and I found it with (0.71)

it happens when I call the method again

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.0
Revision history for this message
Chp (chpnick) wrote :

RaiMan, I'm sorry, I have switched bug status to "Fix released" accidentily

Changed in sikuli:
status: In Progress → Fix Released
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Released → In Progress
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Fix Committed
importance: High → Critical
summary: - [1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time
+ [1.1.0] exists(Pattern().similar(0.9)) matches with 0.71 second time ---
+ fixed in final 1.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.