[request] SikuliX should work with window manager mwm

Bug #1573466 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Won't Fix
Medium
RaiMan

Bug Description

Dear RaiMan,
we are thinking to use Sikulix as platform for the HMI testing on large scale applications.
We are obliged to use mwm as window manager. We have no other choice. We tried to run our application on different window managers without result.
Unfortunately Sikulix does not run with mwm. Attached some .txt with the output received.
Sikulix, on the same platform, works fine with any other window manager (GNOME or KDE or ICEWM).

Can you help us?
Thanks a lot for the support.
Alfredo & Andrea

P.S.:
wmctrl is installed and works fine.
In mwm windows manager wmctrl -m returns:
Cannot get window manager info properties.
(_NET_SUPPORTING_WM_CHECK or _WIN_SUPPORTING_WM_CHECK)

Revision history for this message
Alfredo Adragna (aadragna) wrote :

Attached the .txt files.
Sorry

Revision history for this message
Alfredo Adragna (aadragna) wrote :
Revision history for this message
RaiMan (raimund-hocke) wrote :

as a short term workaround, the only possibility at the scripting level is to do the following:
(only possible if wmctrl still works if renamed to something else)
replace the wmctrl executable with a shell script, that does not return any errors.

This would allow, to continue testing, provided you do not use the App class features in the moment

I will try to make this internal test a bit more graceful or even optional.

Revision history for this message
Alfredo Adragna (aadragna) wrote :

Thanks for the help.
The workaround seems work and Siluki starts.
We renamed wmctrl in wmctrl.default and substitute with a script with only echo that simulate the answer given by the command wmctrl -m in gnome environment.
Next question is if Sikuli uses wmctrl elsewhere and its substitution is introducing any functional limitation.
We try with simple sikuli scripts and it seems to have random result from "find" function. Could it possible?
Thanks again for the help.
Alfredo & Andrea

Revision history for this message
RaiMan (raimund-hocke) wrote :
Revision history for this message
RaiMan (raimund-hocke) wrote :

wmctrl is only used in the class App for some of the functions related to app windows

Revision history for this message
Alfredo Adragna (aadragna) wrote :

Yes, thank you for the answer, we have read it but however we continue to have different result from find function; probably it depends on the matching preview percentage. We will continue to test find function in different situation.
Thank you again.
Alfredo Andrea

Revision history for this message
RaiMan (raimund-hocke) wrote :

The Matching Preview internally uses findAll(), to get the list of possible matches.

The internal use of the OpenCV matchTemplate with findAll() is slightly different from the way it is used with the normal find ops (find, wait, exists and the indirect use in click(), ...).

This might have effects, when you use similarity scores having more than 1 decimal (e.g. 0.95)

This will only be fixed in version 2 later this year.

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.0
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Won't Fix
milestone: 2.0.0 → none
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.