Bug 477089 - Koko takes an extremely long time to launch when the system is out of disk space
Summary: Koko takes an extremely long time to launch when the system is out of disk space
Status: REPORTED
Alias: None
Product: Koko
Classification: Applications
Component: General (other bugs)
Version First Reported In: 23.08.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-16 11:57 UTC by Jack Hill
Modified: 2025-06-26 21:53 UTC (History)
1 user (show)

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


Attachments
attachment-4123222-0.html (1.35 KB, text/html)
2025-06-26 21:53 UTC, Jack Hill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jack Hill 2023-11-16 11:57:03 UTC
SUMMARY
When I launch Koko it takes many minutes to launch. In the console I get spammed with inotify errors as I watch Koko attempt to watch every file in my home directory. (FWIW I have no "Pictures" folder in my home dir)

STEPS TO REPRODUCE
1. Launch Koko
2. Wait

OBSERVED RESULT
First line in console is `("/home/jack/")`
Then I get spammed with this:

kf.coreaddons.kdirwatch: inotify failed for monitoring "/home/jack/Dev/KDE6/usr/lib64/cmake/packagekitqt6" 
 Because it reached its max_user_watches,
 you can increase the maximum number of file watches per user,
 by setting an appropriate fs.inotify.max_user_watches parameter in your /etc/sysctl.conf
inotify_add_watch(/home/jack/Dev/KDE6/usr/lib64/cmake/packagekitqt6) failed: (No space left on device)

after a few minutes the Koko window appears

EXPECTED RESULT
Koko launches immediately

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20231108
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.5.9-1-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-5200U CPU @ 2.20GHz
Memory: 7.7 GiB of RAM
Graphics Processor: NVIDIA GeForce 840M/PCIe/SSE2
Manufacturer: Dell Inc.
Product Name: Inspiron 5749
System Version: A09

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2025-06-26 20:55:17 UTC
Looks like you're out of disk space, which is going to make many things not work very well.
Comment 2 Jack Hill 2025-06-26 21:53:12 UTC
Created attachment 182707 [details]
attachment-4123222-0.html

The system wasn't out of disk space when this happened. The issue was that I had no Pictures folder, so Koko defaulted to scanning my entire home folder and tried to add inotify watchers to every file until it exceeded the maximum number of inotify devices.


On 26 June 2025 21:55:17 BST, Nate Graham <bugzilla_noreply@kde.org> wrote:
>https://bugs.kde.org/show_bug.cgi?id=477089
>
>Nate Graham <nate@kde.org> changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>           Severity|major                       |normal
>            Summary|Koko takes an extremely     |Koko takes an extremely
>                   |long time to launch         |long time to launch when
>                   |                            |the system is out of disk
>                   |                            |space
>
>--- Comment #1 from Nate Graham <nate@kde.org> ---
>Looks like you're out of disk space, which is going to make many things not
>work very well.
>
>-- 
>You are receiving this mail because:
>You reported the bug.