Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Author Topic: Memory leak?  (Read 2271 times)

TrashMan

  • Admiral
  • *****
  • Posts: 1325
    • View Profile
Memory leak?
« 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.
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Memory leak?
« Reply #1 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!)
« Last Edit: September 13, 2017, 02:19:29 PM by Alex »
Logged