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

Crash after deleting active kit from project

    XMLWordPrintable

Details

    • 47654d6d73c8fa18a918b06683020cfad4e6fd02

    Description

      1. Open qtcreator-super.pro
      2. In Projects mode, remove the active kit from the project while Creator is still parsing C++.
      3. Click "Add Kit" and select "Add existing build" from the drop-down menu.
      4. Click "Cancel".
        Creator crashes in UiCodeModelSupport::uicCommand() where target is 0:
        QString UiCodeModelSupport::uicCommand() const
        {
            QtSupport::BaseQtVersion *version;
            if (m_project->needsConfiguration()) {
                version = QtSupport::QtKitInformation::qtVersion(ProjectExplorer::KitManager::defaultKit());
            } else {
                ProjectExplorer::Target *target = m_project->activeTarget();
                version = QtSupport::QtKitInformation::qtVersion(target->kit());
            }
            return version ? version->uicCommand() : QString();
        }
        
      0	ProjectExplorer::Target::kit	target.cpp	229	0x5644991a	
      1	QtSupport::UiCodeModelSupport::uicCommand	uicodemodelsupport.cpp	258	0x55ac2275	
      2	QtSupport::UiCodeModelSupport::runUic	uicodemodelsupport.cpp	182	0x55ac30ca	
      3	QtSupport::UiCodeModelSupport::init	uicodemodelsupport.cpp	124	0x55ac2cf0	
      4	QtSupport::UiCodeModelSupport::setHeaderFileName	uicodemodelsupport.cpp	178	0x55ac19c2	
      5	QtSupport::UiCodeModelManager::update	uicodemodelsupport.cpp	343	0x55ac350d	
      6	QmakeProjectManager::QmakeProject::updateCppCodeModel	qmakeproject.cpp	562	0x530cbafc	
      7	QmakeProjectManager::QmakeProject::updateCodeModels	qmakeproject.cpp	430	0x530c962a	
      8	QmakeProjectManager::QmakeProject::decrementPendingEvaluateFutures	qmakeproject.cpp	770	0x530c9389	
      9	QmakeProjectManager::QmakeProFileNode::applyAsyncEvaluate	qmakenodes.cpp	2014	0x530e6ef9	
      10	<lambda_d145f6d3d90a09092668ddb39fc54c1f>::operator()	qmakenodes.cpp	1601	0x530ecb91	
      11	QtPrivate::FunctorCall<QtPrivate::IndexesList<>,QtPrivate::List<>,void,<lambda_d145f6d3d90a09092668ddb39fc54c1f>>::call	qobjectdefs_impl.h	495	0x530f9f7c	
      12	QtPrivate::Functor<<lambda_d145f6d3d90a09092668ddb39fc54c1f>,0>::call<QtPrivate::List<>,void>	qobjectdefs_impl.h	552	0x530f1e62	
      13	QtPrivate::QFunctorSlotObject<<lambda_d145f6d3d90a09092668ddb39fc54c1f>,0,QtPrivate::List<>,void>::impl	qobject_impl.h	192	0x530fedee	
      14	QtPrivate::QSlotObjectBase::call	qobject_impl.h	124	0x5746803f	
      15	QMetaObject::activate	qobject.cpp	3703	0x5745b0d0	
      16	QMetaObject::activate	qobject.cpp	3578	0x5745abd1	
      17	QFutureWatcherBase::finished	moc_qfuturewatcher.cpp	257	0x5752edf9	
      18	QFutureWatcherBasePrivate::sendCallOutEvent	qfuturewatcher.cpp	437	0x571b34ed	
      19	QFutureWatcherBase::event	qfuturewatcher.cpp	340	0x571b2fe6	
      ...	<Mehr>				
      

      Attachments

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

        Activity

          People

            hunger Tobias Hunger
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes