Bug #23687
VAB Duplicate Part Memory Leak
Start date:
09/22/2019
% Done:
50%
Language:
English (US)
Mod Related:
No
Votes:
Description
Using the VAB as regular to edit large craft results in a large memory leak, requiring a full restart of the game every 30 minutes or so if I'm working quickly. I believe I've tracked down at least part of the issue to the part duplication function.
Replication:- Build a large craft
- Use the mod+left click key to duplicate most of it
- Throw it in the part pane (delete it)
- Do this a few more times, and the RAM usage will skyrocket
- The Private Memory values listed here were obtained via Process Hacker 2, as the Windows Task Manager's RAM reporting is frequently incomplete.
- This is not cleared by simply exiting to the main menu. A full closure of the game is required to fix this.
- On Game Launch, I'm using 2.92 GB private memory for KSP.
- I did not test this with the Spaceplane Hanger.
- The ingame memory reading under "performance" in the debug console does not show these RAM changes nearly as bad as they are (Private memory went from 2.97 GB to 4.59 GB, and ingame reserved went from 1246 mb to 1440 mb (both taken in the main menu, with the second one being after I preformed the glitch and left for the main menu)
- Simply entering a save and returning from it increases Private Bytes to 3.26 GB in the main menu (again, does not effect the ingame memory reporting, and does not stack, fortunately).
Workaround:
None found.
OS: Windows 10, version 1809
RAM: 16 GB, x64
CPU: AMD Ryzen 5 2400G (Radeon Vega Graphics)
History
#1 Updated by Anonymous over 5 years ago
- File confirm20740.craft added
- Status changed from New to Confirmed
- % Done changed from 0 to 10
#2 Updated by Anonymous over 5 years ago
- File deleted (
confirm20740.craft)
#3 Updated by victorr about 5 years ago
- File Copying huge ship.png Copying huge ship.png added
- Status changed from Confirmed to Ready to Test
- Target version set to 1.8.0
- % Done changed from 10 to 80
We've made some changes in the latest version and would like some feedback on this issue.
#4 Updated by Anth12 about 5 years ago
- Status changed from Ready to Test to Not Fixed
- % Done changed from 80 to 50
No. I can still get the memory to climb by doing this in the VAB or the SPH,
Also a side effect is then when exiting the game in 1.8.0 it can take quite sometime to correctly end the game application