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

Crash on editing of source file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.7.0-rc1
    • All Other Issues
    • None
    • Fedora 28
    • Linux/X11

    Description

      I have opened cmake project. I open another, open the source file from that project and try to edit it. Qt Creator then crashes with

      SOFT ASSERT: "modelManager" in file /work/build/qt-creator/src/plugins/cmakeprojectmanager/cmakeproject.cpp, line 323
      SOFT ASSERT: "modelManager" in file /work/build/qt-creator/src/plugins/cmakeprojectmanager/cmakeproject.cpp, line 323
      ConnectionServer error: "QLocalSocket: Remote closed" "/tmp/QtCreator-zKELOF/ClangBackEnd-7526"
      Segmentation fault (core dumped)
      

      Backtrace from core dump looks like this

      #0  0x00007fd0d7108fa0 in QtPrivate::RefCount::ref() () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #1  0x00007fd0d7220f44 in QVector<QPersistentModelIndexData*>::QVector(QVector<QPersistentModelIndexData*> const&) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #2  0x00007fd0d7221c5a in QStack<QVector<QPersistentModelIndexData*> >::pop() () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #3  0x00007fd0d721b248 in QAbstractItemModelPrivate::rowsRemoved(QModelIndex const&, int, int) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #4  0x00007fd0d721e4e2 in QAbstractItemModel::endRemoveRows() () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #5  0x00007fd0d7290af6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #6  0x00007fd0d72168be in QAbstractItemModel::rowsRemoved(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) ()   from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #7  0x00007fd0d721e4fb in QAbstractItemModel::endRemoveRows() () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #8  0x00007fd0ae507cf7 in ProjectExplorer::Internal::TaskModel::clearTasks(Core::Id) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/libProjectExplorer.so
      #9  0x00007fd0ae4fb3d0 in ProjectExplorer::Internal::TaskWindow::clearTasks(Core::Id) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/libProjectExplorer.so
      #10 0x00007fd0d7290af6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #11 0x00007fd0ae62360c in ProjectExplorer::TaskHub::tasksCleared(Core::Id) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/libProjectExplorer.so
      #12 0x00007fd0ae5ade0d in ProjectExplorer::TaskHub::clearTasks(Core::Id) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/libProjectExplorer.so
      #13 0x00007fd0a6335d82 in ClangCodeModel::Internal::ClangDiagnosticManager::processNewDiagnostics(QVector<ClangBackEnd::DiagnosticContainer> const&, bool) ()   from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/libClangCodeModel.so
      #14 0x00007fd0a6342a06 in ClangCodeModel::Internal::ClangEditorDocumentProcessor::updateCodeWarnings(QVector<ClangBackEnd::DiagnosticContainer> const&, ClangBackEnd::DiagnosticContainer const&, unsigned int) ()   from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/libClangCodeModel.so
      #15 0x00007fd0a6317c44 in ClangCodeModel::Internal::BackendReceiver::annotations(ClangBackEnd::AnnotationsMessage const&) ()   from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/libClangCodeModel.so
      #16 0x00007fd0a60a2ff9 in ClangBackEnd::ClangCodeModelClientInterface::dispatch(ClangBackEnd::MessageEnvelop const&) ()   from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/../libClangsupport.so.4
      #17 0x00007fd0a60d874d in ClangBackEnd::BaseServerProxy::readMessages() () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/qtcreator/plugins/../libClangsupport.so.4
      #18 0x00007fd0d7290af6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #19 0x00007fd0d72907c9 in QMetaObject::activate(QObject*, int, int, void**) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #20 0x00007fd0d783abc3 in QAbstractSocketPrivate::emitReadyRead(int) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Network.so.5
      #21 0x00007fd0d783ac7c in QAbstractSocketPrivate::canReadNotification() () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Network.so.5
      #22 0x00007fd0d784d351 in QReadNotifier::event(QEvent*) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Network.so.5
      #23 0x00007fd0d864feac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #24 0x00007fd0d8656fe0 in QApplication::notify(QObject*, QEvent*) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #25 0x00007fd0d7265918 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #26 0x00007fd0d72ba43d in socketNotifierSourceDispatch(_GSource*, int (*)(void*), void*) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #27 0x00007fd0d2d458ad in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
      #28 0x00007fd0d2d45c78 in g_main_context_iterate.isra () from /lib64/libglib-2.0.so.0
      #29 0x00007fd0d2d45d10 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
      #30 0x00007fd0d72b981f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #31 0x00007fd0c4d67831 in QPAEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()   from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/lib/Qt/plugins/platforms/../../lib/libQt5XcbQpa.so.5
      #32 0x00007fd0d726427a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #33 0x00007fd0d726cc80 in QCoreApplication::exec() () from /home/geiger/Qt/Tools/Preview/Qt Creator 4.7.0-rc1/bin/../lib/Qt/lib/libQt5Core.so.5
      #34 0x00000000004099f4 in main ()
      

      Crash happens even in latest snapshot (2318)

      Attachments

        Issue Links

          Activity

            People

              con Eike Ziller
              pavelgeiger Pavel Geiger
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: