hbldh / bleak

A cross platform Bluetooth Low Energy Client for Python using asyncio
MIT License
1.56k stars 275 forks source link

Crashes with Excit Code -1073741819 (0xC0000005) #1506

Open savejeff opened 3 months ago

savejeff commented 3 months ago

Description

I use bleak in my project for an optional feature for a while but about half a year ago. Then i started getting random crashes with this error message:Process finished with exit code -1073741819 (0xC0000005)

My Project is a modular program where each module runs in its own thread using Threading (not Multithreading, so no multi core) The BLE Module basically only scans for devices, after a few seconds it crashes.

I used bleak with threading in the project for over two years without having any issues, then it started out of the blue. I don't remember updating bleak to a newer version at the time these crashes started, so my first thought was maybe a windows update that changed the Bluetooth API ?

As it is an optional feature, I've put of investigating what causes this. Any suggestions what might cause this?

dlech commented 3 months ago

Can you share a minimal reproducible test case?

savejeff commented 3 months ago

Funny thing, im currently unable to reproduce it, Ill report back when i made progress