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

Infinite loop in SemanticHighlighter::onHighlighterResultAvailable

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 6.0.0-beta1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      When I tried to paste some code in a C++ file, Qt Creator froze.

      Unfortunately I wasn't running a debug build, but when I attached a debugger, it was clear that it was in an infinite loop:

      1  TextEditor::TextDocumentLayout::parentheses(QTextBlock const&)                                        0x7f5c8d839836 
      2  CppEditor::getClearedParentheses(QTextBlock const&)                                                   0x7f5c8d1159be 
      3  CppEditor::SemanticHighlighter::onHighlighterResultAvailable(int, int)                                0x7f5c8d116734 
      4  QtPrivate::QSlotObjectBase::call                                       qobjectdefs_impl.h        398  0x7f5ca5674f30 
      5  doActivate<false>                                                      qobject.cpp               3886 0x7f5ca5674f30 
      6  QMetaObject::activate                                                  qobject.cpp               3946 0x7f5ca566e479 
      7  QFutureWatcherBase::resultsReadyAt                                     moc_qfuturewatcher.cpp    305  0x7f5ca545d0cf 
      8  QFutureWatcherBasePrivate::sendCallOutEvent                            qfuturewatcher.cpp        467  0x7f5ca545daed 
      9  QFutureWatcherBase::event                                              qfuturewatcher.cpp        334  0x7f5ca545dcf1 
      10 QApplicationPrivate::notify_helper                                     qapplication.cpp          3632 0x7f5ca69d943c 
      11 QApplication::notify                                                   qapplication.cpp          3378 0x7f5ca69dff20 
      12 QCoreApplication::notifyInternal2                                      qcoreapplication.cpp      1063 0x7f5ca563c808 
      13 QCoreApplication::sendEvent                                            qcoreapplication.cpp      1458 0x7f5ca563c9be 
      14 QCoreApplicationPrivate::sendPostedEvents                              qcoreapplication.cpp      1817 0x7f5ca563f882 
      15 QCoreApplication::sendPostedEvents                                     qcoreapplication.cpp      1676 0x7f5ca563fe38 
      16 postEventSourceDispatch                                                qeventdispatcher_glib.cpp 277  0x7f5ca5698b33 
      17 g_main_context_dispatch                                                                               0x7f5ca211f8eb 
      18 ??                                                                                                    0x7f5ca2172d28 
      19 g_main_context_iteration                                                                              0x7f5ca211d023 
      20 QEventDispatcherGlib::processEvents                                    qeventdispatcher_glib.cpp 423  0x7f5ca56981cc 
      21 QEventLoop::exec                                                       qeventloop.cpp            232  0x7f5ca563b21a 
      22 QCoreApplication::exec                                                 qcoreapplication.cpp      1371 0x7f5ca56441d3 
      23 main                                                                                                  0x55f04612e00c 
      

      The first two stack frames change when I run/pause the debugger, but it appears to never get out of onHighlighterResultAvailable.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kandeler Christian Kandeler
              Reporter:
              bjorn Thorbjørn Lindeijer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes