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

Crash on opening project

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 6.0.0-beta2
    • All Other Issues
    • None

    Description

      i'm seeing a crash when opening a project:

      0x00007fffe88684c4 in QtPrivate::RefCount::deref() () from /home/tim/dev/qt-creator/build-head/lib/qtcreator/plugins/../libQmlJS.so.5
      (gdb) bt
      #0  0x00007fffe88684c4 in QtPrivate::RefCount::deref() () from /home/tim/dev/qt-creator/build-head/lib/qtcreator/plugins/../libQmlJS.so.5
      #1  0x00007fffe899a9b5 in QmlJS::ModelManagerInterface::ProjectInfo::operator=(QmlJS::ModelManagerInterface::ProjectInfo&&) [clone .isra.0] () from /home/tim/dev/qt-creator/build-head/lib/qtcreator/plugins/../libQmlJS.so.5
      #2  0x00007fffe8921140 in QmlJS::ModelManagerInterface::updateProjectInfo(QmlJS::ModelManagerInterface::ProjectInfo const&, ProjectExplorer::Project*) () from /home/tim/dev/qt-creator/build-head/lib/qtcreator/plugins/../libQmlJS.so.5
      #3  0x00007fffe7c85e70 in CMakeProjectManager::Internal::CMakeBuildSystem::updateProjectData() () from /home/tim/dev/qt-creator/build-head/lib/qtcreator/plugins/libCMakeProjectManager.so
      #4  0x00007fffe7c7c288 in CMakeProjectManager::Internal::CMakeBuildSystem::combineScanAndParse(bool) () from /home/tim/dev/qt-creator/build-head/lib/qtcreator/plugins/libCMakeProjectManager.so
      #5  0x00007fffe7c8891a in CMakeProjectManager::Internal::CMakeBuildSystem::handleParsingSucceeded(bool) () from /home/tim/dev/qt-creator/build-head/lib/qtcreator/plugins/libCMakeProjectManager.so
      #6  0x00007ffff644f55d in void doActivate<false>(QObject*, int, void**) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #7  0x00007fffe7d08fb7 in QtPrivate::QFunctorSlotObject<Utils::onResultReady<std::shared_ptr<CMakeProjectManager::Internal::FileApiQtcData>, CMakeProjectManager::Internal::FileApiReader::endState(Utils::FilePath const&, bool)::{lambda(std::shared_ptr<CMakeProjectManager::Internal::FileApiQtcData> const&)#2}>(QFuture<std::shared_ptr<CMakeProjectManager::Internal::FileApiQtcData> > const&, QObject*, CMakeProjectManager::Internal::FileApiReader::endState(Utils::FilePath const&, bool)::{lambda(std::shared_ptr<CMakeProjectManager::Internal::FileApiQtcData> const&)#2})::{lambda(int)#1}, 1, QtPrivate::List<int>, void>::impl(int, QtPrivate::QSlotObjectBase*, QObject*, void**, bool*) () from /home/tim/dev/qt-creator/build-head/lib/qtcreator/plugins/libCMakeProjectManager.so
      #8  0x00007ffff644f55d in void doActivate<false>(QObject*, int, void**) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #9  0x00007ffff655e765 in QFutureWatcherBase::resultReadyAt(int) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #10 0x00007ffff655eb1e in QFutureWatcherBase::event(QEvent*) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #11 0x00007ffff736a2b8 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Widgets.so.6
      #12 0x00007ffff63fa608 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #13 0x00007ffff63fa7f4 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #14 0x00007ffff65fbdd7 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #15 0x00007ffff552e17d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #16 0x00007ffff552e400 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #17 0x00007ffff552e4a3 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
      #18 0x00007ffff65f9a50 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #19 0x00007ffff64058db in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #20 0x00007ffff63fd1c3 in QCoreApplication::exec() () from /home/tim/dev/qt5/build/qtbase/lib/libQt6Core.so.6
      #21 0x000055555556184e in main ()
      

      have been able to bisect it to d68bb4687c4cce9087ff627b1257edc7cd440aba

      d68bb4687c4cce9087ff627b1257edc7cd440aba is the first bad commit
      commit d68bb4687c4cce9087ff627b1257edc7cd440aba
      Author: hjk <hjk@qt.io>
      Date:   Tue Oct 12 17:32:48 2021 +0200
      
          QmlJS: Proliferate FilePath and QtcProcess use in QmlJSPluginDumper
          
          Change-Id: Ie483bb2e9b5d812d380470949564a6bc57801fa9
          Reviewed-by: Christian Stenger <christian.stenger@qt.io>
      
       src/libs/qmljs/qmljsmodelmanagerinterface.cpp | 22 +++++-----
       src/libs/qmljs/qmljsmodelmanagerinterface.h   |  6 +--
       src/libs/qmljs/qmljsplugindumper.cpp          | 63 +++++++++++++--------------
       src/libs/qmljs/qmljsplugindumper.h            | 12 ++---
       src/plugins/qmljstools/qmljsmodelmanager.cpp  |  8 ++--
       5 files changed, 54 insertions(+), 57 deletions(-)
      

      Attachments

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

        Activity

          People

            hjk hjk
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes