← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #699134]: [2.0.5] JythonRunner don't initialize sometimes

 

Question #699134 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/699134

Description changed to:
Hi, i'm using Plink to start sikulix script on multiples LXQt v0.14.1
(Unix) virtual machines. (All clones, same cpu and ram)

i use a txt file with commands that transmit via SSH :
export DISPLAY=:10
midori -p -e Fullscreen -a http://192.168.0.1 &
sleep 10
 java -Xms1024m -Xmx1024m -jar /home/myuser/Documents/Fichiers/Script/sikulixide-2.0.5-lux.jar -r /home/myuser/Documents/Fichiers/Script/myscript_sikuli.jar -v -f /home/myuser/Documents/Fichiers/Script/Logs/log.txt

- it work's fine 95% of the time. And then sometimes it dosn't initialize properly. 
- I know Plink is not the problem here because Midori always open, and java begin loading but then nothing... 
- The problem is random, i can do 100 launch without fail and then it happen's. The machine on which it happens is also random, it's rarely the same. And sometimes it's 2 machines in the same run.

Do you have any idea what can be the issue ?

==============
Exemple of a fail:
==============
[11553 debug] Debug: setLogFile: /home/myuser/Documents/Fichiers/Script/Logs/log.txt
[11555 debug] RunTime:loadlib: trying JXGrabKey
[11562 debug] RunTime:libsExport: folder exists: /home/myuser/.Sikulix/SikulixLibs (2.0.5 - 202103030918)
[11564 debug] RunTime:loadLib: libJXGrabKey.so (success)
[11757 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)

- Nothing after the hotkeymanager

=================
Exemple of a full run:
=================
[12083 debug] Debug: setLogFile: /home/myuser/Documents/Fichiers/Script/Logs/log.txt
[12089 debug] RunTime:loadlib: trying JXGrabKey
[12097 debug] RunTime:libsExport: folder exists: /home/myuser/.Sikulix/SikulixLibs (2.0.5 - 202103030918)
[12099 debug] RunTime:loadLib: libJXGrabKey.so (success)
[12369 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[12479 debug] Runner: runscript: running script: /tmp/sikulix4101173198017713851/myscript$py.class
[12482 debug] JythonRunner: starting initialization
[20784 debug] Jython: added as Jython::sys.path[0]:
/home/myuser/.Sikulix/Lib/site-packages
[20796 debug] Jython: ***** sys.path
 0: /home/myuser/.Sikulix/Lib/site-packages
 1: /home/myuser/.Sikulix/Lib
 2: /home/myuser/Documents/Fichiers/Script/Lib
 3: /home/myuser/Documents/Fichiers/Script/sikulixide-2.0.5-lux.jar/Lib
[21453 debug] JythonRunner: ready: version 2.7.2 
[debug] ImagePath: new BundlePath: /tmp/sikulix4101173198017713851
[debug] Jython: SikulixForJython: init: starting
[debug] RunTime:resourceLocation: (class org.sikuli.script.support.RunTime) /Lib/sikuli/Sikuli.py
[debug] Jython: sikuli/*.py is on Jython::sys.path at:
/home/myuser/.Sikulix/Lib
[debug] Jython: added as Jython::sys.path[0]:
/home/myuser/.Sikulix/Lib/site-packages
[debug] Jython: SikulixForJython: init: success
[debug] Jython: sikuli: Sikuli: starting init
[debug] Screen: initScreens: starting
[debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[debug] Screen: Monitor 0: (0, 0) 1920 x 1080
[debug] Screen: initScreens: monitor mouse check
[debug] Screen: *** checking: R[0,0 1920x1080]@S(0) center: (960, 540) --- OK
[debug] Screen: initScreens: ending

** Lots of task here **

[debug] HotkeyManager: reset: removed all SikuliX hotkeys.
[debug] RunTime:***** final cleanup at System.exit() *****
[debug] FileManager: deleteFileOrFolder:
/tmp/sikulix4101173198017713851
[debug] FileManager: deleteFileOrFolder:
/tmp/Sikulix_255880463

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.