tomzx / gkm

⚠ Unsupported/Unmaintained ⚠️️ Global Keyboard and Mouse listener for node.js.
MIT License
52 stars 16 forks source link

Does not work on linux #15

Open Meldiron opened 6 years ago

Meldiron commented 6 years ago

OS: raspbian (on raspberry pi 3 model b+) java -version:

java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

javac -version: javac 1.8.0_65

command: java -jar gkm.jar

error:

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x643640a4, pid=1116, tid=1982747760
#
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
# Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode linux-arm )
# Problematic frame:
# C  [libX11.so.6+0x870a4]  XkbGetUpdatedMap+0x4
#
# Core dump written. Default location: /home/pi/Desktop/startup/node_modules/gkm/lib/core or core.1116
#
# An error report file with more information is saved as:
# /home/pi/Desktop/startup/node_modules/gkm/lib/hs_err_pid1116.log
#
# 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.
#
Aborted (core dumped)
tomzx commented 6 years ago

Can you run JNativeHook on your computer? Download https://github.com/kwhat/jnativehook/releases/download/2.0.3/JNativeHook-2.0.3.zip and then run java -jar JNativeHook.jar. If this also crashes, then you should report the issue @ https://github.com/kwhat/jnativehook/issues. If it doesn't crash, can you also share the content of the file pointed out in the generated error (a file like /home/pi/Desktop/startup/node_modules/gkm/lib/hs_err_pid1116.log)?