← Back to team overview

sikuli-driver team mailing list archive

[Bug 1424949] Re: Eclipse plugin project: Mac: using SikuliX hotkeys causes java crash

 

** Changed in: sikuli
       Status: In Progress => Confirmed

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

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

Title:
  Eclipse plugin project: Mac: using SikuliX hotkeys causes java crash

Status in Sikuli:
  Confirmed

Bug description:
  Good day,

  Here at my work we use a eclipse's plugin (made by us) to operate with
  sikuli on ours automated tests. Till some time ago we only used
  Windows OS (running on Windows 7[64], but now we have a Mac OS X
  (running on version 10.10.2 [Yosmite]) so I was assigned to make this
  transaction happen.

  I'm using Sikuli 1.1.0 (tried with Sikuli 1.0.1 too) and JDK 8. Things
  are almost 100% but I have a problem with Sikuli's Hotkey...

  Everytime I used the assigned hotkeys, it causes java to crash!
  Searching in the error logs, it seems a problem with a call on the
  MacHotkeyManager.dylib.

  Is there any know solution for this?

  ---------------
  The creation method is as follow:

  HotkeyManager.getInstance()._addHotkey(KeyEvent.VK_2, KeyEvent.SHIFT_MASK + KeyEvent.CTRL_MASK, new HotkeyListener() {
                         @Override
  			public synchronized void hotkeyPressed(HotkeyEvent e) {
  				Display.getDefault().syncExec(new Runnable() {
  					public void run() {
  						//Ours method call
  				    }
  				});
  			}
  			
  });

  ---------------
  Eclipse error log (on console):

  ...
  #
  # A fatal error has been detected by the Java Runtime Environment:
  #
  #  SIGSEGV (0xb) at pc=0x0000000105709af4, pid=18026, tid=1811
  #
  # JRE version: Java(TM) SE Runtime Environment (8.0_31-b13) (build 1.8.0_31-b13)
  # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.31-b07 mixed mode bsd-amd64 compressed oops)
  # Problematic frame:
  # V  [libjvm.dylib+0x309af4]
  #
  # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
  ...

  ---------------
  Eclipse error log (actual crash log)

  0   libsystem_kernel.dylib        	0x00007fff8bf2f286 __pthread_kill + 10
  1   libsystem_c.dylib             	0x00007fff90d4eb53 abort + 129
  2   libjvm.dylib                  	0x0000000105459f1f os::abort(bool) + 25
  3   libjvm.dylib                  	0x0000000105576e36 VMError::report_and_die() + 2260
  4   libjvm.dylib                  	0x000000010545ba92 JVM_handle_bsd_signal + 1131
  5   libjvm.dylib                  	0x0000000105457f53 signalHandler(int, __siginfo*, void*) + 47
  6   libsystem_platform.dylib      	0x00007fff8fc04f1a _sigtramp + 26
  7   libjvm.dylib                  	0x0000000105306af4 alloc_object(_jclass*, Thread*) + 10
  8   libjvm.dylib                  	0x00000001052f64a0 jni_AllocObject + 102
  9   libMacHotkeyManager.dylib     	0x000000011905148f callJavaMethod(JavaVM_*, _jobject*, CallbackData*) + 207
  10  libMacHotkeyManager.dylib     	0x00000001190512fe shortcutHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) + 174
  11  com.apple.HIToolbox           	0x00007fff8f41398c DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) + 1260
  ...

  ---------------
  FYI on the plugin:
  - works fine on Win OS
  - works fine without the use of the hotkeys
  - Sikuli's Debug dosen't give any information before the crash happens.

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


References