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

Crash when clicking on newly created SUBDIR project link

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • Qt Creator 4.11.1
    • None

    Description

      Steps I use to successfully reproduce it about 25% of the time:

      1. Check out https://codereview.qt-project.org/c/qt/qtquickcontrols2/+/295107/9 in dev of qtquickcontrols2
      2. Open qtquickcontrols2/src/imports/imports.pro
      3. Copy line 10 (controls/fusion/fusion.pro ) and paste it on a new line below
      4. Edit it to: controls/fusion/private/fusion-impl.pro \
      5. Save and click on the link that you just created
      Thread 1 "qtcreator" received signal SIGSEGV, Segmentation fault.
      0x00007fffc7387e00 in ProjectExplorer::FolderNode::findProjectNode(std::function<bool (ProjectExplorer::ProjectNode const*)> const&) ()
         from /home/mitch/dev/qt-unified/Tools/QtCreator/lib/qtcreator/plugins/libProjectExplorer.so
      (gdb) bt
      #0  0x00007fffc7387e00 in ProjectExplorer::FolderNode::findProjectNode(std::function<bool (ProjectExplorer::ProjectNode const*)> const&) ()
          at /home/mitch/dev/qt-unified/Tools/QtCreator/lib/qtcreator/plugins/libProjectExplorer.so
      #1  0x00007fffb9f739f5 in QmakeProjectManager::Internal::ProFileEditorWidget::checkForPrfFile(QString const&) const ()
          at /home/mitch/dev/qt-unified/Tools/QtCreator/lib/qtcreator/plugins/libQmakeProjectManager.so
      #2  0x00007fffb9f747a0 in QmakeProjectManager::Internal::ProFileEditorWidget::findLinkAt(QTextCursor const&, std::function<void (Utils::Link const&)>&&, bool, bool) ()
          at /home/mitch/dev/qt-unified/Tools/QtCreator/lib/qtcreator/plugins/libQmakeProjectManager.so
      #3  0x00007fffc7813dd3 in TextEditor::Internal::TextEditorWidgetPrivate::updateLink() () at /home/mitch/dev/qt-unified/Tools/QtCreator/lib/qtcreator/plugins/libTextEditor.so
      #4  0x00007ffff58c38c3 in QObject::event(QEvent*) () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #5  0x00007ffff6e029fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #6  0x00007ffff6e09980 in QApplication::notify(QObject*, QEvent*) () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Widgets.so.5
      #7  0x00007ffff58948f8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #8  0x00007ffff5897e8a in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #9  0x00007ffff58edd53 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #10 0x00007ffff0e32417 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #11 0x00007ffff0e32650 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #12 0x00007ffff0e326dc in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #13 0x00007ffff58ed3ec in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #14 0x00007ffff5893312 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #15 0x00007ffff589c240 in QCoreApplication::exec() () at /home/mitch/dev/qt-unified/Tools/QtCreator/bin/../lib/Qt/lib/libQt5Core.so.5
      #16 0x000000000040a974 in main ()
      
      Qt Creator 4.11.1
      Based on Qt 5.14.1 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
      
      Built on Feb 5 2020 12:48:30
      
      From revision b2ddeacfb5
      

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes