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

Crash on switching sessions

    XMLWordPrintable

Details

    • 06b653879fb5c73889d9db477f9e905a00495e87 (qt-creator/qt-creator/4.14)

    Description

      Switching from one session to another causes a crash in project explorer

       

      #0  0x00007fffe3d853d9 in ProjectExplorer::Project::files(std::function<bool (ProjectExplorer::Node const*)> const&) const ()
          at /src/qt-creator/lib/qtcreator/plugins/libProjectExplorer.so
      #1  0x00007fffd29e4f90 in ModelEditor::Internal::ModelIndexer::scanProject(ProjectExplorer::Project*) ()
          at /src/qt-creator/lib/qtcreator/plugins/libModelEditor.so
      #2  0x00007ffff69e287c in QObject::event(QEvent*) (this=0x555556ba4580, e=0x555571d34760) at /src/qt5/qtbase/src/corelib/kernel/qobject.cpp:1314
      #3  0x00007ffff76dde23 in QApplicationPrivate::notify_helper(QObject*, QEvent*) (this=this@entry=
          0x5555555a8220, receiver=receiver@entry=0x555556ba4580, e=e@entry=0x555571d34760) at /src/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3632
      #4  0x00007ffff76e5650 in QApplication::notify(QObject*, QEvent*) (this=0x7fffffffd7e0, receiver=0x555556ba4580, e=0x555571d34760)
          at /src/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3156
      #5  0x00007ffff69b41a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x555556ba4580, event=0x555571d34760)
          at ../../include/QtCore/5.15.2/QtCore/private/../../../../../../../qtbase/src/corelib/thread/qthread_p.h:325
      #6  0x00007ffff69b6c80 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) (receiver=0x0, event_type=0, data=0x5555555a24f0)
          at /src/qt5/qtbase/src/corelib/kernel/qcoreapplication.cpp:1817
      #7  0x00007ffff6a119e7 in postEventSourceDispatch(GSource*, GSourceFunc, gpointer) (s=0x5555556791d0)
          at /src/qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:277
      #8  0x00007ffff5342fbd in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #9  0x00007ffff5343240 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #10 0x00007ffff53432e3 in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #11 0x00007ffff6a110ba in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x555555689d50, flags=...)
          at /src/qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:423
      #12 0x00007fffe3d6dc63 in ProjectExplorer::SessionManagerPrivate::restoreEditors(Utils::PersistentSettingsReader const&) ()
          at /src/qt-creator/lib/qtcreator/plugins/libProjectExplorer.so
      #13 0x00007fffe3d7548c in ProjectExplorer::SessionManager::loadSession(QString const&, bool) ()
          at /src/qt-creator/lib/qtcreator/plugins/libProjectExplorer.so
      #14 0x00007fffe3c6eddf in ProjectExplorer::ProjectExplorerPluginPrivate::setSession(QAction*) ()
          at /src/qt-creator/lib/qtcreator/plugins/libProjectExplorer.so
      #15 0x00007ffff69eb675 in QtPrivate::QSlotObjectBase::call(QObject*, void**) (a=0x7fffffffc4a0, r=0x55555635ffa0, this=0x555555d1e9d0)
          at ../../include/QtCore/../../../../qtbase/src/corelib/kernel/qobjectdefs_impl.h:398
      #16 doActivate<false>(QObject*, int, void**) (sender=0x555564edeb20, signal_index=3, argv=0x7fffffffc4a0)
          at /src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3886
      #17 0x00007ffff69e5177 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
          (sender=sender@entry=0x555564edeb20, m=m@entry=0x7ffff7c50260 <QActionGroup::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fffffffc4a0) at /src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3946
      #18 0x00007ffff76d9f03 in QActionGroup::triggered(QAction*) (this=this@entry=0x555564edeb20, _t1=<optimized out>) at .moc/moc_qactiongroup.cpp:268
      #19 0x00007ffff76da52a in QActionGroupPrivate::_q_actionTriggered() (this=<optimized out>) at /src/qt5/qtbase/src/widgets/kernel/qactiongroup.cpp:94
      #20 QActionGroup::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) 
          (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/moc_qactiongroup.cpp:141
      #21 0x00007ffff69eb6a8 in doActivate<false>(QObject*, int, void**) (sender=0x55555ff2dff0, signal_index=4, argv=0x7fffffffc600)
          at ../../include/QtCore/../../../../qtbase/src/corelib/kernel/qobjectdefs_impl.h:395
      #22 0x00007ffff69e5177 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**)
          (sender=sender@entry=0x55555ff2dff0, m=m@entry=0x7ffff7c50180 <QAction::staticMetaObject>, local_signal_index=local_signal_index@entry=1, argv=argv@entry=0x7fffffffc600) at /src/qt5/qtbase/src/corelib/kernel/qobject.cpp:3946
      #23 0x00007ffff76d6216 in QAction::triggered(bool) (this=this@entry=0x55555ff2dff0, _t1=<optimized out>) at .moc/moc_qaction.cpp:376
      #24 0x00007ffff76d8dd8 in QAction::activate(QAction::ActionEvent) (this=0x55555ff2dff0, event=<optimized out>)
          at /src/qt5/qtbase/src/widgets/kernel/qaction.cpp:1161
      #25 0x00007ffff787a912 in QMenuPrivate::activateCausedStack(QVector<QPointer<QWidget> > const&, QAction*, QAction::ActionEvent, bool)
          (this=this@entry=0x5555560bbf70, causedStack=..., action=action@entry=0x55555ff2dff0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true)
          at /src/qt5/qtbase/src/widgets/widgets/qmenu.cpp:1384
      #26 0x00007ffff7883115 in QMenuPrivate::activateAction(QAction*, QAction::ActionEvent, bool)
          (this=this@entry=0x5555560bbf70, action=action@entry=0x55555ff2dff0, action_e=action_e@entry=QAction::Trigger, self=self@entry=true)
          at /src/qt5/qtbase/src/widgets/widgets/qmenu.cpp:1461
      #27 0x00007ffff7884882 in QMenu::mouseReleaseEvent(QMouseEvent*) (this=<optimized out>, e=0x7fffffffcd40)
          at /src/qt5/qtbase/src/widgets/widgets/qmenu.cpp:2966
      #28 0x00007ffff7724458 in QWidget::event(QEvent*) (this=this@entry=0x555556110770, event=event@entry=0x7fffffffcd40)
          at /src/qt5/qtbase/src/widgets/kernel/qwidget.cpp:8663
      #29 0x00007ffff78872db in QMenu::event(QEvent*) (this=0x555556110770, e=0x7fffffffcd40) at /src/qt5/qtbase/src/widgets/widgets/qmenu.cpp:3088
      #30 0x00007ffff76dde23 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
          (this=this@entry=0x5555555a8220, receiver=receiver@entry=0x555556110770, e=e@entry=0x7fffffffcd40)
          at /src/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3632
      #31 0x00007ffff76e5928 in QApplication::notify(QObject*, QEvent*) (this=<optimized out>, receiver=0x555556110770, e=0x7fffffffcd40)
          at /src/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3076
      #32 0x00007ffff69b41a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x555556110770, event=0x7fffffffcd40)
          at ../../include/QtCore/5.15.2/QtCore/private/../../../../../../../qtbase/src/corelib/thread/qthread_p.h:325
      #33 0x00007ffff76e4ab8 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)
          (receiver=0x555556110770, event=event@entry=0x7fffffffcd40, alienWidget=0x0, nativeWidget=0x555556110770, buttonDown=<optimized out>, lastMouseReceiver=..., spontaneous=true, onlyDispatchEnterLeave=false) at /src/qt5/qtbase/src/widgets/kernel/qapplication.cpp:2614
      #34 0x00007ffff77418da in QWidgetWindow::handleMouseEvent(QMouseEvent*) (this=0x7fffec09eb90, event=0x7fffffffd1d0)
          at /usr/include/c++/9/bits/atomic_base.h:413
      #35 0x00007ffff77441b7 in QWidgetWindow::event(QEvent*) (event=0x7fffffffd1d0, this=0x7fffec09eb90)
          at /src/qt5/qtbase/src/widgets/kernel/qwidgetwindow.cpp:300
      #36 QWidgetWindow::event(QEvent*) (this=0x7fffec09eb90, event=0x7fffffffd1d0) at /src/qt5/qtbase/src/widgets/kernel/qwidgetwindow.cpp:239
      #37 0x00007ffff76dde23 in QApplicationPrivate::notify_helper(QObject*, QEvent*)
          (this=this@entry=0x5555555a8220, receiver=receiver@entry=0x7fffec09eb90, e=e@entry=0x7fffffffd1d0)
          at /src/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3632
      #38 0x00007ffff76e5650 in QApplication::notify(QObject*, QEvent*) (this=0x7fffffffd7e0, receiver=0x7fffec09eb90, e=0x7fffffffd1d0)
          at /src/qt5/qtbase/src/widgets/kernel/qapplication.cpp:3156
      #39 0x00007ffff69b41a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) (receiver=0x7fffec09eb90, event=0x7fffffffd1d0)
          at ../../include/QtCore/5.15.2/QtCore/private/../../../../../../../qtbase/src/corelib/thread/qthread_p.h:325
      #40 0x00007ffff6fd6088 in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) (e=0x555560abf6b0)
          at /src/qt5/qtbase/src/gui/kernel/qguiapplication.cpp:2282
      #41 0x00007ffff6fd7685 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) (e=0x555560abf6b0)
          at /src/qt5/qtbase/src/gui/kernel/qguiapplication.cpp:2002
      #42 0x00007ffff6faffcb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) (flags=flags@entry=...)
          at /src/qt5/qtbase/src/gui/kernel/qwindowsysteminterface.cpp:1169
      #43 0x00007ffff2d7790e in xcbSourceDispatch(GSource*, GSourceFunc, gpointer) (source=<optimized out>)
          at /src/qt5/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
      #44 0x00007ffff5342fbd in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #45 0x00007ffff5343240 in  () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #46 0x00007ffff53432e3 in g_main_context_iteration () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
      #47 0x00007ffff6a11041 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x555555689d50, flags=...)
          at /src/qt5/qtbase/src/corelib/kernel/qeventdispatcher_glib.cpp:423
      #48 0x00007ffff69b2c8b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=this@entry=0x7fffffffd570, flags=..., flags@entry=...)
          at ../../include/QtCore/../../../../qtbase/src/corelib/global/qflags.h:141
      #49 0x00007ffff69bb1e4 in QCoreApplication::exec() () at ../../include/QtCore/../../../../qtbase/src/corelib/global/qflags.h:121
      #50 0x00005555555618cf in main ()

      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
              allan.jensen Allan Sandfeld Jensen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes