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

100% CPU Loading when autocompleting large Enum

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.13.3, Qt Creator 4.14.1
    • Fix Version/s: Qt Creator 4.15.0-rc1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Qt Creator 4.13.3 (also tried on 4.14.1)
      Qt 4.8.7
      Ubunutu 18.04.5 64 bit
      Intel® Core™ i7-9850H CPU @ 2.60GHz × 12
      32GB RAM
    • Platform/s:
      Linux/X11
    • Commits:
      17e2a80e10dfc7907cfe0e95c368710799edd1ef

      Description

      When using autocomplete for C++ I have a particular enum which has ballooned in size since my project began. As the size has grown the autocomplete when typing in one of the name references has gotten slower and slower. Now the enum has about 500 values and it loads my 9th gen i7 to 100% and my whole system is locked up for 5-10s until my escape key-press registers.

       

      I have recreated this using a similarly structured enum I created with a random word generator. To replicate start typing one of the examples from the params.h file in the project, the loading will start after you finish typing the common prefix.

      The simple project to replicate is attached.

      Thanks,

      Michael

        Attachments

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

          Activity

            People

            Assignee:
            kandeler Christian Kandeler
            Reporter:
            michael.slater Michael Slater
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes