-
-
Notifications
You must be signed in to change notification settings - Fork 186
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Leak in xdg-permission-store when deleting data after uninstalling package #833
Comments
Update: this seems to heavily affect the cleanup process, it takes several minutes to remove packages even if they have almost no data in disk, and I have a fast SSD. |
I can't reproduce the RAM bug with xdg-desktop-portal 1.18.2 (Fedora 39, GNOME). I monitored that with System Monitor from GNOME. However, I am able to reproduce the high disk write activity. @ranisalt: Are you able to reproduce with a more recent xdg-desktop-portal version (ideally, the latest: 1.18.2)? |
Better with numbers. OS: Fedora Linux 39, GNOME 45.1, xdg-desktop-portal 1.18.2. I used System Monitor from GNOME to monitor memory usage of xdg-permission-store. I used the following commands, two times: I also launched Text Editor (flatpak) to take notes. Numbers:
This bug is also a duplicate of #748 (where I took the Kamoso example). |
When I try to run this with the |
Just cross-posted over at #748. System is at 11.8GB memory usage for xdg-permission-store & can also say that the --delete-data hangs abnormally long. One thing to note is that initially my system was hanging with --delete-data, but the memory leak had not yet occurred. Only recently did the memory leak happen. Starting fresh will solve things, but I'm interested in the outcome of the issue. |
Hello! I'm facing an issue where the process for
xdg-permission-store
where it allocates huge loads of memory whenever an uninstalled package is deleting data, i.e. when runningflatpak remove --delete-data <package>
after pressingy
when it promptsDelete data for <package>? [y/n]
.This causes memory usage to ramp up very quickly, and it never deallocates. I'm talking about gigabytes on each uninstall, I just removed two packages (
com.github.wwmm.easyeffects
andorg.freedesktop.LinuxAudio.Plugins.LSP
) andxdg-permission-store
is sitting at ~6 GB memory usage. It increases about 3 GB for each package, until it uses 100% of my RAM and crashes the system, requiring a hard reset.After uninstalling 2 more packages, it peaked at 10.6 GB:
Killing the process does not seem to cause any issues. I don't know of any logs to annex, but am willing to share whatever information is necessary to fix ;)
The text was updated successfully, but these errors were encountered: