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

Multi-second hang in editor when using Follow symbol under cursor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • Qt Creator 3.4.1, Qt Creator 3.4.2
    • C/C++/Obj-C++ Support
    • None
    • Gentoo linux, x64
      Ubuntu 64-bit

    Description

      I really like the ctrl+click feature to follow a symbol under a cursor. But it seems qtcreator already resolves links when just pressing ctrl. It seems like a VERY expensive operation which actually blocks the UI and when using ctrl, it does it repeatedly, resulting in multisecond hangs (easily 10 seconds or more on my machine!).

      I have already mentioned this issue in issue 11037 but I realized that the issue that is mentioned in the other bugreport is actually a different one so I decided to create a new issue.

      As noted in the other issue, I have a project which makes it very simple to reproduce the problem. I'll repeat the instructions here:

      • clone https://github.com/bfierz/vcl, open the project in qt-creator.
      • Open interleavedarray.h
      • Scroll to lines 215
      • Just randomly toggle the ctrl button and move with the mouse over the identifiers at line 216/217 for about 1 sec
      • release ctrl and scroll using the mouse
      • The editor (on my machine) will wait at least about 5 seconds until the scroll event actually is handled

      Attachments

        Issue Links

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

          Activity

            People

              kosjar Nikolai Kosjar
              bschindler Benjamin Schindler
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes