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

Crash/assert when deselecting "Insert at cursor" when adding test function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P1: Critical
    • None
    • Qt Creator 2.4.0
    • Test Integration
    • None

    Description

      open test class, choose "Add test function" from context menu and make sure "Insert at cursor" is deselected.

      ASSERT: "!isEmpty()"

      Thread 0 Crashed: Dispatch queue: com.apple.main-thread
      0 libSystem.B.dylib 0x00007fff814780b6 __kill + 10
      1 libSystem.B.dylib 0x00007fff815189f6 abort + 83
      2 QtCore 0x00000001000f2195 qt_message_output(QtMsgType, char const*) + 117
      3 QtCore 0x00000001000f2377 qt_message(QtMsgType, char const*, __va_list_tag*) + 183
      4 QtCore 0x00000001000f253a qFatal(char const*, ...) + 170
      5 libQtTest_debug.dylib 0x000000011d7e5bd7 QList<TestFunctionInfo*>::last() + 49 (qlist.h:284)
      6 libQtTest_debug.dylib 0x000000011d7d8f4e TestCode::addTestFunction(QString const&, QString const&, bool) + 1776 (testcode.cpp:1219)
      7 libQtTest_debug.dylib 0x000000011d7b6cd8 QtTest::Internal::QtTestPlugin::insertTestFunction() + 1230 (qttestplugin.cpp:317)
      8 libQtTest_debug.dylib 0x000000011d82512f QtTest::Internal::QtTestPlugin::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) + 435 (moc_qttestplugin.cpp:80)
      9 QtCore 0x000000010022966e QMetaObject::activate(QObject*, QMetaObject const*, int, void**) + 1566
      10 QtGui 0x000000010049d261 QAction::triggered(bool) + 49
      11 QtGui 0x000000010049e5f4 QAction::activate(QAction::ActionEvent) + 180
      12 QtGui 0x00000001008cfc5c QMenuPrivate::activateCausedStack(QList<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool) + 412
      13 QtGui 0x00000001008d54a4 QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool) + 324
      14 QtGui 0x00000001004fb731 QWidget::event(QEvent*) + 2369
      15 QtGui 0x00000001008d4eeb QMenu::event(QEvent*) + 107
      16 QtGui 0x00000001004a390d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 189
      17 QtGui 0x00000001004aa4e0 QApplication::notify(QObject*, QEvent*) + 2384
      18 QtCore 0x00000001002115ec QCoreApplication::notifyInternal(QObject*, QEvent*) + 124
      19 QtGui 0x00000001004a7efd QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) + 333
      20 QtGui 0x00000001004577a5 qt_mac_handleMouseEvent(NSEvent*, QEvent::Type, Qt::MouseButton, QWidget*) + 741
      21 com.apple.AppKit 0x00007fff866e3431 -[NSWindow sendEvent:] + 5547
      22 QtGui 0x0000000100444467 -[QCocoaPanel sendEvent:] + 87
      23 com.apple.AppKit 0x00007fff86618afa -[NSApplication sendEvent:] + 4719
      24 QtGui 0x0000000100451924 -[QNSApplication sendEvent:] + 84
      25 com.apple.AppKit 0x00007fff865af6de -[NSApplication run] + 474
      26 QtGui 0x000000010045cc90 QEventDispatcherMac::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 1824
      27 QtCore 0x0000000100210504 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 68
      28 QtCore 0x00000001002108b4 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 324
      29 QtGui 0x00000001008d3024 QMenu::exec(QPoint const&, QAction*) + 116

      Attachments

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

        Activity

          People

            sunil.thaha Sunil Thaha
            con Eike Ziller
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes