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

Clang: Crash when closing multiple documents fast

    XMLWordPrintable

Details

    Description

      • Close many C++ documents fast
      • Qt Creator crashes.

      Looks like in onEditorOpened, editor is deleted (in another thread?) before it is accessed...

      Trace:

      1	ClangCodeModel::Internal::ModelManagerSupportClang::onEditorOpened	clangmodelmanagersupport.cpp	167	0x7fffd956d303	
      2	QtPrivate::FunctorCall<QtPrivate::IndexesList<0>, QtPrivate::List<Core::IEditor *>, void, void (ClangCodeModel::Internal::ModelManagerSupportClang:: *)(Core::IEditor *)>::call	qobjectdefs_impl.h	501	0x7fffd9571fc2	
      3	QtPrivate::FunctionPointer<void (ClangCodeModel::Internal::ModelManagerSupportClang:: *)(Core::IEditor *)>::call<QtPrivate::List<Core::IEditor *>, void>	qobjectdefs_impl.h	520	0x7fffd95718d7	
      4	QtPrivate::QSlotObject<void (ClangCodeModel::Internal::ModelManagerSupportClang:: *)(Core::IEditor *), QtPrivate::List<Core::IEditor *>, void>::impl	qobject_impl.h	143	0x7fffd9570a8b	
      5	QObject::event(QEvent *)			0x7ffff674c601	
      6	QApplicationPrivate::notify_helper(QObject *, QEvent *)			0x7ffff7010ffc	
      7	QApplication::notify(QObject *, QEvent *)			0x7ffff70164c6	
      8	QCoreApplication::notifyInternal(QObject *, QEvent *)			0x7ffff671cbcb	
      9	QCoreApplicationPrivate::sendPostedEvents(QObject *, int, QThreadData *)			0x7ffff671efc6	
      10	??			0x7ffff6772f73	
      11	g_main_context_dispatch			0x7ffff4863fe7	
      12	??			0x7ffff4864240	
      13	g_main_context_iteration			0x7ffff48642ec	
      14	QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)			0x7ffff677337f	
      15	QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)			0x7ffff671a35a	
      16	QCoreApplication::exec()			0x7ffff672243c	
      17	main	main.cpp	532	0x40e5fa	

      Attachments

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

        Activity

          People

            kosjar Nikolai Kosjar
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes