Jump to content

Can't progress due to crashes.


Recommended Posts

So I've been driving around Kerbin a bit hoping to place a vehicle on on the North Pole. I did this once before with little trouble and now I'm doing it again in a bigger rover of roughly 130 parts. I had no FPS problems at first and no kraken encounters until this happened. I build it to be quite physically stable. However, a short while ago I noticed small lag spikes from green to red that dramatically increased in frequency with time dialation enabled. I ignored them and kept on driving for something to the order of an entire game day.

Then the game suddenly CTD'ed with no warning or error message. I'm starting to suspect a memory issue. I reloaded it six times and the game reliably crashed every time I passed a large hill. Having passed 2/3rd of the road to the North Pole, I got a bit frustrated and tried different tricks like turning down my graphics settings or looking straight down at the ground while driving. It made little to no difference, the game has decided to want to crash at that point. The game also crashes if I try to save, zoom out very far or go to the space center.

Latest KSP version.

Windows 10 Pro, 64 bit
8 GB of RAM
Intel i7-4820 3.7 GHz
Gainward Geforce 770, 2 GB VRAM edition
SSD only system



Error logs and save: [URL]http://www.filedropper.com/ksperror[/URL]

Is it possible to recover this save? I would like to complete that journey a lot.

[IMG]http://i.imgur.com/uIH9sxl.jpg[/IMG] Edited by Tricky14
Link to comment
Share on other sites

Hi Tricky14.

Your save seems to be fine, there is nothing wrong with it causing this issue, but your suspicions are correct and this is a memory issue, the error was written to the log but there is no in-game warning, the only method of monitoring memory use in-game is to keep the debug window open on the performance tab, otherwise you can monitor the memory with task manager.

Here's KSP running out of RAM in the error.log
[code=]KSP.exe caused an Access Violation (0xc0000005)
in module KSP.exe at 0023:00481502.

Error occurred at 2015-11-26_092252.
C:\Steam\steamapps\common\Kerbal Space Program\KSP.exe, run by yours truly.
67% memory in use.
0 MB physical memory [2650 MB free].
0 MB paging file [1820 MB free].
0 MB user address space [67 MB free].
Write to location 00000000 caused an access violation.[/code]

And here's the output_log.txt's entry.
[code]DynamicHeapAllocator out of memory - Could not get memory for large allocationCould not allocate memory: System out of memory!
Trying to allocate: 963216B with 32 alignment. MemoryLabel: VertexData
Allocation happend at: Line:489 in
Memory overview


[ ALLOC_DEFAULT ] used: 356480013B | peak: 0B | reserved: 384213669B

[ ALLOC_GFX ] used: 1013503461B | peak: 0B | reserved: 1158196264B

[ ALLOC_CACHEOBJECTS ] used: 66924B | peak: 0B | reserved: 12582912B

[ ALLOC_TYPETREE ] used: 7300B | peak: 0B | reserved: 4194304B

[ ALLOC_PROFILER ] used: 485928B | peak: 0B | reserved: 8388608B
Could not allocate memory: System out of memory!
Trying to allocate: 963216B with 32 alignment. MemoryLabel: VertexData
Allocation happend at: Line:489 in[/code]

This occurred because the PQS terrain cache will grow and shrink as you cover ground on a planet or moon, and at the point of the crash it needed to grow but no memory was available, being a 32bit application KSP is limited to a 32bit address space.

I can drive your craft without it crashing but I don't have much RAM left, with my gfx settings on maximum except for half res textures and in a window (1024x768) KSP used around 2800 to 2900 megabytes, after lowering the terrain detail, scatters and render quality to half KSP uses about 1900 to 2100 megabytes.

Your lag is also being caused by reaching the memory limit, as KSP is caching stuff to the page file.

All I can suggest here is that you turn down your graphics further, try windowed mode, try a lower resolution and reduce the number of other programs running that might be using the page file.

Also, exiting to the main menu will clear the PQS cache completely.

[U][URL="https://www.dropbox.com/s/fbl72szga3hpvs4/tricky14.zip?dl=0"]Here's your craft past the hil[/URL][/U]l, you are a far more patient driver than I am.
Link to comment
Share on other sites

Thank you! I just like the early exploration part as much as the space exploration part. There is so much to do on Kerbin and driving is a hoot! I just wish there were better wheels earlier in career mode, so every now and then I do something like this in sandbox mode. I just set some kind of goal and go for it. :)

I'll try to get to the main menu next time it happens, although I wonder if it will just crash again.
Link to comment
Share on other sites

Okay there's another trick you could try, I can't guarantee it'll help though, as these are [U][URL="http://docs.unity3d.com/Manual/CommandLineArguments.html"]Unity engine commands[/URL][/U], not coded in by Squad.

If you start KSP via a shortcut, in the target box add one of these (and only one) after KSP.exe

" -force-opengl"

" -force-d3d11"

Yes there's a space in front of them, and they may break completely if you're fullscreen, also they can mess up various graphics in KSP (editor, text).

But they may help you reach the pole as they both use memory more efficiently than D3d9 (the default).
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...