Ubuntu 12.04 searching for images/capturing screen in empty workspace

Asked by Karthik

I am using ubuntu 12.04 in Oracle Virtual box.
I installed sikuli using sudo apt-get install sikuli-ide
It is not detecting opened windows and other items in opened windows.
When i capture the screen, i m seeing an empty workspace only and all the open applications are not getting captured

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
RaiMan (raimund-hocke) said :
#1

this is not an official package from the developers of Sikuli and it is based on RC3, which I do no longer support with request to installation and start-up problems.

Try out Sikuli version 1.0.1 starting here: http://sikulix.com
go to the Download tab and follow the steps for version 1.0.1

Revision history for this message
Karthik (karthi696) said :
#2

Even after using the version 1.0.1 in ubuntu 12.04, capture screen is not detecting the various open windows in the screen. It just detects the side launcher icons and empty workspace.

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

start the ice with option -d and paste the error log

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

of course I mean the IDE ;-)

Revision history for this message
Karthik (karthi696) said :
#5

These were the error logs i got when try to run a .sikuli script

--------------------------------------------------------------------------------------
@karthp-HP-xw4600-Workstation:~/sik$ ./runIDE -r ../Desktop.sikuli
running SikuliX-IDE: -Xmx512M -Dapple.laf.useScreenMenuBar -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
-jar ./sikuli-ide.jar -r ../Desktop.sikuli
[error] FileManager: Sorry, scriptnames with dot or double-dot path elements are not supported: ../Desktop.sikuli
[error] Terminating SikuliX after a fatal error! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.
cisco@karthp-HP-xw4600-Workstation:~/sik$ ./runIDE -r /home/cisco/Desktop.sikuli
running SikuliX-IDE: -Xmx512M -Dapple.laf.useScreenMenuBar -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
-jar ./sikuli-ide.jar -r /home/cisco/Desktop.sikuli
[error] ResourceLoaderBasic: loadLib: Fatal Error 110: loading: libVisionProxy.so
[error] ResourceLoaderBasic: loadLib: Since native library was found, it might be a problem with needed dependent libraries
/home/cisco/sik/libs/libVisionProxy.so: libopencv_core.so.2.4: cannot open shared object file: No such file or directory
[error] Terminating SikuliX after a fatal error(110)! Sorry, but it makes no sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the Q&A board.

-----------------------------------------------------------------------

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

this is the error:
[error] FileManager: Sorry, scriptnames with dot or double-dot path elements are not supported: ../Desktop.sikuli

just correct it.

Revision history for this message
Karthik (karthi696) said :
#7

Thanks for your help RaiMan.

I have corrected it and corrected libVisionProxy issue also.

Now sikuli 1.0.1 works correctly in separate ubuntu machine but when tried from Oracle Virtual box having ubuntu OS, the capture screen is still capturing only an empty workspace even though many windows are opened in current workspace.

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

with Virtual Machines there are some problems, depending on brand and setup.

Take care, that you run with the basic VM window setup (not fullscreen, no app sharing, no special setups, that might bring the guest into a situation not having a "real" screen).

What is your host system?

I will later check on my Windows 8 where I have different Ubuntu's running in Virtual Box too.

Revision history for this message
Karthik (karthi696) said :
#9

Thanks Raiman.

My host machine is Windows 7 Enterprise 64 bit