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

QtCreator sometimes locks up busy looping if file is modified externally

    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
    • Environment:
      Kubuntu 21.04 x86-64.
    • Platform/s:
      Linux/X11

      Description

      Occasionally, QtCreator 6.0.0 beta 1 locks up busy looping on one core indefinitely, UI unresponsive. This often happens after you modify the current source file in an external process, then switch to QtCreator and try to navigate the file. QtCreator shows a dialog offering to reload the file. It may hang busy looping in this dialog or shortly after you choose to reload the file. This doesn't happen 100% of time and may be correlated with how much modifications are made in the external process (in my case it happened when I inserted a large comment in the file, at a place before the current cursor position in QtCreator).

      While busy looping, I attached strace to the qtcreator process and it didn't produce any output (i.e. no system calls were made). I attached gdb to the process and captured a few backtraces (attached). It looks like the process is busy looping somewhere in code highlighting.

      This never happened on QtCreator 5.x on the same code.

        Attachments

        1. qtcreator_busy_loop1.txt
          10 kB
        2. qtcreator_busy_loop2.txt
          10 kB
        3. qtcreator_busy_loop3.txt
          10 kB
        4. qtcreator_busy_loop4.txt
          13 kB

          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:
              lastique Andrey Semashev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes