Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Segmentation fault when removing and adding the usb too fast #158

Open
DHVPP opened this issue Feb 11, 2022 · 3 comments
Open

Segmentation fault when removing and adding the usb too fast #158

DHVPP opened this issue Feb 11, 2022 · 3 comments

Comments

@DHVPP
Copy link

DHVPP commented Feb 11, 2022

Hello,

I've encountered a problem with this package where If i remove and add the USB device too fast (as fast as I can), my Electron app just crashes and I get back the Segmentation fault (core dumped) error in logs. This error specifically happens when the package takes more than 1 sec to detect changes on USB ports (this happens kinda often) and in the meantime i pull out and plug in the USB again.

Info about the implementation: I call usbDetect.startMonitoring() as soon as the app is ready to launch, and I call usbDetect.stopMonitoring() before the app closes. I'm also only listening to add and remove events.

Linux Ubuntu 20.04
Node version 16.13.1
Electron version 16.0.0

I've seen #138 and #156 issues, but this might be a different problem.

Thanks for reading, hope to hear from you about this,
Regards

@DHVPP
Copy link
Author

DHVPP commented Feb 17, 2022

@MadLittleMods Hey, sorry to be bothering you directly. Can I at least get a feedback if this sounds to you like a valid case or it might be a problem with my project specificaly?

@MadLittleMods
Copy link
Owner

@DHVPP Sounds plausible which is why the labels were added 👍

@oleszczyk
Copy link

oleszczyk commented Oct 27, 2022

Same issue here :( Any chance it will be fixed soon?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants