← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #676840]: Inconsistent behaviour of SIkuli code run

 

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

ONG YI CHONG posted a new comment:
1) The observe and click is not called within a try catch

2) for print(found), True cases are missing. I have not seen a false
case which causes a crash.  However, some True cases do not cause
crashes

3) all the lines of code within the for loop get executed, only the line
at print(found) and afterwards does not get executed.

4) The Ending handler does not get printed when my code does not work as
intended.

This is what happens before the crash, after j = 0 is printed

[debug] Image: reused: /Users/ongyichong/SikuliX/Scripts/0.png (file:/Users/ongyichong/SikuliX/Scripts/0.png)
[debug] Region: find: waiting 0 secs for /Users/ongyichong/SikuliX/Scripts/0.png to appear in R[20,101 267x429]@S(0)
[debug] Finder2: makeMat: INT_RGB (267x429)
[debug] Finder2: makeMat: 3BYTE_BGR (265x430)
[debug] Finder2: doFind: start (stdDev: 275.3149 mean: 503.153366)
[debug] Observer: update result: Changes: true
[debug] Region: observe: stopped due to timeout in R[20,101 267x429]@S(0) for 0.2 seconds

I realise that for successful attempts at running the whole handler code
there is a similarity percentage that will be shown

This is what happens when it is successful, after j = 0 is printed

[debug] Image: reused: /Users/ongyichong/SikuliX/Scripts/0.png (file:/Users/ongyichong/SikuliX/Scripts/0.png)
[debug] Region: find: waiting 0 secs for /Users/ongyichong/SikuliX/Scripts/0.png to appear in R[20,101 266x430]@S(0)
[debug] Finder2: makeMat: INT_RGB (266x430)
[debug] Finder2: makeMat: 3BYTE_BGR (265x430)
[debug] Finder2: doFind: start (stdDev: 275.3149 mean: 503.153366)
[debug] Finder2: doFind: in original: %15.7534 (?95) 9 msec 
[debug] Finder2: doFind: end 9 msec
[debug] Region: find: /Users/ongyichong/SikuliX/Scripts/0.png did not appear [28 msec]
[debug] Region: handleFindFailed: /Users/ongyichong/SikuliX/Scripts/0.png

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