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

Crash in ProjectExplorer::Internal::FlatModel::flags

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Not Evaluated
    • None
    • Qt Creator 4.9.0-beta1
    • None

    Description

      I've imported an existing build and switched back (maybe import was not yet finished, I don't know) to Edit mode to switch there from "File System" side bar to "Projects". 

      Can't reproduce again.

       ~ % gdb -c ./core /d1/creator/ut/4.9/release/bin/qtcreator
      Reading symbols from /d1/creator/ut/4.9/release/bin/qtcreator...Reading symbols from /d1/creator/ut/4.9/release/bin/qtcreator.debug...done.
      done.
      [New LWP 2043]
      [New LWP 2182]
      [New LWP 2045]
      [New LWP 2054]
      [New LWP 2046]
      [New LWP 2048]
      [New LWP 2138]
      [New LWP 2137]
      [New LWP 2052]
      [New LWP 2047]
      [New LWP 2053]
      [New LWP 2049]
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
      btCore was generated by `/d1/creator/ut/4.9/release/bin/qtcreator clang-trunk'.
      Program terminated with signal SIGSEGV, Segmentation fault.
      #0  0x00007f926e3bf49e in ProjectExplorer::Internal::FlatModel::flags (this=<optimized out>, index=...)
          at projectmodels.cpp:187
      187	        if (!node->asProjectNode()) {
      [Current thread is 1 (Thread 0x7f928d0414c0 (LWP 2043))]
      (gdb) bt
      #0  0x00007f926e3bf49e in ProjectExplorer::Internal::FlatModel::flags(QModelIndex const&) const (this=<optimized out>, index=...) at projectmodels.cpp:187
      #1  0x00007f928c3aa017 in QTreeViewPrivate::layout(int, bool, bool) ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5
      #2  0x00007f928c3aa2d7 in QTreeViewPrivate::layout(int, bool, bool) ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5
      #3  0x00007f928c3b1bb6 in QTreeView::doItemsLayout() ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5
      #4  0x00007f928c3ab825 in QTreeView::sizeHintForColumn(int) const ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5
      #5  0x00007f926e39e089 in ProjectTreeView::sizeHintForColumn(int) const (this=0x55dac96535e0, column=<optimized out>)
          at projecttreewidget.cpp:214
      #6  0x00007f928c354d47 in QHeaderViewPrivate::resizeSections(QHeaderView::ResizeMode, bool) ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5
      #7  0x00007f928c35a3a8 in QHeaderView::event(QEvent*) ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5
      #8  0x00007f928c10d85c in QApplicationPrivate::notify_helper(QObject*, QEvent*) ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5
      #9  0x00007f928c1149f0 in QApplication::notify(QObject*, QEvent*) ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Widgets.so.5
      #10 0x00007f928aec3c18 in QCoreApplication::notifyInternal2(QObject*, QEvent*) ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Core.so.5
      #11 0x00007f928af1a289 in QTimerInfoList::activateTimers() ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Core.so.5
      #12 0x00007f928af1aa99 in idleTimerSourceDispatch(_GSource*, int (*)(void*), void*) ()
          at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Core.so.5
      #13 0x00007f92868be387 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #14 0x00007f92868be5c0 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #15 0x00007f92868be64c in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #16 0x00007f928af1adcf in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) ()
      ---Type <return> to continue, or q <return> to quit---
         t/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Core.so.5
      #17 0x00007f928aec257a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Core.so.5
      #18 0x00007f928aecaf80 in QCoreApplication::exec() () at /home/nik/opt/qt-5.12.0/5.12.0/gcc_64/lib/libQt5Core.so.5
      #19 0x000055dac652d972 in main(int, char**) (argc=<optimized out>, argv=<optimized out>) at main.cpp:625
      

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              kosjar Nikolai Kosjar
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes