← Back to team overview

sikuli-driver team mailing list archive

[Question #691000]: Sikuli prompt stuck on Caused by: java.lang.IllegalThreadStateException: Cannot call method from the event dispatcher thread at java.awt.Robot.checkNotDispatchThread(Unknown Source)

 

New question #691000 on Sikuli:
https://answers.launchpad.net/sikuli/+question/691000

I installed Sikuli on 05/27/20 and got the message that it installed sucsesfully. I launched the SikulixIDE 1.1.3 today without any issue. I clicked on Take screenshot twice (first time computer froze, second time) the command prompt launched and stayed on one screen see end of information below for more details.

+++ running this Java
java version "1.8.0_251"
Java(TM) SE Runtime Environment (build 1.8.0_251-b08)
Java HotSpot(TM) Client VM (build 25.251-b08, mixed mode, sharing)
+++ trying to run SikuliX
+++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar C:\Users\colbea1\Desktop\Sikuli\sikulix.jar
[info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[info] IDE startup:  3.4 seconds
Exception in thread "AWT-EventQueue-0" java.lang.ExceptionInInitializerError
        at org.sikuli.ide.ButtonCapture.capture(ButtonCapture.java:97)
        at org.sikuli.ide.ButtonCapture.captureWithAutoDelay(ButtonCapture.java:80)
        at org.sikuli.ide.ButtonCapture.actionPerformed(ButtonCapture.java:74)
        at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
        at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
        at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
        at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
        at java.awt.Component.processMouseEvent(Unknown Source)
        at javax.swing.JComponent.processMouseEvent(Unknown Source)
        at java.awt.Component.processEvent(Unknown Source)
        at java.awt.Container.processEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
        at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Window.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
        at java.awt.EventQueue.access$500(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.awt.EventQueue$3.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.awt.EventQueue$4.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.IllegalThreadStateException: Cannot call method from the event dispatcher thread
        at java.awt.Robot.checkNotDispatchThread(Unknown Source)
        at java.awt.Robot.waitForIdle(Unknown Source)
        at org.sikuli.script.Mouse.move(Mouse.java:360)
        at org.sikuli.script.Mouse.move(Mouse.java:329)
        at org.sikuli.script.Mouse.init(Mouse.java:58)
        at org.sikuli.script.Screen.initScreens(Screen.java:108)
        at org.sikuli.script.Screen.<clinit>(Screen.java:72)
        ... 40 more


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