QLowEnergyService discoverDetails() silent crash on Windows 11

Charles peacech at gmail.com
Wed May 22 11:00:27 BST 2024


Have you tried changing the "Bluetooth devices discovery" on the bluetooth
windows settings to Advanced?

On Tue, May 14, 2024 at 10:45 PM Benjamin Griffiths <
ben at familygriffiths.me.uk> wrote:

> Hi there,
>
> The *discoverDetails()* function call on a *QLowEnergyService* object
> causes my application to crash on Windows 11, it works fine on Windows 10
> however.
>
> It seems this issue has been around for a few years, and is related to
> PyQt/Qt for Python:
> (Apologies in advance if this issue has already been raised on this
> mailing list)
>
>
> https://forum.qt.io/topic/146796/qtbluetooth-crashes-at-discoverdetails-on-win11
> https://bugreports.qt.io/browse/QTBUG-109510
>
> I have attached a minimal reproducable example that displays a list of
> discovered BLE devices. Click on a device and then click connect. When the
> device is connected and a service is discovered, the discoverDetails()
> function call on line 78 causes the crash.
>
> Any support would be greatly appreciated.
>
> Many thanks,
>
> Ben
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20240522/f70dcf5f/attachment.htm>


More information about the PyQt mailing list