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

Execution hangs in the QApplication constructor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.14.2
    • Core: Other
    • None
    • Windows

    Description

      Execution hangs in the QApplication constructor on a specific machine. The same code in other PC works fine.

       

      This machine is Windows 10. It apparently doesn't have nothing strange.

       

      It happens using Qt5.14.2 and it works fine using Qt5.12.0. (VS2017 x64)

       

      Code:

       

      #include <iostream> // for std::cout
      #include <QtWidgets/QApplication>

       

      int main(int argc, char **argv)
      {
         std::cout << "Testing ...." << std::endl;
         std::cout << "Before QApplication constructor " << std::endl;
         QApplication app(argc, argv);
         std::cout << "After QApplication constructor " << std::endl;
      }

       

      In This Machine: 

      C:\> test.exe

      Testing ....
      Before QApplication constructor 

      (It does not return control after 10 minutes)

       

      In Others Machines: 

      C:\> test.exe

      Testing ....
      Before QApplication constructor

      After QApplication constructor

      (It returns control immediately)

       

      Attachments

        1. callstack.png
          callstack.png
          655 kB
        2. callstack2.PNG
          callstack2.PNG
          705 kB
        3. deadlock.png
          deadlock.png
          579 kB
        4. CPU_VisualStudio.PNG
          CPU_VisualStudio.PNG
          35 kB
        5. callstack.txt
          5 kB
        6. taskmgr.PNG
          taskmgr.PNG
          13 kB

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              miguel.majuelos Miguel Majuelos Mudarra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes