← Back to team overview

sikuli-driver team mailing list archive

[Bug 1790592] Re: [1.1.4] IDE: Java 10: crashes when taking screenshot

 

... not yet tested on Windows with Java 11

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1790592

Title:
  [1.1.4] IDE: Java 10: crashes when taking screenshot

Status in Sikuli:
  In Progress

Bug description:
  Hi guys!

  So I'm running SikuliX 1.1.4, and Java version 10.0.2, and I can load
  the IDE.

  However, when clicking "Take Screenshot", the IDE crashes with the
  following log:

  WARNING: An illegal reflective access operation has occurred
  WARNING: Illegal reflective access by org.sikuli.ide.CloseableModernTabbedPaneUI (file:/C:/MyPythonScripts/SikuliX/sikulix.jar) to constructor javax.swing.plaf.basic.BasicTabbedPaneUI$Actions(java.lang.String)
  WARNING: Please consider reporting this to the maintainers of org.sikuli.ide.CloseableModernTabbedPaneUI
  WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
  WARNING: All illegal access operations will be denied in a future release
  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 java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
  	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
  	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
  ...
  	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
  	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
  Caused by: java.lang.IllegalThreadStateException: Cannot call method from the event dispatcher thread
  	at java.desktop/java.awt.Robot.checkNotDispatchThread(Unknown Source)
  	at java.desktop/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:107)
  	at org.sikuli.script.Screen.<clinit>(Screen.java:71)
  	... 40 more

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1790592/+subscriptions


References