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

Qt Creator crashes after closing a C++-file

XMLWordPrintable

    • feff33827cbe54a39863ef7a5a1e954556ed4302

      If you close an editor containing a C++-file Qt Crator crashes.

      Stacktrace (editor closed after parsing finished):

      #2  <signal handler called>
      No symbol table info available.
      #3  0x00007f00744a7bca in TextEditor::BaseTextEditor::editorWidget (this=0x0) at /qt-creator/src/plugins/texteditor/basetexteditor.h:620
      
      No locals.
      #4  0x00007f00744a4098 in CppTools::CppEditorSupport::editorRevision (this=0x7a5c8c0) at /qt-creator/src/plugins/cpptools/cpptoolseditorsupport.cpp:166
      No locals.
      #5  0x00007f00744a4466 in CppTools::CppEditorSupport::updateDocumentNow (this=0x7a5c8c0) at /qt-creator/src/plugins/cpptools/cpptoolseditorsupport.cpp:222
      No locals.
      #6  0x00007f0074558892 in CppTools::CppEditorSupport::qt_static_metacall (_o=0x7a5c8c0, _c=QMetaObject::InvokeMetaMethod, _id=5, _a=0x7fff8c283de0) at .moc/debug-shared/moc_cpptoolseditorsupport.cpp:118
              _t = 0x7a5c8c0
      

      If you close the editor while the parser is still running the stacktrace is a little different. (see attachment)

      Git bisect says "cacd66195c1e37cf89023ffce82a69d135c6d734 is the first bad commit" and reverting it fixes the problem.

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

            erikv Erik Verbruggen
            mkrems Marcel Krems
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes