iohook icon indicating copy to clipboard operation
iohook copied to clipboard

"Segmentation fault" error while running on Windows 10

Open mostafa-saeed opened this issue 4 years ago • 1 comments
trafficstars

Environment

  • IOHook Version: 0.9.3
  • Environment: NodeJS v14.15.5
  • Operating System: Windows 10 64bit

Expected Behavior

I'm trying to console.log the 'keypress' event using the code below:

const ioHook = require('iohook');

ioHook.on('keypress', event => console.log(event));
ioHook.start();

Current Behavior

Here is the output from running node app.js:

refresh_locale_list [476]: GetKeyboardLayoutList(0, NULL) found 2 layouts.
refresh_locale_list [493]: Received 2 locales.
load_input_helper [866]: refresh_locale_list() found 2 locale(s).
Segmentation fault

Additional Information

  • The 'require' statement instantly throws the error.
  • NPM found 1 high severity vulnerability and here is the full log from npm audit:
                       === npm audit security report ===                        


                                 Manual Review                                  
             Some vulnerabilities require your attention to resolve

          Visit https://go.npm.me/audit-guide for additional guidance


  High            Regular Expression Denial of Service

  Package         trim-newlines

  Patched in      >=3.0.1 <4.0.0 || >=4.0.1

  Dependency of   iohook

  Path            iohook > nugget > pretty-bytes > meow > trim-newlines

  More info       https://npmjs.com/advisories/1753

found 1 high severity vulnerability in 146 scanned packages
  1 vulnerability requires manual review. See the full report for details.

mostafa-saeed avatar Sep 29 '21 08:09 mostafa-saeed

Looks like a duplicate of #319.

mdreier-sap avatar Nov 02 '21 11:11 mdreier-sap