node-hid: Windows node-hid apps don't exit if `device.on('data', ...)` event handler and device doesn't send data

Hi

I am have a piece of hardware which disconnects itself from usb (without physical d/c) approximately at the same time that I do handle.close() I am getting this error randomly about every 1/5th runs. I tried to google this issue but I only find non electron apps talking about heap corruption, unsure if it’s related.

Environment:

Windows 10 Pro (1803, build 17134.1069).
"node-hid": "^1.1.0"
"electron": "^7.1.2",

Please provide some guidance on how to test this issue, I am having trouble reproducing it consistently

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 24 (9 by maintainers)

Commits related to this issue

Most upvoted comments

Hi @todbot - d762819 appears to work in my local tests.

Do we still plan on publishing a new 1.2.0 release soon?