Project

General

Profile

Bug #20770

Memory leaking in scene switches, never recovered

Added by Nebbie about 2 months ago. Updated about 2 months ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Application
Target version:
-
Start date:
12/28/2018
% Done:

0%

Version:
Platform:
Linux
Expansion:
Core Game, Making History
Language:
English (US)
Votes:
Arrow u r green
Arrow d r red

Description

KSP leaks memory at a rate of about 100kB/s (real-time, timewarp does not increase the rate, and even while paused) in the following scenes:
  • KSC main scene
  • Astronaut complex
  • Flight

It is near-static in other scenes (such as the Main Menu, Tracking Station, VAB, or SPH). This can be easily observed by creating a new sandbox game and looking at RAM usage.

This had gotten to the point where after a few hours running, doing a Mun orbit mission and then leaving the game paused for a while afterwards, the game was using 7.5GB of RAM on my machine (even after switching to an empty sandbox save), when it only uses 4.2GB on startup.

History

#1 Updated by Nebbie about 2 months ago

  • Subject changed from Memory leaking while paused on KSC scene to Memory leaking in some scenes, even while paused

#2 Updated by Nebbie about 2 months ago

  • Subject changed from Memory leaking in some scenes, even while paused to Memory leaking in scene switches, never recovered

It appears the 100kB/s leak is actually due to mods; scatterer and EVE seem to cause it.
However, that still leaves the problem that the game generally doesn't free up memory, leading to inevitable memory bloat as it slowly (or much more quickly with mods) leaks; if I load up an empty sandbox save, go into the VAB and back several times, then go back to the main menu, memory usage has about a 10MB net increase.

Also available in: Atom PDF