-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unplug serial device cause system shutdown on windows #157
Comments
Hello @ArthurZhou, does this mean your application exists or that your operation system shuts down and turns the lights off? I would expect that the application quits due to the serial port getting closed by the operating system when your Bluetooth device gets powered off. But not the latter. Are you getting the message |
The fact is that my operation system shuts down. I know that this sounds unbelievable, but it just happened yesterday. So far, I have tried to reproduce this bug 8 times, and this happened 3 times. I'm wondering if this is a system driver bug. Some related(maybe) logs from Windows Event Viewer: |
I was testing the disconnection behavior on my system, too (Surface Pro 8) and it gave me a blue screen repeatedly when disconnecting a USB device. And with disconnection I meant pulling the cable to see what happens. |
Maybe a windows bug, as I cannot reproduce it on Ubuntu desktop and arch linux. But this doesn't happened when I use Python to do this on windows Weird🤔 |
Yeah, never had any troubles with the same executable on my Ubuntu desktop either. My Windows BSOD sequence:
Where at step 2 and 3 I often receive some disconnect error or a subsequent "no rights" kind of error for the replugged device. I wouldn't mind an error or even a panic, but a full BSOD is kind of heavy hitting. Could it be related to the |
Is there any progress on this? What can I do to help pinpoint the problem? |
Not from my side due to way lower hanging fruits. A log or screenshot of the BSOD and an minimal working example could (like in |
currently i am unable to reproduce this bug after i updated my windows. i've tried to reproduce this bug on Windows 10 LTSC 2021, with latest system bug fixes installed (2024/08/03) i will try to collect and post the bsod info and other detailed info here if this happens again (sorry for my poor english |
Once the connection is built, power off the serial device will cause the system to shutdown.
My serial device is an NodeMCU ESP32S. It communicate with my computer through Bluetooth.
Windows Bluetooth config:
Windows version:
My rust code:
The text was updated successfully, but these errors were encountered: