Chrome+Ubuntu: Sikuli freezes while file upload dialog is opened

Asked by Artamonov Kirill on 2012-04-26

Hi!

I'm using a combination of Sikuli and Selenium to write Java tests.
It works ok on Windows system, but I have a problem with Ubuntu+Chrome combination.

Below is test log with my comments:
.. some selenium log here ...
[info] Sikuli vision engine loaded.
[log] CLICK on (827,58) // Sikuli clicked on some object on the screen
//here Selenium clicks on the button that opens file selection window
//below actions are taken only when this window is closed
Apr 26, 2012 2:41:30 PM com.example.fw.SikuliHelper fillVideoForm
INFO: Screen(0)[0,0 1280x800] E:Y, T:3.0
[log] CLICK on (840,55)
libpng warning: Incorrect sBIT chunk length
Apr 26, 2012 2:41:36 PM com.example.fw.SikuliHelper click
INFO: ubuntu-fileSystem.png not found
libpng warning: Incorrect sBIT chunk length
Apr 26, 2012 2:41:40 PM com.example.fw.SikuliHelper click
INFO: ubuntu-customFileName.png not found
libpng warning: Incorrect sBIT chunk length
Apr 26, 2012 2:41:44 PM com.example.fw.SikuliHelper click
INFO: ubuntu-fileNameForm.png not found
libpng warning: Incorrect sBIT chunk length
FindFailed: can not find /home/kirill/workspace/dultonmedia-tests/img/ubuntu-fileNameForm.png on the screen.
Line ?, in File ?
...

I'm also recieving a number of warnings in the beggining:
(google-chrome:17755): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
(exe:17794): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
but I suppose they are not the problem here.

Seems like the thread is paused while the dialog window is opened.
Have anybody faced similar problem?

Thank you in advance.

Kind regards, Kirill

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Artamonov Kirill
Solved:
2012-05-15
Last query:
2012-05-15
Last reply:
2012-04-26
RaiMan (raimund-hocke) said : #1

Since you seem to have some problems with Gtk anyway, this might be appropriate for your situation:
http://sourceforge.net/tracker/index.php?func=detail&aid=3405839&group_id=12997&atid=112997

So check the way you are creating your images used by the Sikuli search feature.

Artamonov Kirill (ska-killa) said : #2

Ok, I switched to jpg files now.

And now I got the following in Eclipse log:

(exe:3333): Gtk-WARNING **: Unable to locate theme engine in module_path: "pixmap",
May 15, 2012 8:07:17 PM tests.base.TestBase logTestStart
INFO: class tests.base.VideoUpload start
[info] Sikuli vision engine loaded.
[log] CLICK on (60,147)
May 15, 2012 8:07:21 PM fw.HelperWithWebDriverBase findElementImm

//here Chrome "select file" windows opens
//it hangs for unlimited period of time
//I just close it and then re-open one more time
//After that Sikuli works fine

[log] CLICK on (282,275)
[log] CLICK on (246,113)
[log] CLICK on (317,156)
[log] TYPE "/home/kirill/Videos/sample_mpeg4.mp4
"

Artamonov Kirill (ska-killa) said : #3

Sorry, that was not Sikuli, rather Chrome and ChromeDriver for Ubuntu: WebDriver paused the Thread when file selection window is opened