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

Crash when adding file to .qmlproject

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • Qt Creator 2.1.0
    • Qt Creator 2.2.0
    • None
    • Linux-64bit, Creator/master branch from Friday, December 6th (85fac8d4af2e7be0d4432cc05439df817e70619f).

    Description

      How to reproduce

      Not directly reproducable What I did was

      • Creating a new .qmlproject from scratch
      • Trying to add another .qml file to it (via New File wizard in context menu of .qmlproject file)

      Application Output

      ASSERT: "isSorted(newNodeList)" in file /home/kkoehne/dev/creator/src/plugins/projectexplorer/projectmodels.cpp, line 545
      Aborted (core dumped)
      

      Backtrace

      (gdb) bt
      #0  0x00007f995f2f79e5 in raise () from /lib64/libc.so.6
      #1  0x00007f995f2f8ee6 in abort () from /lib64/libc.so.6
      #2  0x00007f9960049f28 in qt_message_output (msgType=QtFatalMsg, buf=
          0x1506ac8 "ASSERT: \"isSorted(newNodeList)\" in file /home/kkoehne/dev/creator/src/plugins/projectexplorer/projectmodels.cpp, line 545")
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/global/qglobal.cpp:2282
      #3  0x00007f996004a0a4 in qt_message(QtMsgType, const char *, typedef __va_list_tag __va_list_tag *) (msgType=QtFatalMsg, msg=
          0x7f99601f24e8 "ASSERT: \"%s\" in file %s, line %d", ap=0x7fff6582e700) at /home/kkoehne/dev/qt/qt-4.7/src/corelib/global/qglobal.cpp:2328
      #4  0x00007f996004a912 in qFatal (msg=0x7f99601f24e8 "ASSERT: \"%s\" in file %s, line %d")
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/global/qglobal.cpp:2511
      #5  0x00007f9960049adb in qt_assert (assertion=0x7f9956c5d841 "isSorted(newNodeList)", file=
          0x7f9956c5d6f8 "/home/kkoehne/dev/creator/src/plugins/projectexplorer/projectmodels.cpp", line=545)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/global/qglobal.cpp:2027
      #6  0x00007f9956bb7504 in ProjectExplorer::Internal::FlatModel::added (this=0x105b6d0, parentNode=0x148cf10, newNodeList=...)
          at /home/kkoehne/dev/creator/src/plugins/projectexplorer/projectmodels.cpp:545
      #7  0x00007f9956bb8d7a in ProjectExplorer::Internal::FlatModel::filesAdded (this=0x105b6d0)
          at /home/kkoehne/dev/creator/src/plugins/projectexplorer/projectmodels.cpp:783
      #8  0x00007f9956c21721 in ProjectExplorer::Internal::FlatModel::qt_metacall (this=0x105b6d0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=
          0x7fff6582eb40) at /home/kkoehne/dev/creator/src/plugins/projectexplorer/.moc/debug-shared/moc_projectmodels.cpp:105
      #9  0x00007f996017a27f in QMetaObject::metacall (object=0x105b6d0, cl=QMetaObject::InvokeMetaMethod, idx=33, argv=0x7fff6582eb40)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qmetaobject.cpp:237
      #10 0x00007f996018f0b5 in QMetaObject::activate (sender=0x105b820, m=0x7f9956f0a460, local_signal_index=7, argv=0x0)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qobject.cpp:3272
      #11 0x00007f9956c20ccf in ProjectExplorer::NodesWatcher::filesAdded (this=0x105b820)
          at /home/kkoehne/dev/creator/src/plugins/projectexplorer/.moc/debug-shared/moc_projectnodes.cpp:426
      #12 0x00007f9956ba4e73 in ProjectExplorer::ProjectNode::addFileNodes (this=0x148cf10, files=..., folder=0x148cf10)
          at /home/kkoehne/dev/creator/src/plugins/projectexplorer/projectnodes.cpp:525
      #13 0x00007f994c28d36a in QmlProjectManager::Internal::QmlProjectNode::refresh (this=0x148cf10)
          at /home/kkoehne/dev/creator/src/plugins/qmlprojectmanager/qmlprojectnodes.cpp:123
      #14 0x00007f994c288561 in QmlProjectManager::QmlProject::parseProject (this=0x146cf30, options=...)
          at /home/kkoehne/dev/creator/src/plugins/qmlprojectmanager/qmlproject.cpp:113
      #15 0x00007f994c2886ea in QmlProjectManager::QmlProject::refresh (this=0x146cf30, options=...)
          at /home/kkoehne/dev/creator/src/plugins/qmlprojectmanager/qmlproject.cpp:126
      #16 0x00007f994c288f7d in QmlProjectManager::QmlProject::refreshFiles (this=0x146cf30, removed=...)
          at /home/kkoehne/dev/creator/src/plugins/qmlprojectmanager/qmlproject.cpp:206
      #17 0x00007f994c29cd7a in QmlProjectManager::QmlProject::qt_metacall (this=0x146cf30, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff6582f2f0)
          at /home/kkoehne/dev/creator/src/plugins/qmlprojectmanager/.moc/debug-shared/moc_qmlproject.cpp:78
      #18 0x00007f996017a27f in QMetaObject::metacall (object=0x146cf30, cl=QMetaObject::InvokeMetaMethod, idx=13, argv=0x7fff6582f2f0)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qmetaobject.cpp:237
      #19 0x00007f996018f0b5 in QMetaObject::activate (sender=0x1498600, m=0x7f994c4ba420, local_signal_index=0, argv=0x7fff6582f2f0)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qobject.cpp:3272
      #20 0x00007f994c29bc4b in QmlProjectManager::QmlProjectItem::qmlFilesChanged (this=0x1498600, _t1=..., _t2=...)
          at /home/kkoehne/dev/creator/src/plugins/qmlprojectmanager/.moc/debug-shared/moc_qmlprojectitem.cpp:185
      #21 0x00007f994c29ba0d in QmlProjectManager::QmlProjectItem::qt_metacall (this=0x1498600, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=
          0x7fff6582f500) at /home/kkoehne/dev/creator/src/plugins/qmlprojectmanager/.moc/debug-shared/moc_qmlprojectitem.cpp:142
      #22 0x00007f996017a27f in QMetaObject::metacall (object=0x1498600, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0x7fff6582f500)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qmetaobject.cpp:237
      #23 0x00007f996018f0b5 in QMetaObject::activate (sender=0x149b8f0, m=0x7f994c4ba580, local_signal_index=3, argv=0x7fff6582f500)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qobject.cpp:3272
      #24 0x00007f994c29c11d in QmlProjectManager::FileFilterBaseItem::filesChanged (this=0x149b8f0, _t1=..., _t2=...)
          at .moc/debug-shared/moc_filefilteritems.cpp:164
      #25 0x00007f994c27e56d in QmlProjectManager::FileFilterBaseItem::updateFileListNow (this=0x149b8f0)
          at /home/kkoehne/dev/creator/src/plugins/qmlprojectmanager/fileformat/filefilteritems.cpp:198
      ---Type <return> to continue, or q <return> to quit---bt
      #26 0x00007f994c29be26 in QmlProjectManager::FileFilterBaseItem::qt_metacall (this=0x149b8f0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=
          0x7fff6582f800) at .moc/debug-shared/moc_filefilteritems.cpp:102
      #27 0x00007f994c29c1e3 in QmlProjectManager::QmlFileFilterItem::qt_metacall (this=0x149b8f0, _c=QMetaObject::InvokeMetaMethod, _id=9, _a=
          0x7fff6582f800) at .moc/debug-shared/moc_filefilteritems.cpp:210
      #28 0x00007f996017a27f in QMetaObject::metacall (object=0x149b8f0, cl=QMetaObject::InvokeMetaMethod, idx=9, argv=0x7fff6582f800)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qmetaobject.cpp:237
      #29 0x00007f996018f0b5 in QMetaObject::activate (sender=0x149b960, m=0x7f99604fbbc0, local_signal_index=0, argv=0x0)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qobject.cpp:3272
      #30 0x00007f99601eeb65 in QTimer::timeout (this=0x149b960) at /home/kkoehne/dev/qt/qt-4.7/src/corelib/.moc/debug-shared/moc_qtimer.cpp:134
      
      #31 0x00007f99601980b3 in QTimer::timerEvent (this=0x149b960, e=0x7fff65830170) at kernel/qtimer.cpp:271
      #32 0x00007f996018a8e1 in QObject::event (this=0x149b960, e=0x7fff65830170) at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qobject.cpp:1175
      #33 0x00007f9960aa5066 in QApplicationPrivate::notify_helper (this=0x615060, receiver=0x149b960, e=0x7fff65830170)
          at /home/kkoehne/dev/qt/qt-4.7/src/gui/kernel/qapplication.cpp:4445
      #34 0x00007f9960aa268a in QApplication::notify (this=0x7fff658305e0, receiver=0x149b960, e=0x7fff65830170)
          at /home/kkoehne/dev/qt/qt-4.7/src/gui/kernel/qapplication.cpp:3845
      #35 0x00007f996017210b in QCoreApplication::notifyInternal (this=0x7fff658305e0, receiver=0x149b960, event=0x7fff65830170)
          at kernel/qcoreapplication.cpp:732
      #36 0x00007f9960a95d07 in QCoreApplication::sendEvent (receiver=0x149b960, event=0x7fff65830170)
          at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
      #37 0x00007f99601ae47f in QTimerInfoList::activateTimers (this=0x61e150)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qeventdispatcher_unix.cpp:603
      #38 0x00007f99601aa706 in timerSourceDispatch (source=0x61e0f0) at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qeventdispatcher_glib.cpp:184
      #39 0x00007f99601aa7ed in idleTimerSourceDispatch (source=0x61e1a0) at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qeventdispatcher_glib.cpp:231
      #40 0x00007f995ea0fa93 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
      #41 0x00007f995ea10270 in ?? () from /usr/lib64/libglib-2.0.so.0
      #42 0x00007f995ea10510 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
      #43 0x00007f99601ab1ad in QEventDispatcherGlib::processEvents (this=0x61a5b0, flags=...)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qeventdispatcher_glib.cpp:415
      
      #44 0x00007f9960b7cf92 in QGuiEventDispatcherGlib::processEvents (this=0x61a5b0, flags=...)
          at /home/kkoehne/dev/qt/qt-4.7/src/gui/kernel/qguieventdispatcher_glib.cpp:204
      
      #45 0x00007f996016fc6e in QEventLoop::processEvents (this=0x7fff65830500, flags=...)
          at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qeventloop.cpp:149
      #46 0x00007f996016fdc2 in QEventLoop::exec (this=0x7fff65830500, flags=...) at /home/kkoehne/dev/qt/qt-4.7/src/corelib/kernel/qeventloop.cpp:201
      #47 0x00007f99601727fe in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
      #48 0x00007f9960aa2202 in QApplication::exec () at /home/kkoehne/dev/qt/qt-4.7/src/gui/kernel/qapplication.cpp:3719
      #49 0x000000000040ae41 in main (argc=1, argv=0x7fff65830ed8) at main.cpp:356
      

      Attachments

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

        Activity

          People

            dt Daniel Teske
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes