this task is continuing from task: https://bugreports.qt.io/browse/QTBUG-96057
Issue 1: Hang
QT versions: 5.15.7, 6.2.1. Note: 5.15.6 and before don't see the hang
hang after do some steps scan device information on both of unpaired/paired mode.
Connect to a BLE device unpaired mode. cannot connected, but it hang and blocked application. then also cannot restart application correctly, need to restart windows. i used Windows 11, for the issue why cannot connect to a unpaired on windows 11, i created a task for it. this task is focus on process of BT lib should not crash and hang in every cases.
Log file: Issue_1_Hang.txt
I tested the same case, but change to my custom build lib that use
- https://codereview.qt-project.org/c/qt/qtbase/+/372601 (note that this one goes to qtbase)
i didn't see hang. LogCustomBuildLib.txt
issue 2: after received signal: QLowEnergyController::discoveryFinished (scan services done).
if call QLowEnergyService::discoverDetails right aways to get characterictics infos, with some device types that don't work, that meant, it doesn't have this messages:
but, if i change to wait 500ms, or 1000ms before call QLowEnergyService::discoverDetails. it works. and also need to wait a time for next service details.
and the waiting time is not clear. on windows 10, i just set it to 500ms. but on windows 11, i need to set it 1000ms.
Issue 3: crash on 6.2.1 - debug mode. happened everytimes
task fixed: https://bugreports.qt.io/browse/QTBUG-98005