Memory leak issues

Cam Sal shared this feedback 16 days ago
Not Enough Votes

Random-Access-Memory Problems


Memory Leak/ little to no removal of temp data


So I know the game is in Alpha, but I keep running into this Issue were the game will reach 10+gb of ram use and keep going up until I leave to the main menu and go back into my save. With each part that I put on my ship or remove the ram goes up and up, even if the part is destroyed.

Im hitting 99% ram with a 32gb system on DDR5. Is there any tips on ways I can stop the leak? I would like to stream the game but with these leaks it would clog up my stream and maybe even make it stop my stream.

Replies (3)

photo
2

AMAZING, you found out how to reproduce the memory leak... I was able to reproduce this immediately. I have a ship and add a few random blocks, removed them, ground down a solar panel, recreated the solar panel. Almost every time the memory usage increased. I stated with 5GB and went up to 6GB with the addition and welding of about 10 blocks.


This appears to be an issue with how the game tracks additions to existing grids. I don't think it is with welding because I gained 1GB just by grinding down a large solar panel off my ship. Some of the glass floated away due to my inventory being full.


I added a fabricator to my ship, simply just added one to see if the larger the block the more memory leak and it does seem like the size of the block, 2.5m, 10m solar, and whatever the fabricator is worsens the leak. Welding the fabricator up causes it to leak as it is being welded. The more components I add the more memory is being used. When I go back into the inventory to get more components the memory jumps significantly.


*** Hitting F to go back into inventory to get more components adds approximately 100MB to the memory leak. The leak seems to occur when welding more components and also when pressing the F key to enter inventory.

photo
2

I removed the fabricator and then entered the cockpit. Hitting tab to enter the inventory menu also adds approximately 100MB to the memory usage each time I press the tab key.


Interesting, I exited the world and reloaded it. The memory usage remains where it left off or a tad higher. I then pressed the tab key while still in the cockpit and each time it added an additional 100MB to the memory usage. I then saved the world and exited the world.


I then repeatedly hit tab and then ESC until I hit the 12GB of memory usage, saved the world and then existed the world. I noticed that each time I exit the world the memory usage drops, but is higher each time, even though the world is no longer loaded. Just leaving SE2 running without being in a world is now using 9.5GB of memory instead of 5GB like it normally would show while docked at my station. The game appears ready to play, but it is still allocating more memory. It settled just under 12GB. I repeated the test of hitting tab and then escape and each time I hit tab the memory usage rose approximately 100MB.


After exiting the world this time, the memory usage of SE2 is 11GB. I then exited SE2 completely. I opened SE2 and it's using just under 2GB of memory. Note that it is only using 1% to 2% of my CPU power in case that ends up mattering as it normally uses 45% when idle and 35%-45% when entering the inventory menu. I continued the world and waited for it to settle down. It is now only using 6GB of memory.


This is indeed a memory leak. It would affect the entire computer efficiency while SE2 is open, even when not in a world, and now we know exiting and rejoining the world does not free the memory.


I was able to reproduce memory leaks while welding, grinding the already installed 10m solar panel, and every time when I entered the inventory menu by pressing tab while in a cockpit and pressing F at a cargo container.

photo
1

Here's more information.

I think the 100MB (approximate) memory leak may be grid independent. Once it happens on a gird while SE2 is open then it will continue on that grid until SE2 is closed and re-opened. Another thing about this memory leak is that the amount of memory leaked changes. During testing the amount of memory leaked when entering the inventory menu appeared to be related to how much work had been done on the specific grid. Sometimes it's around 40MB, sometimes 70MB, and other times 100MB.


I was able to work on a large ship, grinding and welding, and then enter the cockpit of a smaller ship to access inventory using the tab key. I repeatedly hit Tab and then ESC to test and at that time there were no memory leaks. I then exited the cockpit and hit F on a cargo container on the same ship. The memory leak occurred. I repeated the test with the same results. I then entered the cockpit, and the Tab key was now causing the memory leak. No inventory transactions or menu options were clicked during these tests, just simply entering and exiting the inventory menu.

Leave a Comment
 
Attach a file
You can't vote. Please authorize!