Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 4.2.1
-
None
-
Ubuntu 16.10 64 bit
Description
- Have a Qt version in PATH.
- Start Creator with empty settings, e.g. by passing -settingspath <empty directory>.
- Go to "Tools" -> "Options..." -> "Build & Run" -> "Kits".
There is a kit "Desktop" which uses the Qt version in PATH. - Clone this kit.
- In the cloned kit, set the Qt version to "none".
- Click "OK".
- Open qtcreator.pro from Creator's repository.
You'll see the "Configure Project" screen. - Go to "Tools" -> "Options..." -> "Build & Run" -> "Kits".
- In the cloned kit, set the Qt version to the one in PATH.
- Click "OK".
Creator crashes:1 ProjectExplorer::Project::document project.cpp 141 0x7fffdb4e4604 2 ProjectExplorer::Project::projectFilePath project.cpp 147 0x7fffdb4e4644 3 QmakeProjectManager::QmakeProject::matchesKit qmakeproject.cpp 1523 0x7fffc80a00b3 4 QmakeProjectManager::QmakeProject::<lambda(const ProjectExplorer::Kit *)>::operator()(const ProjectExplorer::Kit *) const qmakeproject.cpp 276 0x7fffc8096516 5 std::_Function_handler<bool(const ProjectExplorer::Kit *), QmakeProjectManager::QmakeProject::QmakeProject(QmakeProjectManager::QmakeManager *, const QString&)::<lambda(const ProjectExplorer::Kit *)>>::_M_invoke(const std::_Any_data &, <unknown type in /home/qtrob/dev/g++-6.2.0/creator-4.2-d/lib/qtcreator/plugins/libQmakeProjectManager.so, CU 0x192c10, DIE 0x21db96>) functional 1726 0x7fffc80a14be 6 std::function<bool (ProjectExplorer::Kit const *)>::operator()(ProjectExplorer::Kit const *) const functional 2136 0x7fffdb42ac27 7 ProjectExplorer::KitMatcher::matches kitmanager.h 118 0x7fffdb429e8b 8 ProjectExplorer::TargetSetupPage::addWidget targetsetuppage.cpp 517 0x7fffdb42917e 9 ProjectExplorer::TargetSetupPage::handleKitUpdate targetsetuppage.cpp 375 0x7fffdb42842d 10 QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<ProjectExplorer::Kit *>, void, void (ProjectExplorer::TargetSetupPage:: *)(ProjectExplorer::Kit *)>::call qobjectdefs_impl.h 141 0x7fffdb42e294 11 QtPrivate::FunctionPointer<void (ProjectExplorer::TargetSetupPage:: *)(ProjectExplorer::Kit *)>::call<QtPrivate::List<ProjectExplorer::Kit *>, void> qobjectdefs_impl.h 160 0x7fffdb42e0d7 12 QtPrivate::QSlotObject<void (ProjectExplorer::TargetSetupPage:: *)(ProjectExplorer::Kit *), QtPrivate::List<ProjectExplorer::Kit *>, void>::impl qobject_impl.h 120 0x7fffdb42d851 13 QtPrivate::QSlotObjectBase::call qobject_impl.h 101 0x7ffff64b2d6f 14 QMetaObject::activate qobject.cpp 3723 0x7ffff64af94d 15 QMetaObject::activate qobject.cpp 3602 0x7ffff64af24e 16 ProjectExplorer::KitManager::kitUpdated moc_kitmanager.cpp 278 0x7fffdb686f06 17 ProjectExplorer::KitManager::notifyAboutUpdate kitmanager.cpp 443 0x7fffdb45eba3 18 ProjectExplorer::Kit::kitUpdated kit.cpp 674 0x7fffdb437ea5 19 ProjectExplorer::Kit::unblockNotification kit.cpp 198 0x7fffdb4346e1 20 ProjectExplorer::KitGuard::~KitGuard kit.h 154 0x7fffdb41c16d ... <Mehr>
Creator should not crash.
Attachments
For Gerrit Dashboard: QTCREATORBUG-17571 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
181840,3 | ProjectExplorer: Do not leak targetsetuppages | 4.2 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |