The script runs on Linux partially

Asked by Paul Weber on 2019-12-05

Hi RaiMan! Thanks for the previous tip. SikuliX scripts run on Windows10. However, under Linux (Debian 7.11), the script only opens my application and refuses to continue to execute the remaining script. I tried running on SikuliX versions 1.1.4 and 2.0.1.
Gives an error message: “[Error] App.isRunning: '[ps, -p, -1]' Process exited with an error: 1 (Exit value: 1)”
Please tell me what is the matter here and is it possible to fix this error?
Regards, Paul Weber

System Information:
Debian OS 7.11

$ sudo find / -name *libopencv_j*
/usr/local/share/OpenCV/java/libopencv_java320.so
/opt/opencv/opencv-3.2.0/build/lib/libopencv_java320.so

I have java -version installed:
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)

Here is my script:

uc = App("/opt/UniversalReader/UniversalReader-v3.9.22_x64")
uc.open()
if not uc.isRunning(10): # wait max 10 seconds
    exit(1)
wait(0.3)
mTL = find("Iconuc.png") # find top left.
mBEx = find("PrimerBtn.png")
hover(mBEx.getCenter().click())
while not exists("Listofexamples.png"):
        sleep(5)
click("findTestDatabtn.png")
for x in findAll("Closebtn.png"):
        sleep(1)
click("Closebtn.png")
click("Closebtn.png")
click("Closebtn.png")
mClbtn = find("CloseBtnPanel.png")
click(mClbtn)
while not exists("WinClose.png"):
        sleep(5)
click("NoBtn.png")
mExitBtn = mTL.nearby(1000).right().find("ExitBtn.png") # find top right
click(mExitBtn)
while not exists("WinExit.png"):
        sleep(5)
click("NoBtn.png")

Question information

Language:
English Edit question
Status:
Expired
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2019-12-10
Last reply:
2019-12-26
RaiMan (raimund-hocke) said : #1

the bug https://github.com/RaiMan/SikuliX1/issues/144
seems not to be fixed yet.

Might take a while (Linux not in focus currently, sorry)

Paul Weber (weber19) said : #2

RaiMan, no question. I will be glad to any of your advice! So far, for my part, I'll try to rebuild Java on CMake with the latest OpenCV. Maybe I'll try to take a later Open JDK.

Launchpad Janitor (janitor) said : #3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.