- 
    Bug 
- 
    Resolution: Done
- 
     Not Evaluated Not Evaluated
- 
    Qt Creator 4.9.0
- 
    None
When I select a CMakeLists.txt file to open a project, after a few seconds, Qt Creator crashes and exits.
Core was generated by `/home/deepin/qtcreator-4.9.0/bin/qtcreator.bin'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x00007fc62cef8e82 in ProjectExplorer::Internal::FlatModel::flags(QModelIndex const&) const () from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libProjectExplorer.so
[Current thread is 1 (Thread 0x7fc6414e5b80 (LWP 8309))]
(gdb) 
(gdb) 
(gdb) bt
#0  0x00007fc62cef8e82 in ProjectExplorer::Internal::FlatModel::flags(QModelIndex const&) const () from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libProjectExplorer.so
#1  0x00007fc63ef1a5f3 in void indexesFromRange<QList<QModelIndex> >(QItemSelectionRange const&, QList<QModelIndex>&) [clone .part.60] () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#2  0x00007fc63ef1a857 in QItemSelection::indexes() const () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#3  0x00007fc640655e1c in QTreeView::selectionChanged(QItemSelection const&, QItemSelection const&) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
#4  0x00007fc6405e8d41 in QAbstractItemView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
#5  0x00007fc63ef85989 in QMetaObject::activate(QObject*, int, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#6  0x00007fc63ef16d37 in QItemSelectionModel::selectionChanged(QItemSelection const&, QItemSelection const&) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#7  0x00007fc63ef1b74e in QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection const&) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#8  0x00007fc63ef1e474 in QItemSelectionModel::select(QItemSelection const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#9  0x00007fc63ef18c2c in QItemSelectionModel::select(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#10 0x00007fc63ef170a4 in QItemSelectionModel::setCurrentIndex(QModelIndex const&, QFlags<QItemSelectionModel::SelectionFlag>) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#11 0x00007fc6405e2bf9 in QAbstractItemView::setCurrentIndex(QModelIndex const&) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
#12 0x00007fc6405eab05 in QAbstractItemView::rowsAboutToBeRemoved(QModelIndex const&, int, int) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
#13 0x00007fc64065585a in QTreeView::rowsAboutToBeRemoved(QModelIndex const&, int, int) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
#14 0x00007fc6405e8d2a in QAbstractItemView::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
#15 0x00007fc63ef85989 in QMetaObject::activate(QObject*, int, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#16 0x00007fc63ef097ee in QAbstractItemModel::rowsAboutToBeRemoved(QModelIndex const&, int, int, QAbstractItemModel::QPrivateSignal) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#17 0x00007fc63ef10e23 in QAbstractItemModel::beginRemoveRows(QModelIndex const&, int, int) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#18 0x00007fc640be67fe in Utils::TreeItem::removeChildren() () from /home/deepin/qtcreator-4.9.0/bin/../lib/qtcreator/libUtils.so.4
#19 0x00007fc62cefb230 in ProjectExplorer::Internal::FlatModel::addOrRebuildProjectModel(ProjectExplorer::Project*) () from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libProjectExplorer.so
#20 0x00007fc63ef85cb6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#21 0x00007fc62cfb75d2 in ProjectExplorer::ProjectTree::subtreeChanged(ProjectExplorer::FolderNode*) () from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libProjectExplorer.so
#22 0x00007fc62ce9ef63 in ProjectExplorer::Project::handleSubTreeChanged(ProjectExplorer::FolderNode*) () from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libProjectExplorer.so
#23 0x00007fc62ce9f1f3 in ProjectExplorer::Project::setRootProjectNode(std::unique_ptr<ProjectExplorer::ProjectNode, std::default_delete<ProjectExplorer::ProjectNode> >&&) ()
   from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libProjectExplorer.so
#24 0x00007fc6285acd0a in CMakeProjectManager::CMakeProject::updateProjectData(CMakeProjectManager::Internal::CMakeBuildConfiguration*) ()
   from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libCMakeProjectManager.so
#25 0x00007fc6285ad2f3 in CMakeProjectManager::CMakeProject::combineScanAndParse(CMakeProjectManager::Internal::CMakeBuildConfiguration*) ()
   from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libCMakeProjectManager.so
#26 0x00007fc63ef85cb6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#27 0x00007fc63ef85cb6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#28 0x00007fc628616e04 in CMakeProjectManager::Internal::ServerModeReader::handleReply(QMap<QString, QVariant> const&, QString const&) ()
   from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libCMakeProjectManager.so
#29 0x00007fc63ef85cb6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#30 0x00007fc62862c03f in CMakeProjectManager::Internal::ServerMode::cmakeReply(QMap<QString, QVariant> const&, QString const&, QVariant const&) ()
   from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libCMakeProjectManager.so
#31 0x00007fc62860be02 in CMakeProjectManager::Internal::ServerMode::parseJson(QMap<QString, QVariant> const&) () from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libCMakeProjectManager.so
#32 0x00007fc62860d9f7 in CMakeProjectManager::Internal::ServerMode::parseBuffer(QByteArray const&) () from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libCMakeProjectManager.so
#33 0x00007fc62860dc11 in CMakeProjectManager::Internal::ServerMode::handleRawCMakeServerData() () from /home/deepin/qtcreator-4.9.0/lib/qtcreator/plugins/libCMakeProjectManager.so
#34 0x00007fc63ef85cb6 in QMetaObject::activate(QObject*, int, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#35 0x00007fc63ef85989 in QMetaObject::activate(QObject*, int, int, void**) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#36 0x00007fc63f55ece3 in QAbstractSocketPrivate::emitReadyRead(int) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Network.so.5
#37 0x00007fc63f55ed9c in QAbstractSocketPrivate::canReadNotification() () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Network.so.5
#38 0x00007fc63f571101 in QReadNotifier::event(QEvent*) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Network.so.5
#39 0x00007fc6403ae6fc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
#40 0x00007fc6403b57f0 in QApplication::notify(QObject*, QEvent*) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Widgets.so.5
#41 0x00007fc63ef59e98 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#42 0x00007fc63efb1f08 in socketNotifierSourceDispatch(_GSource*, int  (void*), void*) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
(void*), void*) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#43 0x00007fc63aa3e7f7 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007fc63aa3ea60 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007fc63aa3eb0c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007fc63efb12cf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#47 0x00007fc63ef587fa in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
#48 0x00007fc63ef61270 in QCoreApplication::exec() () from /home/deepin/qtcreator-4.9.0/bin/../lib/Qt/lib/libQt5Core.so.5
--Type <return> to continue, or q <return> to quit--
#49 0x000000000040a478 in main ()
Qt Creator about infos:
Qt 5.12.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb" 
OS: Deepin 15 [linux version 4.15.0-30deepin-generic]
Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2
Environment:
  QT4_IM_MODULE="fcitx"
  QT_ACCESSIBILITY="1"
  QT_DBL_CLICK_DIST="30"
  QT_FONT_DPI="96"
  QT_IM_MODULE="fcitx"
  QT_LINUX_ACCESSIBILITY_ALWAYS_ON="1"
  QT_SCALE_FACTOR="2"
Features: QT_NO_EXCEPTIONS
Library info:
  PrefixPath: /home/deepin/qtcreator-4.9.0/lib/Qt
  DocumentationPath: /home/deepin/qtcreator-4.9.0/lib/Qt/doc
  HeadersPath: /home/deepin/qtcreator-4.9.0/lib/Qt/include
  LibrariesPath: /home/deepin/qtcreator-4.9.0/lib/Qt/lib
  LibraryExecutablesPath: /home/deepin/qtcreator-4.9.0/lib/Qt/libexec
  BinariesPath: /home/deepin/qtcreator-4.9.0/lib/Qt/bin
  PluginsPath: /home/deepin/qtcreator-4.9.0/lib/Qt/plugins
  ImportsPath: /home/deepin/qtcreator-4.9.0/lib/Qt/imports
  Qml2ImportsPath: /home/deepin/qtcreator-4.9.0/lib/Qt/qml
  ArchDataPath: /home/deepin/qtcreator-4.9.0/lib/Qt
  DataPath: /home/deepin/qtcreator-4.9.0/lib/Qt
  TranslationsPath: /home/deepin/qtcreator-4.9.0/lib/Qt/translations
  ExamplesPath: /home/deepin/qtcreator-4.9.0/lib/Qt/examples
  TestsPath: /home/deepin/qtcreator-4.9.0/lib/Qt/tests
  SettingsPath: /home/deepin/qtcreator-4.9.0/lib/Qt
Standard paths [*...* denote writable entry]:
  DesktopLocation: "Desktop" */home/deepin/Desktop*
  DocumentsLocation: "Documents" */home/deepin/Documents*
  FontsLocation: "Fonts" */home/deepin/.local/share/fonts* /home/deepin/.fonts
  ApplicationsLocation: "Applications" */home/deepin/.local/share/applications* /usr/local/share/applications /usr/share/applications
  MusicLocation: "Music" */home/deepin/Music*
  MoviesLocation: "Movies" */home/deepin/Videos*
  PicturesLocation: "Pictures" */home/deepin/Pictures*
  TempLocation: "Temporary Directory" */tmp*
  HomeLocation: "Home" */home/deepin*
  AppLocalDataLocation: "Application Data" */home/deepin/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag
  CacheLocation: "Cache" */home/deepin/.cache/QtProject/qtdiag*
  GenericDataLocation: "Shared Data" */home/deepin/.local/share* /usr/local/share /usr/share
  RuntimeLocation: "Runtime" */run/user/1000*
  ConfigLocation: "Configuration" */home/deepin/.config* /etc/xdg
  DownloadLocation: "Download" */home/deepin/Downloads*
  GenericCacheLocation: "Shared Cache" */home/deepin/.cache*
  GenericConfigLocation: "Shared Configuration" */home/deepin/.config* /etc/xdg
  AppDataLocation: "Application Data" */home/deepin/.local/share/QtProject/qtdiag* /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag
  AppConfigLocation: "Application Configuration" */home/deepin/.config/QtProject/qtdiag* /etc/xdg/QtProject/qtdiag
File selectors (increasing order of precedence):
  zh_CN unix linux deepin
Network:
  Using "OpenSSL 1.0.2q  20 Nov 2018", version: 0x1000211f
Platform capabilities: ThreadedPixmaps OpenGL ThreadedOpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition
Style hints:
  mouseDoubleClickInterval: 400
  mousePressAndHoldInterval: 800
  startDragDistance: 10
  startDragTime: 500
  startDragVelocity: 0
  keyboardInputInterval: 400
  keyboardAutoRepeatRate: 30
  cursorFlashTime: 1000
  showIsFullScreen: 0
  showIsMaximized: 0
  passwordMaskDelay: 0
  passwordMaskCharacter: U+25CF
  fontSmoothingGamma: 1.7
  useRtlExtensions: 0
  setFocusOnTouchRelease: 0
  tabFocusBehavior: Qt::TabFocusAllControls 
  singleClickActivation: 0
Additional style hints (QPlatformIntegration):
  ReplayMousePressOutsidePopup: 0
Theme:
  Platforms requested : deepin,generic
            available : gtk3,snap,flatpak,xdgdesktopportal
  Styles requested    : Fusion,Windows
         available    : Windows,Fusion
  System font         : "Sans Serif" 9
Fonts:
  General font : "Sans Serif" 9
  Fixed font   : "monospace" 9
  Title font   : "Noto Sans CJK SC" 12
  Smallest font: "Noto Sans CJK SC" 12
Palette:
  QPalette::WindowText: #ff000000
  QPalette::Button: #ffefefef
  QPalette::Light: #ffffffff
  QPalette::Midlight: #ffcbcbcb
  QPalette::Dark: #ff9f9f9f
  QPalette::Mid: #ffb8b8b8
  QPalette::Text: #ff000000
  QPalette::BrightText: #ffffffff
  QPalette::ButtonText: #ff000000
  QPalette::Base: #ffffffff
  QPalette::Window: #ffefefef
  QPalette::Shadow: #ff767676
  QPalette::Highlight: #ff308cc6
  QPalette::HighlightedText: #ffffffff
  QPalette::Link: #ff0000ff
  QPalette::LinkVisited: #ffff00ff
  QPalette::AlternateBase: #fff7f7f7
  QPalette::NoRole: #ff000000
  QPalette::ToolTipBase: #ffffffdc
  QPalette::ToolTipText: #ff000000
  QPalette::PlaceholderText: #80000000
Screens: 1, High DPI scaling: active
# 0 "DP-0" Depth: 24 Primary: yes
  Manufacturer: LG Electronics
  Model: LG Ultra HD-
  Serial number: 174970
  Geometry: 1920x1080+0+0 (native: 3840x2160+0+0) Available: 1920x1035+0+0
  Physical size: 600x340 mm  Refresh: 59 Hz Power state: 0
  Physical DPI: 81.28,80.6824 Logical DPI: 96,96 Subpixel_None
  High DPI scaling factor: 2 DevicePixelRatio: 2 Pixel density: 2
  Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
LibGL Vendor: NVIDIA Corporation
Renderer: GeForce GTX 1060 5GB/PCIe/SSE2
Version: 4.6.0 NVIDIA 390.87
Shading language: 4.60 NVIDIA
Format: Version: 4.6 Profile: 2 Swap behavior: 0 Buffer size (RGB): 8,8,8 Depth buffer: 24
Profile: None (QOpenGLFunctions_4_6)
qt.network.ssl: QSslSocket: cannot resolve SSLv3_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv3_server_method
Plugin information:
+ Android                           4.9.0
+ AutoTest                          4.9.0
  AutotoolsProjectManager           4.9.0
  BareMetal                         4.9.0
+ Bazaar                            4.9.0
  Beautifier                        4.9.0
+ BinEditor                         4.9.0
+ Bookmarks                         4.9.0
+ CMakeProjectManager               4.9.0
+ CVS                               4.9.0
  ClangCodeModel                    4.9.0
  ClangFormat                       4.9.0
+ ClangTools                        4.9.0
+ ClassView                         4.9.0
  ClearCase                         4.9.0
+ CodePaster                        4.9.0
  CompilationDatabaseProjectManager 4.9.0
+ Core                              4.9.0
+ CppEditor                         4.9.0
+ CppTools                          4.9.0
  Cppcheck                          4.9.0
+ Debugger                          4.9.0
+ Designer                          4.9.0
+ DiffEditor                        4.9.0
  EmacsKeys                         4.9.0
+ FakeVim                           4.9.0
+ GLSLEditor                        4.9.0
+ GenericProjectManager             4.9.0
+ Git                               4.9.0
  HelloWorld                        4.9.0
+ Help                              4.9.0
+ ImageViewer                       4.9.0
  Ios                               4.9.0
  LanguageClient                    4.9.0
+ Macros                            4.9.0
+ Mercurial                         4.9.0
+ ModelEditor                       4.9.0
  Nim                               4.9.0
+ PerfProfiler                      4.9.0
  Perforce                          4.9.0
+ ProjectExplorer                   4.9.0
+ PythonEditor                      4.9.0
+ QbsProjectManager                 4.9.0
+ QmakeProjectManager               4.9.0
+ QmlDesigner                       4.9.0
+ QmlJSEditor                       4.9.0
+ QmlJSTools                        4.9.0
+ QmlPreview                        4.9.0
+ QmlProfiler                       4.9.0
+ QmlProjectManager                 4.9.0
+ Qnx                               4.9.0
+ QtSupport                         4.9.0
+ RemoteLinux                       4.9.0
+ ResourceEditor                    4.9.0
+ ScxmlEditor                       4.9.0
  SilverSearcher                    4.9.0
+ Subversion                        4.9.0
+ TaskList                          4.9.0
+ TextEditor                        4.9.0
  Todo                              4.9.0
  UpdateInfo                        4.9.0
+ Valgrind                          4.9.0
+ VcsBase                           4.9.0
+ Welcome                           4.9.0
  WinRt                             4.9.0
Qt Creator 4.9.0
Based on Qt 5.12.2 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
From revision 7885bc899f
Built on Apr 12 2019 00:20:28
- relates to
- 
                    QTCREATORBUG-20322 Crash while opening project -           
- Closed
 
-         
- 
                    QTCREATORBUG-21988 Crash in ProjectExplorer::Internal::FlatModel::flags -           
- Closed
 
-