[error] script [ 1 ] stopped with error in line 1 [error] FindFailed ( can not find 1375001399359.png on the screen. )

Asked by san

[error] script [ 1 ] stopped with error in line 1
[error] FindFailed ( can not find 1375001399359.png on the screen. )

OS: Windows 7
Java 7 update25

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1
Revision history for this message
san (santanu01) said :
#2

still my problem not solved pls mention accurate answer

Revision history for this message
RaiMan (raimund-hocke) said :
#3

the comment #1 is the accurate answer:
you have to find out, why the image is not found on the screen.

Revision history for this message
san (santanu01) said :
#4

Hi,
I am not able to solve this issue.For that i attached details pls help me to solve this issue.

Revision history for this message
san (santanu01) said :
#5
Revision history for this message
san (santanu01) said :
#6

code:

from sikuli import *
aRegion=Region(0,0,1450,1050)
aImage = "1445937361436.png"
wait(600)
aMatch = aRegion.find(aImage)
doubleClick("1445937361436.png")

click("1445936939808.png")
type("cellos")
click("1445937448779.png")
type("cellos123")
click("1445937500140.png")
type("171.17.50.51")

click("1445937562042.png")
wait(30)
click("1445939185477.png")
click("1445939623787.png")
wait(60)
click("1445939763234.png")

log message:
C:/Users/sjena/Documents/login_1.sikuli
[debug] Region: init: (0, 0, 1450, 1050)
[debug] Region: find: waiting 3.0 secs for 1445937361436.png to appear in R[0,0
1400x1050]@S(0)
[debug] Image: reused: 1445937361436.png (file:/C:/Users/sjena/Documents/login_1
.sikuli/1445937361436.png)
[debug] Region: find: 1445937361436.png has not appeared [550 msec]
[error] script [ login_1 ] stopped with error in line 5
[error] FindFailed ( can not find 1445937361436.png in R[0,0 1400x1050]@S(0) )
[debug] Sikulix: cleanUp: 0

Revision history for this message
masuo (masuo-ohara) said :
#7

@san
Use Preview Pane of SikuliXIDE.

Do you know "Matching Preview" of the "Pattern Settings" ?
"Pattern Settings" is a window that open when you click image in code.
"Matching Preview" is one of Pane in "Pattern Settings".

When the reddish mark appeared in Preview Pane, it means that SikuliX has found its image on the screen.
If the reddish mark did not appear ,you can move the slider to try to adjust the similarity .
If you use such as click() or find() ,you should adjust the slider as mark becomes one .

Revision history for this message
san (santanu01) said :
#8

Hi,
I checked as per your suggestion ,In my case in "matching Preview " pane of "Pattern Settings" different image showing not same as image when "Target offset" pane selected.I also adjust similarity no reddish mark appear.

I tried to attach snap-shot for the same. i did get that option.

Pls suggest how solve this issue.

Thanks in advance !!!!!!!!!

Revision history for this message
masuo (masuo-ohara) said :
#9

@San
SikulixIDE 1.1.0 has "Show" button.
Under the menu bar there are icons such as "Location" and "Offset" and "Show".
"Show" is a button to show the item at cursor.

Set cursor on line 5.
Try to click "Show" button.
If SikuliX can find "1445937361436.png" ,information of Match object is logged out.

Revision history for this message
san (santanu01) said :
#10

Hi,
I did as per your suggestion, also log attached below.Pls let me know how to solve this issue.

Tanks in advance.

[debug] show: m = Screen.all().exists(new Pattern("1445937361436.png").exact(),
0); if (m != null) m.highlight(2); print(m);
[debug] Runner: JavaScript: eval: m = Screen.all().exists(new Pattern("144593736
1436.png").exact(), 0); if (m != null) m.highlight(2); print(m);
[debug] Image: reused: 1445937361436.png (file:/C:/Users/sjena/Documents/login_1
.sikuli/1445937361436.png)
[debug] Region: exists: waiting 0.0 secs for P(1445937361436.png) S: 0.99 to app
ear in S(-1)[0,0 1400x1050]
[debug] Region: exists: P(1445937361436.png) S: 0.99 has not appeared [756 msec]

Revision history for this message
RaiMan (raimund-hocke) said :
#11

for the search you used a Pattern requesting 0.99+ (exact) similarity, but the image (you as a human might see the image on the screen) cannot be found with this minimum similarity.

Use Preview, to find out, which similarity to use or try with e.g. 0.9

Revision history for this message
san (santanu01) said :
#12

Hi,
I checked all similarity (.00 to .99) in "matching preview" pane of "pattern setting" i am not able see my expected picture but in other pane like "target offset" of same "pattern setting " it is able to visible. Any how i set similarity .9 and checked same problem is there which log attached below.

[debug] Sikulix: cleanUp: 0
[debug] Jython: requested to use as default region: R[0,0 1400x1050]@S(0)
[debug] JythonScriptRunner: runPython: running script from IDE:
C:/Users/sjena/Documents/login_1.sikuli
/C:/Users/sjena/Documents/login_1.sikuli/
[debug] Region: init: (0, 0, 1450, 1050)
[debug] Image: reused: 1445937361436.png (file:/C:/Users/sjena/Documents/login_1
.sikuli/1445937361436.png)
[debug] Image: reused: 1445937361436.png (file:/C:/Users/sjena/Documents/login_1
.sikuli/1445937361436.png)
[debug] Region: find: waiting 3.0 secs for P(1445937361436.png) S: 0.9 to appear
 in R[0,0 1400x1050]@S(0)
[debug] Region: find: P(1445937361436.png) S: 0.9 has not appeared [470 msec]
[error] script [ login_1 ] stopped with error in line 25
[error] FindFailed ( can not find P(1445937361436.png) S: 0.9 in R[0,0 1400x1050
]@S(0) )
[debug] Sikulix: cleanUp: 0

Revision history for this message
RaiMan (raimund-hocke) said :
#13

ok, SikuliX cannot find this image apparently.

I can check the situation if you send me a screenshot and the image to sikulix--at--outlook--dot--com

Revision history for this message
laxmi (laxmi3134) said :
#14

Hi RaiMan,

 I am trying to run a selenium integrated sikuli java application from mac in Eclipse IDE but it is throwing errors. I have added sikuli-script.jar, selenium and chromedriver to /Applications/setup path.
This application is working in windows but seems some issues running on mac os..

Though the file is present at correct path, seems it is not finding.

Error:

/Applications/setup/chromedriver
Starting ChromeDriver 2.31.488774 (7e15618d1bf16df8bf0ecf2914ed1964a387ba0b) on port 26252
Only local connections are allowed.
[error] ResourceLoaderBasic: checkLibsDir: Not a valid libs dir for SikuliX (x86_64): /Applications/setup/libs
[error] ResourceLoaderBasic: check: libs dir is empty, has wrong content or is outdated
[action] ResourceLoaderBasic: check: Please wait! Trying to extract libs to: /Applications/setup/libs
FindFailed: can not find P(/Users/laxmi.patlolla/Documents/workspace/Web/imgs/gmail.png) S: 0.7 on the screen.
  Line 1574, in file Region.java

 at org.sikuli.script.Region.handleFindFailed(Region.java:1574)
 at org.sikuli.script.Region.wait(Region.java:1682)
 at com.WebSite.SikuliGameLoad.main(SikuliGameLoad.java:22)

Can you help with this problem?

Provide an answer of your own, or ask san for more information if necessary.

To post a message you must log in.