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

Bug #1790592 reported by RaiMan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

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

Revision history for this message
RaiMan (raimund-hocke) wrote :

... not yet tested on Windows with Java 11

Changed in sikuli:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
RaiMan (raimund-hocke)
Changed in sikuli:
status: In Progress → Opinion
summary: - [1.1.4] IDE: Java 10: crashes when taking screenshot
+ [1.1.4] IDE: Win7: Java 10: crashes when taking screenshot --- works on
+ Win10-64 with Java 11
Revision history for this message
RaiMan (raimund-hocke) wrote : Re: [1.1.4] IDE: Win7: Java 10: crashes when taking screenshot --- works on Win10-64 with Java 11

tested on Win10 Java 11: works

description: updated
RaiMan (raimund-hocke)
summary: [1.1.4] IDE: Win7: Java 10: crashes when taking screenshot --- works on
- Win10-64 with Java 11
+ Win10-64 with Java 11 --- workaround
description: updated
RaiMan (raimund-hocke)
summary: - [1.1.4] IDE: Win7: Java 10: crashes when taking screenshot --- works on
- Win10-64 with Java 11 --- workaround
+ [1.1.4] IDE: crashes when taking screenshot, if neither Jython nor JRuby
+ are available --- fixed 2018-09-06
description: updated
Changed in sikuli:
status: Opinion → Fix Committed
importance: Medium → Critical
description: updated
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
milestone: 1.1.4 → 2.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.