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

Program terminates unexpectedly when connecting to an unpaired device with a some protected attributes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.13.0 Beta 1
    • Fix Version/s: 5.13.0 Beta2
    • Labels:
      None
    • Environment:
      Windows 10 (1803 / 17134.648), Qt 5.13.0 Beta 1
    • Platform/s:
      Windows
    • Commits:
      86b4ccddf476f0c18fe04542c52e29b728dbe679

      Description

      When calling discoverDetails on a device which has not been paired but with a number of secure attributes, windows seems to throw an exception  that is not handled and the program ends.

      When running in the debugger, it shows the following log:

      debug 2019-03-27T14:42:02 qt.bluetooth.winrt: QWinRTLowEnergyServiceHandlerNew::obtainCharList
      debug 2019-03-27T14:42:02 qt.bluetooth.winrt: QWinRTLowEnergyServiceHandlerNew::obtainCharList
      onecoreuap\drivers\wdm\bluetooth\user\winrt\gatt\gattcharacteristic.cpp(971)\Windows.Devices.Bluetooth.dll!00007FFD068FFD1E: (caller: 00007FFD06906AAE) Exception(1) tid(1070) 80650005 The attribute requires authentication before it can be read or written.
      
      
      Exception at 0x7ffd2df9a388, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in Windows_Devices_Bluetooth
      
      
      Exception at 0x7ffd2df9a388, code: 0xe06d7363: C++ exception, flags=0x1 (execution cannot be continued) (first chance) in Windows_Devices_Bluetooth
      

       

      A screenshot of the stacktrace (with debug symbols) is attached.

        Attachments

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

          Activity

            People

            • Assignee:
              owolff Oliver Wolff
              Reporter:
              ThiemoVanEngelen Thiemo van Engelen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes