Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.1.0 FF, 6.1.0 Alpha, 6.1.0 Beta 1, 6.1.0 Beta2, 6.1.0 Beta3
-
None
-
-
e875c071ec32ab9aa460c982f25f6c6191e41326 (qt/qtbase/dev) 6a4b3e861e1e191657181a74eeb4e60a52d12ca3 (qt/qtbase/6.1.0) 4e8e92f640d50163d73caff7a188280ffd6bddcc (qt/qtbase/6.1)
Description
Using QNetworkInformation will cause application crash when exit. Just try the following simple code:
#include <QCoreApplication> #include <QNetworkInformation> int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QNetworkInformation::load(QNetworkInformation::Feature::Reachability); return a.exec(); }
It's the same for Qt Widgets or Qt Quick applications. On Windows 7, the application will always crash when exit, on Windows 10, the application will stuck in the background (when exit).
Not tested on Linux.
Attachments
For Gerrit Dashboard: QTBUG-92568 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
343002,4 | QNetworkInformation: delete the instance as a post-routine | dev | qt/qtbase | Status: MERGED | +2 | 0 |
343102,2 | QNetworkInformation: delete the instance as a post-routine | 6.1.0 | qt/qtbase | Status: MERGED | +2 | 0 |
343243,2 | QNetworkInformation: delete the instance as a post-routine | 6.1 | qt/qtbase | Status: MERGED | +2 | 0 |