Bug 220394 - graphics/digikam-kde4: too many open files
Summary: graphics/digikam-kde4: too many open files
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-30 19:48 UTC by walter
Modified: 2018-04-18 08:01 UTC (History)
3 users (show)

See Also:


Attachments
the patch (629 bytes, patch)
2017-06-30 19:48 UTC, walter
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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).