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

Registered documentation never cleaned up, program startup takes very long

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 5.0.3, Qt Creator 6.0.2, Qt Creator 7.0.2, Qt Creator 8.0.2, Qt Creator 9.0.1
    • Help System
    • None
    • Linux
    • Linux/Wayland, Linux/X11, Linux/Other display system

    Description

      I have been updating my Arch Linux installation since quite a few years. This means regular new versions of all KDE and Qt libraries, as well as Qt Creator.

      All these libraries and updates come with qch files, which are autodetected by Qt Creator. Unfortunately, it seems these autodetected versions are never cleaned up (see screenshot of the "registered documentation" page, and when I now start up Qt Creator, it takes more than a minute where it used to be near instant as it should be (all Qt libraries are loaded on my system anyways).

      I checked /usr/share/doc/qt;and there is only one qch file per library, so something in the Qt Creator help system is caching all the old versions of the help files, even though the original qch isn't present anymore.

      I went as far as compiling Qt Creator from source in order to profile what was taking up the startup time an turns out it seems to be spending all its time in sqlite3 code (which I suppose is documentation cache?). Note Qt Assistant does not suffer the same slow startup even though it showed the same long list of documentation.

      I can now clean up the list manually from the preference page in the screenshot (which also takes almost forever to load), but it would make sense to remove "registered documentation" for qch files that are not available anymore.
      2.14.0.0
      2.14.0.0

      Attachments

        1. documentation_startup.ptq
          270 kB
          Ruben Van Boxem
        2. Screenshot_20230204_104710.png
          126 kB
          Ruben Van Boxem
        3. Screenshot_20230204_105550.png
          122 kB
          Ruben Van Boxem

        Activity

          People

            jkobus Jarek Kobus
            blablabla Ruben Van Boxem
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: