Skip to content
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

Peripheral.Connect halts on windows 11 #301

Open
mrhatman opened this issue Mar 31, 2023 · 1 comment
Open

Peripheral.Connect halts on windows 11 #301

mrhatman opened this issue Mar 31, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@mrhatman
Copy link

Describe the bug
When attempting to connect to a BLE device on Windows 11 it stalls out forever.

Expected behavior
peripheral.connect().await should connect or return an error but on windows 11 it does not.

Additional context
The exact same codebase runs on multiple Windows 10 laptops and fails across multiple windows 11 laptops( across multiple companies too)

I have tried updating the windows crate to version 0.46.0 (latest) and I tried pull number #269 with no luck on either device.

@mrhatman mrhatman added the bug Something isn't working label Mar 31, 2023
@jesterfraud
Copy link

I've encountered a deadlock on Peripheral.connect() on Windows 11 as well. It doesn't happen on initial connection, but it seems to occur if the device moves out of range and my handling logic attempts to reconnect on return.

I look a screenshot of tokio-console with the deadlock:

Screenshot 2023-10-19 002350

In particular, I already wrapped this connect call in a tokio::time::timeout, which you can see at the top of the screenshot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants