Maven test crashes when typing characters

Asked by Cory She on 2020-09-11

I am trying to run my sikuli tests via maven but whenever I need to type something into a field on the screen, maven immediately crashes. Clicking and mouse movements work fine, it's typing that always fails. However, if we run the test normally and not from Maven, the test types into the field just fine and the test passes.

Here is the output I got from the cmd line:

vrazin@VLADIMIRs-MacBook-Pro sikuli-poc % [INFO]
[INFO] --- maven-surefire-plugin:2.19.1:test (default-test) @ sikuli-poc ---
-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running mac.MSWord
Warning: Nashorn engine is planned to be removed from a future JDK release
[log] CLICK on L[166,120]@S(0) (533 msec)
[log] CLICK on L[166,121]@S(0) (529 msec)
[log] ( ⌘ ) TYPE “a”
#
# A fatal error has been detected by the Java Runtime Environment:
#
# SIGILL (0x4) at pc=0x00007fff6b17b8f1, pid=52645, tid=6659
#
# JRE version: OpenJDK Runtime Environment (14.0.1+14) (build 14.0.1+14)
# Java VM: OpenJDK 64-Bit Server VM (14.0.1+14, mixed mode, sharing, tiered, compressed oops, g1 gc, bsd-amd64)
# Problematic frame:
# C [libdispatch.dylib+0x38f1] _dispatch_assert_queue_fail+0x63
#
# No core dump will be written. Core dumps have been disabled. To enable core dumping, try “ulimit -c unlimited” before starting Java again
#
# An error report file with more information is saved as:
# /Users/vrazin/my_work/Sikuli/zero/test-automation/sikuli-poc/hs_err_pid52645.log
#
# If you would like to submit a bug report, please visit:
# https://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:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2020-09-11
Last reply:
2020-09-11
RaiMan (raimund-hocke) said : #1

What system? What SikuliX version?

Cory She (cory-she) said : #2

macOS Catalina version 10.15.6
Sikuli version 2.0.1

RaiMan (raimund-hocke) said : #3

please try with 2.0.4

Can you help with this problem?

Provide an answer of your own, or ask Cory She for more information if necessary.

To post a message you must log in.