iohook icon indicating copy to clipboard operation
iohook copied to clipboard

App quite after pressing volume keys on macOS Catalina

Open pisces-hui opened this issue 4 years ago • 6 comments

Expected Behavior

Press volume keys without quit.

Current Behavior

After press volume keys, the entire app would quit immediately.

Just like command + Q.

Possible Solution

N/A

Steps to Reproduce (for bugs)

  1. git clone electron and yarn
  2. yarn add iohook
  3. start
  4. Press key volume up
  5. Quit

Context

/Users/pisces/workspace/demos/elet/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron exited with signal SIGILL
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Your Environment

"dependencies": {
    "iohook": "^0.7.2",
     "electron": "^11.3.0",
  },
  "iohook": {
    "targets": [
      "node-83",
      "electron-85"
    ],
    "platforms": [
      "win32",
      "darwin"
    ],
    "arches": [
      "x64",
      "ia32"
    ]
  }

node.js v14.15.5 macos Catalina v10.15.6

pisces-hui avatar Feb 20 '21 13:02 pisces-hui

Having the same issue on bigSur, not only on volume keys but all the media keys

amitojsingh366 avatar Mar 16 '21 06:03 amitojsingh366

Having the same issue with big sur

anis-dr avatar Mar 19 '21 22:03 anis-dr

Same issue on Big sur, also for all the media keys Electron exited with signal SIGILL

ppenelon avatar Apr 19 '21 09:04 ppenelon

Can anyone provide a stacktrace?

ash0x0 avatar Jun 11 '21 18:06 ash0x0

Further to what @ash0x0 asked, can you provide pics of the keyboard you are seeing this on and details on keyboard model? (Is it Apple official? 3rd party? Built into Macbook?). Unable to repro here on several Apple & generic/3rd party keyboards that I've tested on. Some media keys get trapped by iohook and others seemingly ignored, but no crashes here.

marcelblum avatar Jun 11 '21 19:06 marcelblum

I crashes for me when using touch bar media controls (volume, play/pause). However, this happens only when running the app through a terminal with electron app.js. When the app is built using electron-builder I've experienced it once or twice, but cannot reproduce every time.

Environment:

  • macOS Catalina 10.15.7,
  • MacBook Pro 16",
  • iohook running in Electron 11 on Node 14 in the main process,
  • no external keyboard/mouse attached.

DCzajkowski avatar Sep 21 '21 10:09 DCzajkowski