Sikuli-IDE-w.bat stops as soon as "[info] locale: en_US" is displayed

Asked by Remy Chatti

In a Windows 7 64bits cmd, I start a test this way:

Sikuli-X-1.0rc3/Sikuli-IDE/Sikuli-IDE-w.bat -r "c:\\cygwin\\home\\test\\tmp\\AccessTunnel.sikuli" -s

Although you see "cygwin", the bat is actually started in a Windows cmd.

I can start the test several times. Sometimes the test finishes successfully. Often it stops when "[info] locale: en_US" is displayed.

Normal output of the script:

-------
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[log] App.open C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://testauto2.ssl.mysite.com(2840)
[log] CLICK on (132,298)
[log] CLICK on (203,286)
[log] TYPE " "
[log] TYPE "
"
Login successful
[log] CLICK on (262,419)
Clicked on SSH resource
[log] CLICK on (648,399)
Security check 1
[log] CLICK on (670,385)
Security check 2
Security check 3
[log] CLICK on (409,425)
Security check 4
[log] CLICK on (513,432)
Security check 5
Security check 6
Security check 7
Security check 8
-------

Often it fails this way:

-------
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[log] App.open C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://testauto2.ssl.stonegate.com(1832)
[info] locale: en_US

-------OR------

[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[log] App.open C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://testauto2.ssl.mysite.com(2644)
[log] CLICK on (132,298)
[log] CLICK on (203,286)
[log] TYPE " "
[log] TYPE "
"
Login successful
[log] CLICK on (262,419)
Clicked on SSH resource
[log] CLICK on (670,391)
Security check 1
[log] CLICK on (648,380)
Security check 2
[info] locale: en_US

-------OR-----

[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.
[info] VDictProxy loaded.
[log] App.open C:\Program Files (x86)\Mozilla Firefox\firefox.exe https://testauto2.ssl.mysite.com(1920)
[error] no locale for en_GB
[info] locale: en_US
-------

This error occurs even if I use Java JRE 32 or 64bits.

I really don't understand why it fails this way about the local !! Help please.
Thanks in advance.

Question information

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

I tried to reproduced your situation on my Win7 64Bit.

--1: Using Sikuli-IDE-w.bat does not work for me (does nothing), I had to use Sikuli-IDE.bat to get the script running and produce the log output.

--2.
The message
[info] locale: xx_XX

is displayed just before Sikuli displays an error message (a FindFailed exception in my case)

So I guess, something very critical happens in your script, so that even the print out of the error message is aborted

I would recommend to

-- use Sikuli-IDE.bat

-- if this does not work, try
java -jar path-to-sikuli-script.jar path-to-your-sript.sikuli
(which does not use the IDE to run the script and does not display the locale message)

I hope you find some reason. I think, this is some buggy situation, but they need more information.

Revision history for this message
Remy Chatti (remy-chatti) said :
#2

Thanks RaiMan, that solved my question.