Fractal Softworks Forum

Starsector => Bug Reports & Support => Bug Reports & Support (modded) => Topic started by: TrashMan on September 13, 2017, 01:24:18 PM

Title: Memory leak?
Post by: TrashMan on September 13, 2017, 01:24:18 PM
I noticed something odd while playing.

If I load a saved game a few times without exiting completely, the game becomes slower and at one point suddenly it begins freezing every few seconds.
If I try to exit and save, the save bar freezes, then moves a bit, then freezes and by the time it reaches the half point it stops moving.
Java starts eating all of the proccesor and ram and stops responding.
Title: Re: Memory leak?
Post by: Alex on September 13, 2017, 02:16:25 PM
That sounds very much like a memory leak, yes.

If you're running the game with a debugger attached, this is "normal" in that the debugger will hang onto things it doesn't need to and prevent old copies of the game engine from being released.

Otherwise, this is probably indicative of an actual memory leak; it's fairly likely that it would be in whatever mods you're running, as I'm not aware of any such leaks in the base game, at least not any common and easily reproducible ones, which it sounds like this one is.

(Edit: but if you're able to reproduce it in vanilla, I would love to know about it!)