Project

General

Profile

Bug #1976

Out of memory error when changing scene

Added by SMILIE_AUT almost 11 years ago. Updated over 8 years ago.

Status:
Closed
Severity:
Low
Assignee:
-
Category:
-
Target version:
-
Start date:
12/16/2013
% Done:

100%

Version:
Platform:
OSX
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

Description

When building larger ships (about 100 parts or more) and then switching scenes the games hangs quite often. The (attached) logs show that it's an out of memory error, although I still got enough free RAM (6GB or more). I know that this is probably an engine/32 Bit limitation and I have quite some addons installed but maybe it's a bug or the logs can help find performance problems.

There are 3 or 4 flights in progress and some debris floating around in the save where the problem occurs.

Installed addons:
  • ActionsOnTheFly
  • B9_Aerospace
  • BobCatind
  • BossSquirrelz
  • ExsurgentEngineering
  • FASA
  • Firespitter
  • KAS
  • KineTechAnimation
  • Lionhead_Aerospace_Inc
  • MechJeb2
  • NovaPunch2
  • PartCatalog
  • RBI
  • ResGen
  • Squad
  • TriggerTech
  • kOS
  • logomatic
  • tek604
Player_scenechange_flight_ksc.log (1.35 MB) Player_scenechange_flight_ksc.log [email protected] SMILIE_AUT, 12/16/2013 06:11 PM
KSP_scenechange_flight_ksc.log (531 KB) KSP_scenechange_flight_ksc.log [email protected] SMILIE_AUT, 12/16/2013 06:11 PM
logs.zip (461 KB) logs.zip [email protected] SMILIE_AUT, 12/16/2013 06:15 PM
2013-12-30_221654.zip (35.6 KB) 2013-12-30_221654.zip OOM with crash in Voronoi basilevs, 12/30/2013 10:49 AM
2013-12-30_221654.zip (35.6 KB) 2013-12-30_221654.zip [email protected] basilevs, 05/17/2014 10:58 AM
2014-05-17_213346.zip (30.5 KB) 2014-05-17_213346.zip [email protected] basilevs, 05/17/2014 11:00 AM
Many dumps.zip (1.12 MB) Many dumps.zip [email protected] basilevs, 05/17/2014 11:02 AM
Player.log.zip (178 KB) Player.log.zip [email protected] DSKY, 01/04/2015 09:14 AM
20150121_KSP.zip (727 KB) 20150121_KSP.zip [email protected] mecki, 01/28/2015 07:50 AM
20150128_KSP.zip (184 KB) 20150128_KSP.zip [email protected] mecki, 01/28/2015 07:54 AM
20150128-Player2.log.zip (235 KB) 20150128-Player2.log.zip [email protected] mecki, 01/28/2015 07:57 AM

History

#1 Updated by SMILIE_AUT almost 11 years ago

#2 Updated by SMILIE_AUT almost 11 years ago

Still get the hang in 0.23 but this time the log only contains one error like

UnloadTime: 59.483635 ms
Kerbal Space Program(12017,0xa0eff1a8) malloc: *** mach_vm_map(size=8388608) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug

in Player.log

#3 Updated by basilevs almost 11 years ago

Adding logs for another OOM exception on scene change leading to a crash.

#4 Updated by Alo over 10 years ago

  • Status changed from New to Confirmed
  • % Done changed from 0 to 10

Confirmed happening in 0.23.5 with the same error in the console log. Total system memory of 8GB with only around 3GB used by KSP.

#5 Updated by basilevs over 10 years ago

Yet another crash dump for newer version.
build id = 464
2014-04-01_17-03-49
Branch: master

#6 Updated by basilevs over 10 years ago

Sorry, wrong file was attached in previous message.
build id = 464
2014-04-01_17-03-49
Branch: master

#7 Updated by basilevs over 10 years ago

I'll all of my crashdumps as most of them happen during scene change (and are in one way or another caused by memory leak).

#8 Updated by PthorStorm over 10 years ago

I have seen this same crash. It is always on launch, I never saw it before yesterday.

5/25/14 9:00:25.178 PM Kerbal Space Program [3359]: Kerbal Space Program(3359,0xb0b49000) malloc: *** mach_vm_map(size=790528) failed (error code=3)
  • error: can't allocate region
  • set a breakpoint in malloc_error_break to debug

I was finally able to launch the game after changing the settings to launch in a window in 1280x800. Previously I would launch it in full-screen at 1440x900.

#9 Updated by DSKY almost 10 years ago

I've been playing KSP for about a year now, and this problem has persisted the entire time, throughout the various versions that have been released. If anything, it seems to be even worse in 0.90.

Running OSX, I keep Activity Monitor open at all times. As a session progresses, the memory use keeps ticking upward. Whenever I do a scene change (or a quicksave), I cross my fingers. When the background sound stops I know it's "game over, man". Then it's the ol' beachball of death. CPU usage for KSP drops to 51% and I have to force quit and restart. Running lots of mods plus Active Texture Management. For as many people that are having the same issue (look through the forums & Google it), it is very disappointing to see this has a Low priority.

Here's a log file from my most recent crash. Moving from VAB to pad with a very small rocket (~20 parts).

#10 Updated by mecki almost 10 years ago

I'm also having the very same problem.
I already wrote an email and posted to the forum:
http://forum.kerbalspaceprogram.com/threads/108052-Constant-Crashes-asking-for-help
This is not my first thread about this problem.
I'm having this error since 0.23 on modded as well as on unmodded installs (all on OS X from Steam).
Sometimes I can't even get beyond the first change of scene and the game is hardly playable at the moment since version 0.90
It's really sad that this behavior doesn't get any improvement.

#11 Updated by mecki almost 10 years ago

Here's the correct log.

#12 Updated by mecki almost 10 years ago

and a new one…

There are so many people complaining about this:
http://bugs.kerbalspaceprogram.com/issues/3869

#13 Updated by TriggerAu over 8 years ago

  • Status changed from Confirmed to Needs Clarification
  • % Done changed from 10 to 0

#14 Updated by TriggerAu over 8 years ago

  • Status changed from Needs Clarification to Closed
  • % Done changed from 0 to 100

Closing this report out for now. If you find it is still occuring in the latest version of KSP please open a new report (and this one can be linked to it.) For best results, the wiki contains really useful info for when creating a report http://bugs.kerbalspaceprogram.com/projects/ksp/wiki.

You can also ask questions about the bug cleanup in the forum here: http://forum.kerbalspaceprogram.com/index.php?/topic/143980-time-to-clean-up-the-bug-tracker/ and tag @TriggerAu to get my attention

Also available in: Atom PDF