Bug 220394

Summary: graphics/digikam-kde4: too many open files
Product: Ports & Packages Reporter: walter
Component: Individual Port(s)Assignee: freebsd-kde (group) <kde>
Status: Closed Feedback Timeout    
Severity: Affects Some People CC: adridg, groot, tcberner
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
the patch none

Description walter 2017-06-30 19:48:24 UTC
Created attachment 183962 [details]
the patch

On large collection of photographs Digikam opens too many files.
Even a 30K system limit is not enough.
It seems to be a problem with file monitoring.
The following patch uses the same workaround as on OSX and Windows: enables monitoring of the directories only, rather than all files.
Comment 1 groot 2017-07-07 09:08:46 UTC
I think this bears re-testing with current Digikam (eh .. the KF5 port, I mean, which is ready in Area51) since the old code refers to "improvements in QFileSystemWatcher in Qt 5.1". No sense in patching something that is shortly to be replaced.
Comment 2 Tobias C. Berner freebsd_committer freebsd_triage 2017-07-07 09:13:38 UTC
Also you could simply raise the limit via sysctl :)
Comment 3 Adriaan de Groot freebsd_committer freebsd_triage 2018-04-18 08:01:11 UTC
There are workarounds, and a newer version of the application, and I'm not in a position to test this (because I don't have 30k photos).