Memory Not Freed When Switching Between Backup Repositories in Flatpak Version
Description
Summary: When opening a backup repository in Vorta, all its metadata is loaded into RAM. However, if the user switches to a different repository, the previously loaded data is not freed from memory. This results in multiple repositories being kept in RAM simultaneously, leading to excessive memory usage, swap exhaustion, and eventual OOM termination by the kernel.
Steps to Reproduce:
-
Open Vorta.
-
Select a backup repository (especially one with a large archive, e.g., >100GB).
-
Wait for it to fully load (file list, etc.).
-
Now switch to a second backup repository.
-
Observe that memory usage increases significantly and the memory used by the first repository is not released.
Expected Behavior:
-
Memory used for the first repository should be freed once the user switches away from it.
-
Switching between repositories after closing the previous one, should not cause linear growth in RAM usage.
Environment:
-
Vorta version: v0.10.3 Flatpak
-
Borg version: borg 1.4.0
-
OS: Kubuntu x86_64 25.04
-
RAM: 16 GB
-
Swap: 8 GB
-
Backup size: ~ 40 GB per Repo
Reproduction
- [x] I tried to reproduce the issue.
- [x] I was able to reproduce the issue.
OS
Kubuntu x86_64 25.04
Version of Vorta
v0.10.3
What did you install Vorta with?
Flatpak
Version of Borg
borg 1.4.0
Logs