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

General Windows system freeze with setTimer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 4.8.4
    • Core: Event loop
    • Visual Studio 2012 Update 2
      Window 7 64 bit

    Description

      The following problem only happens in this context:
      1) Visual Studio 2012
      2) Windows 7 64 bit.

      I insist on this, because the problem does not happen in Windows 8, nor with Windows 7 32 bit, nor with Visual Studio 2010.
      However it happens for code both in 32 and 64 bit.

      The following small application causes the entire Windows system to freeze as soon as you click the window caption bar and try to move it. The only solution is to press "Alt + Ctrl + Del" to open the Task Manager.
      Setting startTimer(1) does not cause this problem.
      That problem remembers me some old stuff in qeventdispatcher_win.cpp
      (cf.
      https://bugreports.qt-project.org/browse/QTBUG-12721
      https://bugreports.qt-project.org/browse/QTBUG-6083
      )

      I should add:

      • Problem is 100% reproducable.
      • The problem happens on different machine, including on a fresh Windows 7 installation
      • I could guess the problem is more on the side of the MS dynamic run time library, because if (in Visual Studio 2012) I select "Visual Studio 2010 tool set" rather than the default "2012 tool set", the problem still happens.
      #include <QtGui>
      
      int main(int argc, char** argv)
      {
        QApplication app(argc, argv);
        QMainWindow mw;
        mw.show();
        mw.startTimer(0);
        return app.exec();
      }
      

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            jirauser26727 user-04d21 (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes