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

Using QNetworkInformation will cause application crash when exit

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 6.1.0 RC, 6.2.0 Alpha
    • 6.1.0 FF, 6.1.0 Alpha, 6.1.0 Beta 1, 6.1.0 Beta2, 6.1.0 Beta3
    • Network
    • None
    • Windows
    • 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

        Activity

          People

            manordheim Mårten Nordheim
            wangwenx190 赵 宇航
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes