PDA

View Full Version : Memory leaks in 4.6.0



Speculi
December 9th, 2024, 19:20
In our game this Saturday evening, FG stopped responding for me (GM) and looking into the process showed that it was consuming over 24GB of RAM, basically everything it could.

At this point we were playing for about 1 to 1.5 hours. Unfortunately when FG stopped responding, I ended the process and tried to restart FG, but that didn't work properly. Forcing me to restart the entire system to quickly get back into the game. After restarting I didn't think fast enough to gather the logs before starting FG the next time, so the relevant log was already gone when I used the compile logs button.

I'm using EndeavourOS (Arch based) Linux, with KDE on Wayland. (I know officially only Ubuntu is supported.)

FG 4.6.0 (2024-12-04)
D&D 5e (legacy)
5 Players + me as GM

Extensions:
Legacy - Baron (official theme)

from the Forge:
Pets
Spell Action Info
5E - Polymorphism FGU

If relevant, we were are playing the bought module Tomb of Annihilation. The most action was on the map "Player Map - Rotten Halls", with slightly modified LoS occluders and lighting enabled. (14 static lights + 2 token lights)
We had 5 PCs, 4 friendly pets / neutral NPCs and about 5 unfriendly NPCs on the map when it happened.

After the restart, we played for another 1.5-2 hours without any issues.

We had a similar issue the week before. I was unable to check if it had the same high memory consumption, but the symptoms in FG were the same. Everything stopped working for me and I had to restart the system to get back into the game.

nephranka
December 9th, 2024, 19:36
In our game this Saturday evening, FG stopped responding for me (GM) and looking into the process showed that it was consuming over 24GB of RAM, basically everything it could.

At this point we were playing for about 1 to 1.5 hours. Unfortunately when FG stopped responding, I ended the process and tried to restart FG, but that didn't work properly. Forcing me to restart the entire system to quickly get back into the game. After restarting I didn't think fast enough to gather the logs before starting FG the next time, so the relevant log was already gone when I used the compile logs button.

I'm using EndeavourOS (Arch based) Linux, with KDE on Wayland. (I know officially only Ubuntu is supported.)

FG 4.6.0 (2024-12-04)
D&D 5e (legacy)
5 Players + me as GM

Extensions:
Legacy - Baron (official theme)

from the Forge:
Pets
Spell Action Info
5E - Polymorphism FGU

If relevant, we were are playing the bought module Tomb of Annihilation. The most action was on the map "Player Map - Rotten Halls", with slightly modified LoS occluders and lighting enabled. (14 static lights + 2 token lights)
We had 5 PCs, 4 friendly pets / neutral NPCs and about 5 unfriendly NPCs on the map when it happened.

After the restart, we played for another 1.5-2 hours without any issues.

We had a similar issue the week before. I was unable to check if it had the same high memory consumption, but the symptoms in FG were the same. Everything stopped working for me and I had to restart the system to get back into the game.

I am using Fedora and I have found that the issue can be fixed temporarily by using garbage collection. When I see the ram usage going up I use "/gc" and things drop back to normal.

Moon Wizard
December 9th, 2024, 20:32
Could you provide a zipped up version of your campaign folder; and the name of the map(s) you were using?

Thanks,
JPG

Speculi
December 10th, 2024, 00:09
I am using Fedora and I have found that the issue can be fixed temporarily by using garbage collection. When I see the ram usage going up I use "/gc" and things drop back to normal.
Thanks for the suggestion. Unfortunately this sounds a bit impractical. It would mean I would have to constantly monitor the memory consumption, because FG becomes unresponsive when it reaches the limit, preventing me from using the command.


Could you provide a zipped up version of your campaign folder; and the name of the map(s) you were using?
Sure, how would you like to receive the zipped up campaign folder? The zip is ~42 MB in size and the forum states it only allows 9.5 MB zips.

LordEntrails
December 10th, 2024, 00:40
Sure, how would you like to receive the zipped up campaign folder? The zip is ~42 MB in size and the forum states it only allows 9.5 MB zips.
The general request is to upload to Google or OneDrive etc and set to be readable by anyone with the link. If you do not want to post the link here, you can post it via a support ticket and reference this thread.

nephranka
December 10th, 2024, 00:47
Thanks for the suggestion. Unfortunately this sounds a bit impractical. It would mean I would have to constantly monitor the memory consumption, because FG becomes unresponsive when it reaches the limit, preventing me from using the command.


Sure, how would you like to receive the zipped up campaign folder? The zip is ~42 MB in size and the forum states it only allows 9.5 MB zips.

This was not meant to be a permanent solution but a way to assist you from having to reboot. FG should find a fix at some point. You could simply type the command when you start to see the start of performance issues or every so often.

Speculi
December 10th, 2024, 18:10
The campaign has been zipped and send to support.

We were playing on the map “Player Map - Rotten Halls“ from the “Tomb of Annihilation“ module. I also had the self made map/image “Time Tracker“ open. I’m not sure which other records were open at the time. Definitely the combat tracker. Maybe a PC or NPC entry, story entries, a spell description....

WishX
December 10th, 2024, 18:47
The campaign has been zipped and send to support.

We were playing on the map “Player Map - Rotten Halls“ from the “Tomb of Annihilation“ module. I also had the self made map/image “Time Tracker“ open. I’m not sure which other records were open at the time. Definitely the combat tracker. Maybe a PC or NPC entry, story entries, a spell description....

Ticket/campaign received and escalated to Developers.

Moon Wizard
December 10th, 2024, 21:35
Thanks for the info and the campaign. I've created an issue ticket for Carl to review all the information.

Regards,
JPG

Speculi
December 14th, 2024, 22:53
Just a bit of fyi:
Today we played again, now on 4.6.1. Over the course of 3 hours of playtime (about 45 minutes was more or less idle with 3 players just connected, waiting for the other two players) FG peaked at about 12 GB of RAM usage. And clearly the RAM usage was growing over time. We started again on the previous mentioned map and journeyed to the next level map. Also a hand full of other smaller images (not maps) were opened during gameplay.

Using the /gc command didn't do much, if anything at all, in regards to the reported memory usage.

Moon Wizard
December 17th, 2024, 22:15
We just pushed v4.6.2 that closes a memory leak with image text layers and labels that should address the outstanding issues you saw with memory leaks. Carl tested on the campaign that you sent in to make sure.

Please run a new Check for Updates, and let us know if you see anything further.

Regards,
JPG