https://bugs.kde.org/show_bug.cgi?id=453570

            Bug ID: 453570
           Summary: activitymanagerd created database which took 80 GB in
                    file system
           Product: frameworks-kactivities
           Version: 5.93.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: ivan.cu...@kde.org
          Reporter: piotr.mierzwin...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

SUMMARY
Seems daemon activitymanagerd doesn't check if there is any free space in file
system only creates its files no matter how this space is available.
Yesterday (or today early morning, to be detailed) I experienced no free space
on my home directory. 
No any warning was shown, what expected in that case, only I discovered that in
folder ~/.local/share/kactivitymanagerd/resources file database-wal got size
over 80 GB, and this took whole available space in partition. I found 0 bytes
available

$ pwd
~/.local/share/kactivitymanagerd/resources/
$ ls -lh
total 80G
drwxr-xr-x 2 piotra piotra 4.0K 21.04.2022 09:30 test-backup/
drwxr-xr-x 2 piotra piotra 4.0K 21.04.2022 09:30 working-backup/
-rw-r--r-- 1 piotra users   12M 09.05.2022 00:54 database
-rw-r--r-- 1 piotra piotra 158M 09.05.2022 02:30 database-shm
-rw-r--r-- 1 piotra piotra  80G 09.05.2022 02:38 database-wal

To fix this issue I removed all 3 files. And because these files were used by
working process, space in file system wasn't released, to do this I just killed
plasma session and restored files from directory "working-backup/"

I have 3 activities and additionally 1 as stopped. One is my working activity
where I have usually opened several windows, in second I have 1 window opened
(Dolphin)  and third I have 3 opened applications (Firefox, KDevelop, and
konsole).

I System Settings I have checked following options:
"Activities -> Switching: Current virtual desktop: Remember for each activity
(needs restart)"
and
"Activities -> Privacy: Keep history: Forever"
"Activities -> Privacy: Remember opened documents: For all applications"

I suppose that this issue happened just because option:  "keep history:
forever"
Only the strange thing is that, database increased so much in couple days. At
April 21st file "database-wal" had _only_ 415K (check below). I don't know what
data collects this file what caused creating huge file after couple days. Since
several year as I use KDE/Plasma this didn't happen me never.

$ pwd
~/.local/share/kactivitymanagerd/resources/working-backup
$ ls -lh
total 12M
-rw-r--r-- 1 piotra piotra  11M 21.04.2022 09:30 database
-rw-r--r-- 1 piotra piotra  32K 21.04.2022 09:30 database-shm
-rw-r--r-- 1 piotra piotra 415K 21.04.2022 09:30 database-wal


Would be nice if any notification would happen, just warning about huge
database and suggesting "cleaning history", if the reason is like I supposed.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.93
Qt Version: 5.15.3

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to