[2.0.x] SikuliX does not work with OpenJDK 13 on japanese Windows 10

Asked by Nobunaga Oda

Hello.
An error occurs when SikuliX is executed on a PC with OpenJDK 13.0.2 installed.
How can I run SikuliX?

Environment:
------------
OS Version: Windows 10 Enterprise Evaluation 1809(17763.379)
Sikuli version: 2.0.2
Java version: openjdk version "13.0.2"

hs_err_pid5476.log
------------------
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffd8a9df98a, pid=5476, tid=4392
#
# JRE version: OpenJDK Runtime Environment (13.0.2+8) (build 13.0.2+8)
# Java VM: OpenJDK 64-Bit Server VM (13.0.2+8, mixed mode, sharing, tiered, compressed oops, serial gc, windows-amd64)
# Problematic frame:
# C [awt.dll+0x8f98a]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Tested on Windows 10-64 latest with OpenJDK 13.0.2: no problems.

Check your system path:
take care, that no other java version is referenced.

Revision history for this message
Nobunaga Oda (cochrane80) said :
#2

Hello.

thank you for your answer.
I checked the Java path, but it looks like there is no problem.

OpenJDK
-------
Install Path : C:\jdk-13.0.2

Windows Environment
-------------------
JAVA_HOME : C:\jdk-13.0.2
Path : %JAVA_HOME%\bin

Command Prompt
--------------
C:\Users\IEUser>java -version
openjdk version "13.0.2" 2020-01-14
OpenJDK Runtime Environment (build 13.0.2+8)
OpenJDK 64-Bit Server VM (build 13.0.2+8, mixed mode, sharing)

C:\Users\IEUser>
--------------

It worked when the OpenJDK version was 12.0.2. I want to use it with this.
I am using a Japanese version of Windows10. The environment may be different ...

Revision history for this message
Jon Scharff (jswolf19) said :
#3

