-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
Huge xdg-document-portal memory usage when searched recursively #498
Comments
I found another case which could have more sense probably: memory leak happens when running dua (Utility for view disk space usage and delete unwanted data) on root But |
I'm seeing this too, on Kubuntu 22.04, but installed via apt. Killing it seems to be an OK thing to do? But then I don't use many flatpak apps. |
This comment was marked as off-topic.
This comment was marked as off-topic.
xdp-gnome is not maintained by this project. If you have a way to reproduce that large memory use, or other information that would be useful for figuring out why it did this, please report it to https://gitlab.gnome.org/GNOME/xdg-desktop-portal-gnome. (If not, then mentioning that its memory use is high is not really something that anyone can fix.) |
These are both doing a recursive crawl through the filesystem. xdg-document-portal provides a virtual filesystem using FUSE, so I suspect that what's happening here is that the search is causing some sort of infinite recursion, which forces xdg-document-portal to allocate memory for all the (potentially infinitely many?) directories that have been searched. |
I suspect hitting the same issue with rust-analyzer inside Flatpaks regularly. The document portal fills the memory (32 GB) until the system completely freezes and I have to reset it. |
Not sure if this is the same bug but I found a way to consistently replicate xdg-document-portal causing OOM on my 16gb ram machine. I'm playing Baldur's Gate 3 (gog version) using Heroic launcher flatpak. Not sure if it matters but the game itself is located in ~/Games and wine prefix is somewhere in ~/Games/Heroic By the time the game reaches the main menu, xdg-document-portal is using about 400mb ram. When you load into a game, it's 800mb. If you save and reload, it's 1.2gb, etc, and eventually after some hours it causes the entire system to freeze since it never frees any memory. This may actually be happening with any game, haven't tested |
I can't seem to reproduce with 1.18.2. I wonder if that's not related to #689. |
Steps to reproduce:
We were able to reproduce this multiple times during the last days. Including after clean reboots. Using:
|
@Francewhoa 1.16.0 is too old, you have to test this with at least 1.18.1 |
For those facing this challenge, this temporary fix worked for us:
|
Thanks for your suggestion @GeorgesStavracas :) I'll happily pass your suggestion to our IT team. It's unlikely that they will install 1.18.1 or more recent on this device. Because it is a production devise. Not meant for testing. On Debian 12 Bookworm, the latest version presently available is this 1.16.0-2. There is presently no more recent version in the repository Backport. When I pass on your suggestion, I'll add another suggestion about trying a recent Flatpak version of xdg-desktop-portal from https://flatpak.github.io/xdg-desktop-portal/ |
Hi.
xdg-document-portal
can occupy a lot of RAM space. 2400+ MB and continue growing.How to reproduce
Go via Nautilus to
/proc/$PID/root
(where$PID
is your flatpak app which running) and search via Nautilus for some file. Wait for results.Actual results
And it continues growing until i manually stopped search.
Why and what i search here?
I had to find some content which was created in tmps by WINE Flatpak package.
System info
OS:
Fedora 32
Flatpak:
1.7.3-1
xdg-desktop-portal:
1.7.2-1
The text was updated successfully, but these errors were encountered: