Bug 374896

Summary: Baloo gets stuck indexing git repositories
Product: [Frameworks and Libraries] frameworks-baloo Reporter: lukebenes
Component: Baloo File DaemonAssignee: Pinak Ahuja <pinak.ahuja>
Status: RESOLVED FIXED    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.47
Sentry Crash Report:

Description lukebenes 2017-01-11 06:55:08 UTC
Steps to reproduce:
1. $ git clone https://github.com/Antergos/Cnchi.git
2. logout/login
3. $ balooctl status
4. $ top
5  $ rm -rf Cnchi 
6. $ rm -rf ~/.local/share/baloo/
7. logout/login
8. $ balooctl status

I left my computer with only 3GB of RAM running over night after cloning a repo. In the morning it was thrashing swap so hard, it was nearly impossible to use. Adding the repo to the "Do not Search List" was a temp. workaround. 

There must be a memory leak in baloo_file_extractor, because it was taking up nearly all of my systems RAM. It also uses 100% of CPU time. 

$ uname -a
Linux arch 4.8.13-1-ARCH #1 SMP PREEMPT Fri Dec 9 07:43:17 CET 2016 i686 GNU/Linux
Comment 1 Nate Graham 2018-11-26 20:10:57 UTC
Almost certainly fixed by https://cgit.kde.org/baloo.git/commit/?id=7529727e46242d2fdd71c4e8c92363600373fcb6 in KDE Frameworks 5.47.

If you can still reproduce the issue with KDE Frameworks 5.47 (or preferably 5.52 or later), please re-open the bug. Thanks!