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

Clang backend hangs in a busy loop while editing code

    XMLWordPrintable

    Details

    • Platform/s:
      Linux/X11
    • Commits:
      c00c9d19fa7a8dd141d610b1c771a5acd2f1d952 (qt-creator/qt-creator/4.8)

      Description

      Occasionally, I can see clangbackend process starting to continuously consume 100% of one CPU core. When this happens, QtCreator stops applying code coloring in the editor. This situation does not recover by itself, I have to restart QtCreator or kill clangbackend so it is restarted.

      I do not have a reliable way to reproduce the issue, it just happens at random times while I'm editing C++ code, most often template function bodies. I cannot create a small reproducer project.

      I've attached a bactrace of clangbackend during one of these busy loops.

        Attachments

        1. clangbackend.txt
          4 kB
          Andrey Semashev
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            kosjar Nikolai Kosjar
            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