Jump to content

Skyrim failed to allocate memory


LilJur

Recommended Posts

Okay... So I was having some random CTDs. I read some other threads and stuff and they all suggested installing Crash fixes and Bug fixes.
I installed them with the notes of what to enable/disabled and I also added some suggested tweaks to Skyrim.ini and I cleaned with TES5Edit.

At first it seemed to help, my loadingtimes seemed to have decreased.
But... When I play 1-2 minutes my game will crash with the following message

http://i959.photobucket.com/albums/ae78/LilJur/crash_zpsj5oqchcp.jpg

I tried everything:
1. ENboost actually made it worse; when I tried load my savegame it instantly CTDed

2. Did that, still the same
3. Not in ShowRaceMenu
4. Did that, still the same
5. Not in ShowRaceMenu

 

So... Is it the tweaks in the Skyrim.ini that is causing this?
This is currently what mine looks like

 

 

[General]
sLanguage=ENGLISH
bUseThreadedTempEffects=1
bUseThreadedParticleSystem=1
bMultiThreadMovement=1
bUseThreadedMorpher=1
bBorderRegionsEnabled=0
[backgroundLoad]
bBackgroundLoadLipFiles=1
bLoadBackgroundFaceGen=1
bUseMultiThreadedFaceGen=1
bBackgroundCellLoads=1
bLoadHelmetsInBackground=1
bUseMultiThreadedTrees=1
bUseBackgroundFileLoader=1
[Archive]
sResourceArchiveList=Skyrim - Misc.bsa, Skyrim - Shaders.bsa, Skyrim - HD01.bsa, Skyrim - HD02.bsa, Skyrim - Interface.bsa, Skyrim - Animations.bsa, Skyrim - Meshes.bsa, Skyrim - Sounds.bsa
sResourceArchiveList2=Skyrim - Voices.bsa, Skyrim - VoicesExtra.bsa, Dawnguard - Original.bsa, Dawnguard - HD.bsa, HearthFires - Original.bsa, HearthFires - HD.bsa, Dragonborn - Original.bsa, Dragonborn - HD.bsa
[Display]
sD3DDevice="NVIDIA GeForce GTX 760"
fDefaultWorldFOV=85
fDefault1stPersonFOV=85
fdefaultfov=85
fNearDistance=20.0000
[Grass]
b30GrassVS=1
bAllowCreateGrass=1
bAllowLoadGrass=0
iMaxGrassTypesPerTexure=7
iMinGrassSize=70
[Water]
bReflectLODObjects=0
bReflectLODLand=1
bReflectSky=1
bReflectLODTrees=0
[Decals]
bDecalMultithreaded=1
[Papyrus]
fUpdateBudgetMS=1.2
fExtraTaskletBudgetMS=1.2
fPostLoadUpdateTimeMS=500.0
iMinMemoryPageSize=128
iMaxMemoryPageSize=512
iMaxAllocatedMemoryBytes=76800
bEnableLogging=0
bEnableTrace=0
bLoadDebugInformation=0
bEnableProfiling=0
[Animation]
bMultiThreadBoneUpdate=1

My system:
Windows 10 64-bit
i7-2700k 3,5Ghx (8CPUs)
16GB RAM
NVidia GeForce GTX 760
Link to comment
Share on other sites

Someone in the comments section of that mod Crash Fixes suggested reading their guide to help with a problem similar to yours. I will link it in this post. It might go over those Papyrus things you altered, and hopefully will tell you if you messed up or not.

 

Stability Performance Optimization ENB Configuration - a Comprehensive Guide:

http://www.nexusmods.com/skyrim/mods/74427/?

Link to comment
Share on other sites

Someone in the comments section of that mod Crash Fixes suggested reading their guide to help with a problem similar to yours. I will link it in this post. It might go over those Papyrus things you altered, and hopefully will tell you if you messed up or not.

 

Stability Performance Optimization ENB Configuration - a Comprehensive Guide:

http://www.nexusmods.com/skyrim/mods/74427/?

That guide also refers to using ENBoost but as I stated, when I used ENBoost my game crashed upon loading my savegame.

 

Also, I'm fairly sure it's not the Papyrus thing I altered.

Why? Because I didn't alter the Papyrus settings. Those are the default settings, which they also tell you to use in that guide

Link to comment
Share on other sites

 

That guide also refers to using ENBoost but as I stated, when I used ENBoost my game crashed upon loading my savegame.

 

Also, I'm fairly sure it's not the Papyrus thing I altered.

Why? Because I didn't alter the Papyrus settings. Those are the default settings, which they also tell you to use in that guide

 

 

I've never actually read the guide, so forgive me for not knowing. I've never had to look up how to make my game more stable, nor have I ever played with ini files or ENB boost to get my game to run. The only thing I can think of now is removing ENB boost and reverting your ini files to their Vanilla state and seeing if that helps at all. Also, consider running Skyrim Performance Monitor to see what your VRAM budget is when you play the game. If it is going over the 2GB limit your 760 most likely has, then something could be wrong. Does your game stutter a lot when you play, or have random freezes before everything CTD's?

