Bug 485159 - Project ctags indexing can slow down kate shutdown / session switching
Summary: Project ctags indexing can slow down kate shutdown / session switching
Status: CONFIRMED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 24.02.1
Platform: Arch Linux Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-06 23:32 UTC by Benjamin Currie
Modified: 2024-11-01 20:05 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Currie 2024-04-06 23:32:00 UTC
Kate does not crash, it just freezes for a dozen seconds or so. Viewing my system monitor a "ctags" process appears during the freeze and uses a lot of CPU. Then after the freeze it resumes as normal and the "ctags" process disappears.

STEPS TO REPRODUCE
1. Git clone a large C code base like the linux kernel
2. Save a session which involves being inside of the large project
3. Switch out the the session with "new session" or switch to another session within the "recent sessions" menu
4. Observe long freeze

Note it only seems to happen when switching out of the session, not when loading it in.

OBSERVED RESULT
A dozen second GUI freeze in Kate with the application turning grey for a bit

EXPECTED RESULT
No GUI freeze or at least some kind of loading bar to indicate something is happening.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.0.3 and Kate version 24.02.1
Comment 1 Waqar Ahmed 2024-04-07 17:03:22 UTC
Known issue.

An easier way to reproduce is to enable ctags support in project plugin, start Kate in a large project and then close it immediately. The shutdown of kate will take a long time.
Comment 2 Waqar Ahmed 2024-04-07 17:04:14 UTC
To fix this, we need to make the ctags process cancelable
Comment 3 Christoph Cullmann 2024-11-01 20:05:02 UTC
Would be a nice enhancement for any part of the project worker stuff. Patches welcome.