Sikuli IDE: Linux: doesn't start --- [error] Hot key conflicts

Asked by wimalopaan

**** the solution *********
Either the capture or the termination hotkey is already used by other application.
Find application and change it there or do not use it in parallel to Sikuli

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

Hi,

just downloaded Sikuli-X-1.0rc1-linux.zip, unpacked the archive and
tried to start sikuli-ide.sh.

I got the following messages on the console:

$ ./sikuli-ide.sh
[info] locale: de_DE
[debug] init user preferences
Redirect stdout/stderr to console.

but no window is shown?

I'm using ubuntu lucid with java-1.6:

$ java -version
java version "1.6.0_22"
Java(TM) SE Runtime Environment (build 1.6.0_22-b04)
Java HotSpot(TM) Server VM (build 17.1-b03, mixed mode)

Any hints?

Question information

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

What about bug 701062?

Revision history for this message
wimalopaan (wilhelm-meier) said :
#2

The problem remains even with the us-locale:

lmeier@h242-meier-x60s:~/Software/sikuli/Sikuli-X-1.0rc1-linux/Sikuli-IDE$ ./sikuli-ide.sh
[info] locale: en_US
[debug] init user preferences
[debug] [Linux] install hotkey: CTRL+SHIFT+2 for onQuickCapture
[debug] [Linux] install hotkey: ALT+SHIFT+C for onStopRunning
[error] Hot key conflicts

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

ok, then you should clear your hotkey conflicts ;-)

Your situation does not allow the IDE to start up.
If you succeed somehow to change the hotkey specifications in the Sikuli distribution before, the IDE might come up then.

Wether sikuli features run on your system at all, you can test on command line:

--- (it is 1 line ;-):
echo from sikuli.Sikuli import *; print SCREEN | java -cp "path-to-sikuli\sikuli-script.jar" org.python.util.jython

Revision history for this message
wimalopaan (wilhelm-meier) said :
#4

well, strange that sikili hangs in this situation and does not end with an error code != 0 !!!

How do I change the hotkey binding?

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

I have no experience with Linux.

Sikuli uses JXGrabkey to install the HotKey bindings.
It might be, that ALT+SHIFT+C is already used by some other app on your system.

--- from the JXGrabkey docs

This Exception is thrown when another application already registered a hotkey which JXGrabKey tried to register for itself. X11 hotkeys can only be registered by one application at a time. Because JXGrabKey registers the same hotkey with different combinations of offending masks like scrolllock, numlock and capslock, any of those registrations can be the cause of the conflict. It is best to unregister the hotkey after receiving this exception. Otherwise the hotkey may not work at all, or may not work with all mask combinations.

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

update for the test command above (Mac and Linux):
(the ; has to be masked with \)

--- (it is 1 line ;-):
echo from sikuli.Sikuli import * \; print SCREEN | java -cp "path-to-sikuli\sikuli-script.jar" org.python.util.jython

Revision history for this message
wimalopaan (wilhelm-meier) said :
#7

Well, the libVisionProxy is badly broken as it required versioned other libs, e.g.

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: /home/lmeier/Software/sikuli/Sikuli-X-1.0rc1-linux/Sikuli-IDE/libs/libVisionProxy.so: libcvaux.so.2.1: cannot open shared object file: No such file or directory

after correcting this (there were several other references to other libs)

I get:

java.lang.UnsatisfiedLinkError: java.lang.UnsatisfiedLinkError: /home/lmeier/Software/sikuli/Sikuli-X-1.0rc1-linux/Sikuli-IDE/libs/libVisionProxy.so: /home/lmeier/Software/sikuli/Sikuli-X-1.0rc1-linux/Sikuli-IDE/libs/libVisionProxy.so: undefined symbol: _ZTVN2cv5flann17KDTreeIndexParamsE

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

right: libVisionProxy definitely needs openCV version 2.1

you say: after correcting this (there were several other references to other libs)
How did you correct the failing references?

I ask, because the final error libVisionProxy.so: undefined symbol: _ZTVN2cv5flann17KDTreeIndexParamsE normally happens, if a module called e.g. libcvaux.so.2.1 is found, but it is not real 2.1 (e.g. only an alias to say a 2.0 version module)

Revision history for this message
wimalopaan (wilhelm-meier) said :
#9

in the first place i used symlinks from libcvaux.so.2.1 to libcvaux.so.

I will try with opencv 2.1 ...

Revision history for this message
wimalopaan (wilhelm-meier) said :
#10

Installing the correct opencv version seems to help a bit:

lmeier@h242-meier-x60s:~/Software/sikuli/Sikuli-X-1.0rc1-linux/Sikuli-IDE$ echo "from sikuli.Sikuli import * ; print SCREEN" | java -cp "sikuli-script.jar" org.python.util.jython
Sikuli vision engine loaded.
Text Recgonizer inited.
VDictProxy loaded.
EventManager loaded.
Screen(0)[0,0 1280x800] E:Y, T:3,0

But the original problem remains: no gui showed up and I still don't know how to redefine the hotkeys in sikuli.

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

Ok, the Sikuli features as such are running.

The IDE still does not start up because of the "[error] Hot key conflicts", I guess.

I looked into the code and there is no chance in the moment to change anything from outside in the distribution (it is baked into the code of the IDE).
You might report that as a request bug: Sikuli should give some hints and options when: [error] Hot key conflicts

You have to look in the other direction: one of your X11 apps blocks the ALT+SHIFT+C hotkey. So find out which one and try to change it there. It might even be a way to just stop everything, that is not really needed to run windowed apps. And then try to start the Sikuli IDE. If it works, the other app, that needs the hotkey, while it is registered by Sikuli may start to say: uuups, my hotkey is blocked ;-)

Again. only guesses based on general experiences (I am Mac and Windows).

But good luck.

Revision history for this message
wimalopaan (wilhelm-meier) said :
#12

Thank you for your help. I finally found the application which installed the ALT+SHIFT+C hotkey (was one of my systray apps). Now the sikuli IDE starts fine.