I have the same problem (I believe) on Japanese Windows 10. I imagine this may be an OpenJDK issue, though.
I can use AdoptOpenJDK/Hostspot 8.0.242.08 appears to work, but 13.0.2+8 fails. I had similar results with OpenJDK 11 (don't remember the exact version).

sikuli version is 1.1.4 Build#362

#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ff800e6f98a, pid=7952, tid=4520
#
# JRE version: OpenJDK Runtime Environment (13.0.2+8) (build 13.0.2+8)
# Java VM: OpenJDK 64-Bit Server VM (13.0.2+8, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C [awt.dll+0x8f98a]
#

--------------- S U M M A R Y ------------

Command Line: -Dfile.encoding=UTF-8 -Dsikuli.IDE_should_run org.sikuli.ide.SikulixIDE

Host: Intel(R) Core(TM) i3-4160 CPU @ 3.60GHz, 4 cores, 3G, Windows 10 , 64 bit Build 18362 (10.0.18362.329)
Time: Thu Mar 12 08:57:55 2020 ???? (?W?€??) elapsed time: 0 seconds (0d 0h 0m 0s)

--------------- T H R E A D ---------------

Current thread (0x000001f521cab000): JavaThread "main" [_thread_in_native, id=4520, stack(0x0000001dc0700000,0x0000001dc0800000)]

Stack: [0x0000001dc0700000,0x0000001dc0800000], sp=0x0000001dc07fede0, free space=1019k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [awt.dll+0x8f98a]

Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.awt.windows.WComponentPeer._setFont(Ljava/awt/Font;)V+0 java.desktop@13.0.2
j sun.awt.windows.WComponentPeer.setFont(Ljava/awt/Font;)V+7 java.desktop@13.0.2
j sun.awt.windows.WWindowPeer.initialize()V+42 java.desktop@13.0.2
j sun.awt.windows.WFramePeer.initialize()V+1 java.desktop@13.0.2
j sun.awt.windows.WComponentPeer.<init>(Ljava/awt/Component;)V+83 java.desktop@13.0.2
j sun.awt.windows.WCanvasPeer.<init>(Ljava/awt/Component;)V+2 java.desktop@13.0.2
j sun.awt.windows.WPanelPeer.<init>(Ljava/awt/Component;)V+2 java.desktop@13.0.2
j sun.awt.windows.WWindowPeer.<init>(Ljava/awt/Window;)V+2 java.desktop@13.0.2
j sun.awt.windows.WFramePeer.<init>(Ljava/awt/Frame;)V+2 java.desktop@13.0.2
j sun.awt.windows.WToolkit.createFrame(Ljava/awt/Frame;)Ljava/awt/peer/FramePeer;+5 java.desktop@13.0.2
j java.awt.Frame.addNotify()V+20 java.desktop@13.0.2
j java.awt.Window.pack()V+28 java.desktop@13.0.2
j org.sikuli.idesupport.IDESplash.init()V+121
j org.sikuli.idesupport.IDESplash.<init>()V+5
j org.sikuli.ide.SikulixIDE.main([Ljava/lang/String;)V+61
v ~StubRoutines::call_stub

siginfo: EXCEPTION_ACCESS_VIOLATION (0xc0000005), reading address 0x0000000000000058

Revision history for this message
Jon Scharff (jswolf19) said :
#4

Here is the log output from sikuli-2.0.3

[DEBUG]startUp: IDE: Running: C:\Programs\sikuli\sikulix-2.0.3.jar
[DEBUG]startUp: IDE: AppData: C:\Users\jon_s\AppData\Roaming\Sikulix
[DEBUG]startUp: IDE: starting
[DEBUG]startUp: IDE: no extensions.txt nor valid content
[DEBUG]startUp: IDE: adding extension: C:\Users\jon_s\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
[251 debug] RunTime:temp folder ok: C:\Users\jon_s\AppData\Local\Temp\Sikulix_72416744
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\jon_s\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.3-2020-02-20_13:43 API
user.home: C:\Users\jon_s
user.dir (work dir): C:\Programs\sikuli
user.name: jon_s
java.io.tmpdir: C:\Users\jon_s\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 13 version 13 vm 13.0.2+8 class 57.0 arch 64
app data folder: C:\Users\jon_s\AppData\Roaming\Sikulix
executing jar: C:\Programs\sikuli\sikulix-2.0.3.jar
*** classpath dump sikulix
  0: C:\Programs\sikuli\sikulix-2.0.3.jar
*** classpath dump end
***** show environment end
[DEBUG]startUp: IDE: *********************** leaving start
[298 debug] RunTime:***** final cleanup at System.exit() *****
[313 debug] FileManager: deleteFileOrFolder:
C:\Users\jon_s\AppData\Local\Temp\Sikulix_72416744
[31 debug] Sikulix: starting IDE
[62 debug] RunTime:temp folder ok: C:\Users\jon_s\AppData\Local\Temp\Sikulix_1015374592
Options: *** options dump
Options: testing =
Options: OptionsFile = C:\Users\jon_s\AppData\Roaming\Sikulix\SikulixStore\SikulixOptions.txt
Options: *** options dump end
***** show environment for 2.0.3-2020-02-20_13:43 IDE
user.home: C:\Users\jon_s
user.dir (work dir): C:\Programs\sikuli
user.name: jon_s
java.io.tmpdir: C:\Users\jon_s\AppData\Local\Temp
running 64Bit(amd64) on w (10.0) from a jar
java 13 version 13 vm 13.0.2+8 class 57.0 arch 64
app data folder: C:\Users\jon_s\AppData\Roaming\Sikulix
executing jar: C:\Programs\sikuli\sikulix-2.0.3.jar
*** classpath dump sikulix
  0: C:\Programs\sikuli\sikulix-2.0.3.jar
  1: C:\Users\jon_s\AppData\Roaming\Sikulix\Extensions\jython-standalone-2.7.1.jar
*** classpath dump end
***** show environment end
[187 debug] init user preferences
[203 debug] IDE: running with Locale: ja_JP
[DEBUG]startUp: IDE: --- Sikuli parameters ---
[DEBUG]startUp: IDE: 1: -v
[DEBUG]startUp: IDE: 2: -c
[203 debug] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[344 debug] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[344 debug] IDE: Init ScriptingSupport
[344 debug] IDESupport: enter
[1172 debug] Runner: added: PackedSikulix [zip] application/zip
[1172 debug] Runner: added: NetworkRunner [] NET
[1172 debug] Runner: added: PowerShell [ps1] text/powershell
[1172 debug] Runner: added: PackedSikulix [skl] text/skl
[1437 debug] Runner: added: JavaScript [js] text/javascript
[1437 debug] Runner: init: class org.sikuli.script.runners.AbstractLocalFileScriptRunner: warning: not possible
[1437 debug] Runner: added: Sikulix [] directory/sikulix
[1437 debug] Runner: added: SikulixJar [jar] text/jar
[1453 debug] Runner: added: Jython [py] text/jython
[1453 debug] Runner: added: Text [txt] text/text
[1453 debug] IDESupport: added: Jython
[1453 debug] IDESupport: added: JavaScript
[1453 debug] IDESupport: added: Text
[1453 debug] IDESupport: exit: defaultrunner: Jython (py)
[1453 debug] IDE: Reading Preferences
[1469 debug] Screen: initScreens: starting
[1469 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment()
[1469 debug] Screen: Accessing: GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()
[1469 debug] Screen: ScreenDevice 0 has (0,0) --- will be primary Screen(0)
[1469 debug] Screen: Monitor 0: (0, 0) 1440 x 900
[1469 debug] Mouse: init start
[1469 debug] Mouse: init end
[1469 debug] Screen: initScreens: ending
[1469 debug] IDE: Adding components to window
[1484 debug] IDE: [I18N] menuRecent
[1500 debug] IDE: [I18N] menuToolAndroid
[1515 debug] IDE: creating tabbed editor
[1609 debug] IDE: creating message area
[1672 debug] IDE: creating combined work window
[1672 debug] IDE: Putting all together
[1672 debug] IDE: Putting all together - after main pane
[1765 debug] IDE: Putting all together - after toolbar
[1765 debug] IDE: Putting all together - before layout
[1953 debug] IDE: Putting all together - after layout
[1953 debug] IDE: Putting all together - Restore last Session
[1969 debug] EditorPane: created 1583973459296
[1969 debug] JythonRunner: starting initialization
[1969 debug] RunTime:resourceLocation: (class org.sikuli.script.support.RunTime) /Lib/sikuli
[1969 debug] RunTime:resourceList: having jar: jar:file:/C:/Programs/sikuli/sikulix-2.0.3.jar!/Lib/sikuli
[2000 debug] EditorPane: InitTab: (text/jython)
[2000 debug] ImagePath: new BundlePath: C:\Users\jon_s\AppData\Local\Temp\Sikulix_1015374592\SikulixIDETempTab1583973459296
[2000 debug] IDE startup: 2.0 seconds *** Running on Java 9+
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007ffffea0f98a, pid=7004, tid=10236
#
# JRE version: OpenJDK Runtime Environment (13.0.2+8) (build 13.0.2+8)
# Java VM: OpenJDK 64-Bit Server VM (13.0.2+8, mixed mode, sharing, tiered, compressed oops, g1 gc, windows-amd64)
# Problematic frame:
# C [awt.dll+0x8f98a]
#
# No core dump will be written. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\Programs\sikuli\hs_err_pid7004.log
#
# If you would like to submit a bug report, please visit:
# https://github.com/AdoptOpenJDK/openjdk-support/issues
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

Can you help with this problem?

Provide an answer of your own, or ask Nobunaga Oda for more information if necessary.

To post a message you must log in.