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

DeviceFoundAsync spuriously throws an Exception #23

Open
ChristianSauer opened this issue May 11, 2023 · 0 comments
Open

DeviceFoundAsync spuriously throws an Exception #23

ChristianSauer opened this issue May 11, 2023 · 0 comments

Comments

@ChristianSauer
Copy link
Contributor

This does not happen all the time, but rarely. Looks like a race condition for me:

Stacktraces I managed to capture:

Message: Value does not fall within the expected range.

at System.BluetoothLe.Adapter.DeviceFoundAsync(BluetoothLEAdvertisementWatcher watcher, BluetoothLEAdvertisementReceivedEventArgs btAdv)\r\n   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)\r\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()\r\n   at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()

or

"Message":"Schwerwiegender Fehler (0x8000FFFF (E_UNEXPECTED))"

 at System.BluetoothLe.Adapter.DeviceFoundAsync(BluetoothLEAdvertisementWatcher watcher, BluetoothLEAdvertisementReceivedEventArgs btAdv)\r\n   at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_1(Object state)\r\n   at System.Threading.ThreadPoolWorkQueue.Dispatch()

both seem to be thrown unobserved, which makes catching them difficult.

I do not have more stacktraces atm, this mangled stuff comes from our error reporting system.

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

No branches or pull requests

1 participant