← Back to team overview

sikuli-driver team mailing list archive

[Bug 1790592] Re: [1.1.4] IDE: crashes when taking screenshot, if neither Jython nor JRuby are available --- fixed 2018-09-06

 

** Changed in: sikuli
       Status: Fix Committed => Fix Released

** Changed in: sikuli
    Milestone: 1.1.4 => 2.0.0

-- 
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: crashes when taking screenshot, if neither Jython nor
  JRuby are available --- fixed 2018-09-06

Status in Sikuli:
  Fix Released

Bug description:
  ---- problem / solution ----

  if neither Jython nor JRuby are available, then JavaScript gets the default scripting language. This is not yet fully working and supported.
  ... but with the fix at least the "take screenshot" works.

  ------------------- workaround

  take care, that at least Jython is available as mentioned on the
  downloadpage

  ******************** tested

  on Windows 10-64 with Java 11: works

  currently Win7 testing not possible.

  ------------------------------------------------

  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