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

Nullptr access in project explorer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • Qt Creator 4.14.0-beta1
    • None
    • macOS

    Description

      When debugging qt-creator from the command line using lldb I get a nullptr access as soon as I open a recent project (even when waiting for a long time after creator is initialized).
      The call to KitManager::registerKit from src/plugins/projectexplorer/project.cpp returns a nullptr because of a firing QTC_ASSERT in kitmanager.cpp:599 (isLoaded())

      It seems that this is caused by a race condition due to a deferred call of ProjectExplorerPlugin::restoreKits in projectexplorer.cpp:2044 - at least, moving the function call out of the QTimer::singleShot allows me to debug again.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            knud Knud Dollereder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes