Summary: | Kate is extremely slow to exit | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Aaron Williams <aaronw> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | waqar.17a |
Priority: | NOR | ||
Version First Reported In: | 22.04.3 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Aaron Williams
2022-08-12 06:22:21 UTC
I removed anonymous.katesession and the problem has disappeared. I have preserved the original file. > #3 0x00007f66d36735eb in QProcess::waitForFinished(int) () from /usr/lib64/libQt5Core.so.5
> #4 0x00007f66be039793 in KateProjectIndex::loadCtags (this=this@entry=0x13f27e0, files=..., ctagsMap=..., force=force@entry=false) at /usr/src/debug/kate-22.04.3-lp154.1.20.x86_64/addons/project/kateprojectindex.cpp:109
Seems like you have CTags enabled in the project plugin. When you open a single file in a git repo, it loads the whole repo as a project and starts CTags indexing. When you quit, that indexing hasn't finished yet so it waits.
This would explain another problem I have where when logging back in ctags consumes an inordinate amount of memory sorting (well over 100GB!) It would be nice if I could limit this or if ctags could be killed. In the case of the files taking a very long time the number of files in the tree was fairly small, though I have several other massive trees I also open. I have disabled this and the problem seems to have disappeared. 22.04 tries to restore the projects you had open last time which can lead to unpleasant results. I assume you dont use sessions so a lot of projects have accumulated. Check the combobox at the top of project files tree, it will list all open projects. Try closing a few of them and it should be a lot better. 22.08 provides an option allowing you to opt-out of project restoration. Marking this as fixed as we have included an option that causes this problem. With 22.08 you can disable project restoration in the Project plugin settings and this problem will go away. I will try to make other improvements around this to ensure that things are not so bad if one has multiple projects open. I generally do not use sessions. Despite disabling ctags, each time I start Kate it never picks up the new settings., making this ctags issue especially annoying. > Despite disabling ctags, each time I start Kate it never picks up the new settings
You mean CTags setting is reenabled?
Yes. Any changes to the settings of Kate do not seem to take hold. Note that I had numerous instances of Kate running. I was able to fix this by logging out and deleting ~/.local/share/kate/anonymous.katesession. If other instances of kate are running, settings do not take effect. |