Bug 256269

Summary: sysutils/kf5-baloo: Opens 19+k files and causes 'Too many open files' error
Product: Ports & Packages Reporter: Yuri Victorovich <yuri>
Component: Individual Port(s)Assignee: freebsd-kde (Team) <kde>
Status: Open ---    
Severity: Affects Only Me CC: grahamperrin, sv, tcberner
Priority: --- Flags: bugzilla: maintainer-feedback? (kde)
Version: Latest   
Hardware: Any   
OS: Any   
URL: https://bugs.kde.org/show_bug.cgi?id=437888
Bug Depends on:    
Bug Blocks: 230726    

Description Yuri Victorovich freebsd_committer 2021-05-30 18:25:46 UTC
I have kf5-baloo-5.82.0, plasma5-plasma-5.21.5, kde5-5.21.5.21.04.1 installed.

/usr/local/bin/startplasma-x11 runs baloo_file and it opens 19+k files and kde5 fails to start because many processes fail with 'Too many open files' error.
Comment 1 Tobias C. Berner freebsd_committer 2021-06-16 18:55:44 UTC
Moin moin Yuri

Sorry for not responding here earlier. Yes, that is a very bad behaviour that is caused by files being required to be opened to be monitored.

We cannot really disable baloo by default, as having such a huge home directory is probably not too common, and it would disable functionality out of the box. 

I think we need to work on the documentation be it pkg-message or handbook to get people some information on how to handle this issue (`balooctl disable` or restricting the folders to be monitored, or increasing the number of file handles).

And of course, find some time to make baloo behave properly with FreeBSD's file monitoring capabilities.


mfg Tobias
Comment 2 Graham Perrin 2021-09-05 17:05:33 UTC
FYI bug 258010