Link to comment
Share on other sites

Make sure you have everything set up as below:

Tutorial:
Download and install SKSE if you don't have it already; Remember to run the game trough skse_loader.exe from now on.
Createa a file called skse.ini in Skyrim\Data\SKSE\ if you don't have it already, write inside:
[General]
ClearInvalidRegistrations=1
EnableDiagnostics=1
[Display]
iTintTextureResolution=2048
[Debug]
WriteMinidumps=1 ;<----you can leave this to 0
After that download and install Crash Fixes: http://www.nexusmods.com/skyrim/mods/72725/?
Download and install Bug Fixes as well: http://www.nexusmods.com/skyrim/mods/76747/?
After having installed it navigate to Skyrim\Data\SKSE\Pugins\CrashFixPlugin.ini
Modify in CrashFixPlugin.ini UseOSAllocators=1 follow the instructions above this line to make it work. You will need to download and install SKSE Plugin Preloader Link: http://www.nexusmods.com/skyrim/mods/75795/?
ENB can be used without graphics modification and will improve your performance in game by a lot (ENB can cause crash on Win10 follow this tread to fix it: https://forums.nexusmods.com/index.php?/topic/3089504-fix-for-skyrim-crashing-instantly-with-enb-on-windows-10/ ):
First download the latest ENB ( http://enbdev.com/mo...kyrim_v0308.htm ) in the archive, extract from the wrapper version: enbhost.exe, d3d9.dll, enblocal.ini and enbseries.ini to your Skyrim directory (where TESV.exe is located)
In enblocal.ini edit:
[GLOBAL]
UsePatchSpeedhackWithoutGraphics=false ;<-----set this to true leave to false if you have an ENB.
UseDefferedRendering=true
IgnoreCreationKit=true
ForceFakeVideocard=false
[MEMORY]
ExpandSystemMemoryX64=false
ReduceSystemMemoryUsage=true
DisableDriverMemoryManager=false ;<---------set to true for AMD GPUs.
DisablePreloadToVRAM=false
EnableUnsafeMemoryHacks=false
ReservedMemorySizeMb=64 ;<-----if using an ENB you know what goes here otherwise increase if you experience some stutter.
VideoMemorySizeMb=4064 ;<-----if using an ENB you know what goes here otherwise leave it like that.
AutodetectVideoMemorySize=false ;<-----set this to true leave to false if using an ENB
Link to comment
Share on other sites

 

Someone in the comments section of that mod Crash Fixes suggested reading their guide to help with a problem similar to yours. I will link it in this post. It might go over those Papyrus things you altered, and hopefully will tell you if you messed up or not.

 

Stability Performance Optimization ENB Configuration - a Comprehensive Guide:

http://www.nexusmods.com/skyrim/mods/74427/?

That guide also refers to using ENBoost but as I stated, when I used ENBoost my game crashed upon loading my savegame.

 

Also, I'm fairly sure it's not the Papyrus thing I altered.

Why? Because I didn't alter the Papyrus settings. Those are the default settings, which they also tell you to use in that guide

 

 

I cut & paste this from Crash Fixes Mod Page

 

Long Version

 

Made a plugin to help try and fix some of the crashes I've been seeing in http://www.loverslab.com/topic/46913-how-to-debug-ctd/. You can turn each individual fix on / off in the SKSE/Plugins/CrashFixPlugin.ini, default settings recommended but if you have problems with something and you know what you're doing you can change. If you want to see exactly what crashes are fixed (with addresses) and a small explanation of my best understanding of the crash then check the INI file or readme on the nexus mod page.

 

This plugin is meant to fix some common crashes AFTER you have followed STEP guides and sensible modding rules! It does not fix problems that come from modding irresponsibly or conflicts between mods.

 

How to use the memory allocator patch?

1. Open CrashFixPlugin.ini and find "UseOSAllocators=0"

2. Change it to "UseOSAllocators=1"

3. Download and install SKSE Plugin Preloader

4. Start game, if you get an error saying that memory patch could not be applied read the message for help, otherwise you're good to go.

(5.) Causes game to crash and you use ENB? Set ExpandSystemMemoryX64=false in enblocal.ini

(6.) Causes game to crash more frequently (especially with UNP RaceMenu sliders)? Try AlignHeapAllocate=1 in CrashFixPlugin.ini

 

Tips for additional stability:

(These are things I've observed and Not 100% fact!)

 

If you don't have some lines listed below in your INI it means they are set to default value.

 

Data/SKSE/SKSE.ini (not needed if UseOSAllocators=1 in CrashFixPlugin.ini):

 

Set DefaultHeapInitialAllocMB:Memory to 768. If you are using a lot of mods or higher uGrid than 5 then set 1024. Helps with CTD during save load, especially if you can load the save after qasmoke. Max value is 1280. If you are using ENB you may get CTD on startup with higher value than 768 and ExpandSystemMemoryX64 true in enblocal.ini!

Set ScrapHeapSizeMB:Memory to 256. Game can't use more than 256 of this and setting higher serves no purpose.

 

 

Skyrim.ini:

 

uExterior Cell Buffer:General - setting this too high causes crashes more, especially when game wants to unload many cells at once. If you set 0 or just remove it from your INI then game decides this and that's the best way.

bPreemptivelyUnloadCells:General - setting this 1 will mean game purges cell buffers and unload cell whenever it is possible. Default is 0 which means keep cell in memory until we need the space for other cells. I find 0 to be better, there's no reason to unload cell immediately, the buffer was implemented for a reason.

fPostLoadUpdateTimeMS:Papyrus - setting higher will cause longer loading. Mine is 500, seems to work well for me. You can try 750 or even 1000+ if you have a lot of script-heavy mods.

fUpdateBudgetMS:Papyrus - remove (this sets to default 1.2). If you have a lot of script heavy mods and a good PC you can set higher for example 2.0, however this can reduce your FPS when a lot of things are happening.

fExtraTaskletBudgetMS:Papyrus - remove (this sets to default 1.2). See above.

bEnableLogging:Papyrus - set 0. There's no reason to log papyrus unless you are developing a mod. Writing to file constantly is not good for performance. Papyrus logs have nothing to do with finding causes for crashes, although you can use this to find misbehaving mod scripts which can be helpful, I'd recommend to disable it for normal gameplay though.

bEnableTrace:Papyrus - set 0. See above.

Any other papyrus setting - delete. Changing the papyrus from default will just cause instability or lagged scripts.

iPresentInterval:Display - VSync enabled or disabled. You shouldn't need to change this as default value is 1 and that's good.

 

 

Safety Load (not needed if UseOSAllocators=1 in CrashFixPlugin.ini):

Install Safety Load if you have a infinite loading screen or freeze at any point. It fixes a bug in memory allocation that causes deadlock. Yes you still need this if you have SKSE memory patch, no they don't do the same thing. SKSE memory patch hides the problem of deadlock for longer because it allocates a larger memory block. If you don't have freeze or infinite loading screen at all then you don't need this!

 

 

Stable uGridsToLoad:

Don't use this. It causes memory corruption and does nothing unless you are changing your uGridsToLoad setting in INI often (I don't know why you would).

 

ENB:

I'm not an expert in ENB, but these two I recommend in enblocal.ini:

ExpandSystemMemoryX64=false

ReduceSystemMemoryUsage=true

 

Bashed Patch:

You should make this. It helps resolve a lot of conflicts between mods, especially related to leveled lists which can be a big problem. If there are no conflicts this doesn't really do any harm but even a small mod list usually has some.

 

LOOT:

LOOT can be a good tool to help resolve issues with ordering, but it is not perfect, sometimes it places mods incorrectly, use your best judgement. LOOT can also warn you about other potential problems with mods.

 

TES5Edit cleaning:

Do this! LOOT can tell you which mods need cleaning.

 

Playthrough:

Don't install or uninstall mods (with ESP files) in the middle of playthrough. Even changing the order can be very bad, especially if you use bashed patch or anything with SkyProc (requiem, perkus maximus). This of course applies to ESP files! Graphics mods and pure SKSE plugins are fine most of the time.

 

Common issues:

 

UseOSAllocators=1 and crashing when touching sliders in character creation or otherwise.

Set AlignHeapAllocate=1 in CrashFixPlugin.ini, downside is increased load time and increased memory usage.

 

UseOSAllocators=1 and crashing on game startup or loading save or shortly after.

Set ExpandSystemMemoryX64=false in enblocal.ini

 

Game says message box "running out of memory" and crashes.

Set ReduceSystemMemoryUsage=true in enblocal.ini

 

Ground textures flickering weird.

Set ExpandSystemMemoryX64=false in enblocal.ini

 

.

 

 

Short Version

ENB:

I'm not an expert in ENB, but these two I recommend in enblocal.ini:

ExpandSystemMemoryX64=false

ReduceSystemMemoryUsage=true

 

 

What happen to reading the Mod Page before using the Mod?

Link to comment
Share on other sites

@PeterMartyr
What is it with the people on this forum always assuming we didn't read/do something?
I always read the modpage when installing and when I encounter problems I also read the modpage to see if they say something about it. If that doesn't help me, I make a topic.

I did read it... And applied it.

 

@Project579

I think I made some progress.
Your tutorial is actually the reason I'm in this situation. I experienced frequent and random CTDs.
And you posted a part of this (without the enb part) in another topic. So I did as the tutorial says.
But like I said, it was posted without the enb part.

When I had the crash, it said I could fix it with ENBoost. So I installed ENBoost with this tutorial:


And that's when my game crashed on loading. But that tutorials doesn't tell me to change AutodetectVideoMemorySize

Now I have and I made some progress. It doesn't crash instantly with ENBoost. But after a few minutes I still get the error.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...