Geneanet crosspost: "Memory leaks"

This was posted to Geneanet yesterday (with lively response)
But with a such a big memory leak, it seemed reasonable to cross-post here. In case there is a problem beyond a corrupted tree. Just so there wouldn’t have to be a 5.2.5 immediately after the forthcoming 5.2.4 release.

Fuites de mémoire?

by phcook » 15 Dec 2024 16:23

Bonjour à tous,

Je ne sais pas si vous avez déjà observé ce phénomène. Pour ma part, j’ai eu les pires misères auojurd’hui, avec un gramps qui semblait avoir une fuite de mémoire, lorsque je cherchai à afficher un individu de l’arbre, toujours le même, et ce, sur tous mes PC

  • le process gramps montait à près de 5 Go de RAM sur mon pc fixe (8 Go au total)
  • il prenait jusqu’à près de 10 Go sur mon portable (16 Go)

J’ai exporté, supprimé la fiche dans le xml, ça marchait mieux, mais il subsiste toujours ce problème sur certains éléments: notes, individus, etc.

Obligé de tuer le process et de relancer…

Je remarque qu’au démarrage, Gramps est autour de 200 Mo, monte vers 350 dès qu’on commence à travailler.

Cela me semble disproportionné.

Qu’en dites-vous?

Merci de votre aide,
philippe

Hello everyone,

I don’t know if you’ve ever observed this phenomenon. For my part, I had the worst misery today, with a gramps which seemed to have a memory leak, when I tried to display an individual from the tree, always the same, on all my [Linux] PCs

  • the gramps process increased to almost 5 GB of RAM on my desktop PC (8 GB in total)
  • it took up almost 10 GB on my laptop (16 GB)

I exported, deleted the file in the xml, it worked better, but there is still this problem on certain elements: notes, individuals, etc.

Forced to kill the process and restart…

I notice that at startup, Gramps is around 200 MB, increases to around 350 as soon as we start working.

This seems disproportionate to me.

What do you say?

Thank you for your help,
philippe

@PLegoux by patricelegoux » 16 Dec 2024 03:26
Hi,
A few hundred MB is not dramatic but clearly I have never seen Gramps go up to several gigabytes, especially not to do much like opening an individual file, there is obviously a problem there!
You don’t have some experimental addon that sucks everything?
No message in Gramps console?

by phcook » 16 Dec 2024 05:29
No console messages, only official add-ons.
And I had no problem until then.
The worrying thing is that this is true regardless of the PC.

I exported, re-imported, repaired… nothing to report.

I destroyed and redid the plug which seemed to be blocking, it is blocking elsewhere, still for no reason.

by patricelegoux » 16 Dec 2024 06:50

??? ??? Weird
Maybe you should open a bug in Mantis so they can help you diagnose your problem and probably create a fix at the same time

by trichetjoel » 16 Dec 2024 07:44
Good morning,
— If the operating system is under “Linux”, a very practical tool for managing these memory issues; “htop” to run on the command line.
See here for more specific use;
View and manage processes in Linux with HTOP
https://www.it-connect.fr/visualiser-et-gerer-les-processus-sous-linux-avec-htop/
and again here:
Easily manage system processes with htop
https://www.ionos.fr/digitalguide/serveur/outil/htop-gestionnaire-de-taches-sous-linux-mac-os-x-bsd/
Under Mint 22 cinnamon, with 24 GB of RAM, I did not see excessive memory consumption…

by phcook » 16 Dec 2024 07:50
Yes linux, and I’ve already looked. It’s never done that to me before. And there on 2 very different PCs.

by glopglop » 16 Dec 2024 08:46
It looks like a “fault” in the database.
What scares me a little in the post is your file deletion part in the xml.
When you say display an individual, what exactly does that mean?
you are in the Individuals view, you have the list and you click on it to open the Edit Window?

by trichetjoel » 16 Dec 2024 09:45

— “If two different “pc”s” it can only be the database. Try an older one and see if it behaves the same on the other “pc”. – Finally, this is what I will test?

by phcook » 16 Dec 2024 15:58
GlopGlop: What scares me a little in the post is your file deletion part in the xml. When you say display an individual, what exactly does that mean?
No, since I can’t visualize it. I delete the file between tags.

by glopglop » 16 Dec 2024 16:40
what does it mean to delete a file between tags

I wonder if there are some huge Media files linked repeatedly. Might it be generating Thumbnails?

Perhaps it is a garbage collector problem with python.

2 Likes

by phcook » 18 Dec 2024 12:12
I wonder if this is related to GTk3, or something. All my PCs are over 12 years old, and I wonder if there isn’t some recent technology somewhere that doesn’t fit well with old hardware.

As I write, I have just passed 3.9 GB (lag between the time of capture and the post)
image

by phcook » 18 Dec 2024 15:48
I just did a test on my dual boot Linux Mint 20, with Gramps version 4.3, it’s smooth as silk. No problems at all.

Could this memory leak be related to re-processing all the media imported from the backup?

https://gramps-project.org/bugs/view.php?id=13310

Related pull-request: Use imagesize rather than magic by Nick-Hall · Pull Request #1597 · gramps-project/gramps · GitHub
These changes introduced using the “imagesize” package in February 2024.

While not easy, it would would be helpful for the reporter to have data and steps that someone can reproduce the issue with.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.