Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-111116

QT BLE scanner example causes high cpu usage

    XMLWordPrintable

Details

    • Windows
    • 21
    • 4eac30923 (dev), fd9c9a6ea (6.5), c54f4e26a (tqtc/lts-6.2)
    • Foundation Sprint 76, Foundation Sprint 77, Foundation Sprint 78

    Description

      Using latest build of Windows 10 + Qt 6.4.2. Built and ran Qt Bluetooth Low Energy Scanner example. It's causing 100% cpu usage in process "Service Host: Device Association Service", makes the computer virtually unusable. The scan takes several minutes to complete and only addresses of BLE devices are displayed - not their names?

      OTOH, I tried sample Windows Universal Ble scanner. It doesn't result in high cpu usage, scan completes quickly and it also displays name of the ble peripheral.

      Considering QBluetooth in 6.4.2 uses winrt backend, such huge difference implies possible implementation bug in Qt?

      Link to Windows Official Ble Sample app: https://learn.microsoft.com/en-us/samples/microsoft/windows-universal-samples/bluetoothle/ 

      Note: Following errors are output when Qt Ble sample is run in debug mode.
       

      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(1) tid(3c4c0) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(2) tid(3c4c0) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(1) tid(3c4c0) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(3) tid(39234) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(4) tid(39234) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(2) tid(39234) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(5) tid(3abdc) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(6) tid(3abdc) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(3) tid(3abdc) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(7) tid(3a834) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(8) tid(3a834) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(4) tid(3a834) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(9) tid(3b8ac) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(10) tid(3b8ac) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(5) tid(3b8ac) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(11) tid(39c60) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(12) tid(39c60) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(6) tid(39c60) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(13) tid(3830c) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(14) tid(3830c) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(7) tid(3830c) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(15) tid(393bc) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(16) tid(393bc) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(8) tid(393bc) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(17) tid(30940) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(18) tid(30940) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(9) tid(30940) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(19) tid(35a8c) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(20) tid(35a8c) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(10) tid(35a8c) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(21) tid(3ca50) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(22) tid(3ca50) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(11) tid(3ca50) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(297)\Windows.Devices.Bluetooth.dll!00007FF854E20C10: (caller: 00007FF854E20698) ReturnHr(23) tid(3d8ac) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\common\devquerydevpropprovider.cpp(131)\Windows.Devices.Bluetooth.dll!00007FF854E206EC: (caller: 00007FF854E35B5A) ReturnHr(24) tid(3d8ac) 80070490 Element not found.
      onecoreuap\drivers\wdm\bluetooth\user\winrt\device\bluetoothledevice.cpp(1597)\Windows.Devices.Bluetooth.dll!00007FF854E35B72: (caller: 00007FF854E30BC0) LogHr(12) tid(3d8ac) 80070490 Element not found.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'.
      Exception thrown at 0x00007FF87DEFCD29 (KernelBase.dll) in lowenergyscanner.exe: WinRT originate error - 0x80010108 : 'The object invoked has disconnected from its clients.'. 

       

      Attachments

        1. qt_version.png
          qt_version.png
          26 kB
        2. qt_kit.png
          qt_kit.png
          49 kB
        3. image-2023-02-22-19-22-47-878.png
          image-2023-02-22-19-22-47-878.png
          10 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              ivan.solovev Ivan Solovev
              taytoo Mike Flanigan
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes