Closed JerryXinhui closed 4 months ago
@rainmanwy
@rainmanwy
- yes, I attached all the log showed in my screen.
- My ubantu is a desktop mode
- I execute this CMD by open a terminal: java -jar SikuliLibrary.jar 53126 without setting "Display" variable.
Could you execute "echo $DISPLAY" before "java -jar SikuliLibrary.jar 53126", remember in same terminal.
there is similar issue: sikuli 304 It may related sikulix. from the issue, sikuliapi 2.0.3 should be ok.
通过这种方法解决了:(来源于github的linux安装) 安装opencv
再运行就正常了
I can't run my sikuli robotframework test case with following script.
environment:
java -jar SikuliLibrary.jar 53126
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 11:12:29.232 [main] INFO org.eclipse.jetty.util.log - Logging initialized @526ms to org.robotframework.remoteserver.logging.Jetty2Log4J 11:12:29.304 [main] INFO org.eclipse.jetty.server.Server - jetty-9.4.31.v20200723; built: 2020-07-23T17:57:36.812Z; git: 450ba27947e13e66baa8cd1ce7e85a4461cacc1d; jvm 11.0.22+7-post-Ubuntu-0ubuntu223.10.1 11:12:29.367 [main] INFO org.eclipse.jetty.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@8458f04{/,null,AVAILABLE} 11:12:29.402 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started ServerConnector@561b6512{HTTP/1.1, (http/1.1)}{0.0.0.0:53126} 11:12:29.402 [main] INFO org.eclipse.jetty.server.Server - Started @696ms Opening in existing browser session. Exception in thread "Thread-8" java.lang.ExceptionInInitializerError at java.prefs/java.util.prefs.FileSystemPreferencesFactory.userRoot(FileSystemPreferencesFactory.java:41) at java.prefs/java.util.prefs.Preferences.userRoot(Preferences.java:457) at java.prefs/java.util.prefs.Preferences.userNodeForPackage(Preferences.java:371) at org.sikuli.basics.PreferencesUser.(PreferencesUser.java:53)
at org.sikuli.basics.PreferencesUser.get(PreferencesUser.java:57)
at org.sikuli.script.support.RunTime.cleanUp(RunTime.java:1350)
at org.sikuli.script.support.RunTime.runShutdownHook(RunTime.java:1364)
at org.sikuli.script.support.RunTime.access$000(RunTime.java:42)
at org.sikuli.script.support.RunTime$3.run(RunTime.java:1056)
Caused by: java.lang.IllegalStateException: Shutdown in progress
at java.base/java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66)
at java.base/java.lang.Runtime.addShutdownHook(Runtime.java:216)
at java.prefs/java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:457)
at java.prefs/java.util.prefs.FileSystemPreferences$4.run(FileSystemPreferences.java:455)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.prefs/java.util.prefs.FileSystemPreferences.(FileSystemPreferences.java:455)
... 9 more