Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-56

Visual Studio crashes when a QSet<QString> is created on the stack in the constructor of a class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.1.10
    • 1.1.7
    • General
    • None
    • Windows 7/Visual Studio 2008
    • 4e44a2a16da225abb15de1800215027557ff25e1

    Description

      To reproduce this, create a skeleton QMainWindow project using Qt Addin v 1.1.4/1.1.5 or 1.1.6 and to the constructor of the main window class, add something like this:-

      qDebug() << "Set a breakpoint on this line and launch the debugger,";
      qDebug() << "then make sure the 'Locals' and 'Auto' debugger windows are open in VS 2008.";
      qDebug() << "As soon as the debugger reaches the breakpoint, it enters a deadlock.";

      QSet<QString> m_qSet;

      Put a break point on the second debug line and then launch the application in the debugger. Visual Studio will freeze and report a serious problem has occurred which should be reported blah blah blah.

      After uninstalling the Qt Addin, the problem disappears. This would therefore appear to be some problem with introspection of stack allocated variables (locals/autos) of specific types (in this case QSet<QString> with the Addin.

      Attachments

        Issue Links

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

          Activity

            People

              jbornema Joerg Bornemann
              szef Gennady Kazachek
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes