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

Very high CPU usage when annotation (warning) is visible in the editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.5.0-rc1
    • Qt Creator 4.5.0-beta1
    • Editors
    • None
    • Windows 10 x64
    • 79bdd7e14f3b3cc584c4a5911bf11e6fc835ca28

    Description

      The GUI thread maxes out a single CPU core when an annotation is visible in the editor.

      Scrolling to an area without visible annotations makes the load go away.

      Scrolling back to an annotation and the CPU is maxed out again.

       

      Currently reproducing the behavior with Qt Creator 4.5 beta1 64 bit (Snapshot from Octorber 13).

       

      I strongly suspect one of the TextEditor related commits on Octorber 9:

      cf624f92bd3da7305afc70c6e440dab81fdf19f4

      5fb310828eb04d373205fa48a949b6ccd10f68f4

      26d0b536cabce93bd2564bdbea0233357c50c32a

      c2686fd9ae3bc8ac1550984d88b59cb9a307c13a

       

       

       

      Attachments

        1. normal_cpu_no_annotation.png
          normal_cpu_no_annotation.png
          115 kB
        2. main.cpp
          0.0 kB
        3. high_cpu_with_annotation.png
          high_cpu_with_annotation.png
          123 kB
        4. high_cpu_issue.pro
          0.1 kB
        5. Capture.PNG
          Capture.PNG
          292 kB

        Activity

          People

            davschul David Schulz
            wwallner Wolfgang Wallner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: