Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-9947

Expanding an array with 214 elements in the Locals and Expressions window takes ~20 seconds

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • Qt Creator 2.8.1
    • Qt Creator 2.8.0
    • Debugger
    • None
    • Ubuntu 12.04 64-bit
      Qt Creator build with Qt 5.1 from 85a1e3ca55c512d45817a0a7c79cd3900968abc4
      GNU gdb (Ubuntu/Linaro 7.4-2012.04-0ubuntu2.1) 7.4-2012.04
    • 16c4c2ae649221c1a18dd38bfd6cda0585356319

      1. Open src/gui/kernel/qkeysequence.cpp.
      2. Put a breakpoint on line 1458.
      3. Debug this app:

      #include <QtGui>
      
      #if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
      #include <QtWidgets>
      #endif
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
      
          qDebug() << QKeySequence(Qt::Key_Cancel).toString();
      
          return 0;
      }
      

      4. Add the expression "keyname" to the Locals and Expressions window.
      5. Click on the expand icon of the expression. It will take roughly 20 seconds to display the elements. Expanding any of the elements themselves takes the same amount of time.

        1. debuggerlog.txt
          50 kB
        2. debuggerlog-v2.txt
          47 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hjk hjk
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes