What's "Memory allocation failure - exciting programm"???

iamphp

Chieftain
Joined
Dec 15, 2005
Messages
16
I have updated to 1.09
About AD 7XX, when I save or autosave the game.
It throw a error:
Memory allocation failure - exciting programm
Reason: bad allocation, File:.\CvAppMainLoop.cpp, Line:261

The game close itself.
And the save file always is 2,304 bytes.
Why???
 
It means that it couldn't get a peice of memory it was trying for. Do you have enough memory and virtual memory?
 
My CPU is Intel PM 1.73GHz
Memory is 1.25GB
Virtual memory is 4080MB

My map is DIY.
Size is 124X135.
There are 18 Civs.
 
Sounds like you've got plenty.
 
On the other hand, when I play a custom huge game, I can save easily.
The time is 1830 AD. And the file size is 1.10 MB.
Everything is normal.
Who can help me???
 
If I try loading a huge map with all high details... it will "never" load.. as in, i waited 2 minutes for it to load, and it just stopped at "Finishing" so i decided to end-task.... but wait, CTRL-ALT-DEL does nothing at that time! So i had to reset my comp. :confused:

- P4@3.2
- 1024 RAM
- ATI 9800 PRO
 
MasterOwnage said:
If I try loading a huge map with all high details... it will "never" load.. as in, i waited 2 minutes for it to load, and it just stopped at "Finishing" so i decided to end-task.... but wait, CTRL-ALT-DEL does nothing at that time! So i had to reset my comp. :confused:

- P4@3.2
- 1024 RAM
- ATI 9800 PRO

It will take several minutes to enter the game after "finishing" being shown.
 
iamphp said:
It will take several minutes to enter the game after "finishing" being shown.

Actually, I also hv problems in late time in huge game. My computer is 1G RAM, AMD 3200+, 256 VRAM.
In early stages, everything is OK, but in late times, as 1900+, there will be display problem and crash in game.
The game can play for several turns from loading, but will shut down after 3-5 turns. :confused: :( :sad:
 
I'm having the same problem, can't get past a certain point without a memory allocation failure, and the last autosave is always corrupt. Have downloaded the patch, updated my drivers, no go. Grrrr. :mad:
 
Maybe something to do with
Code:
; Break on memory allocation order #
in the .ini file (last entry) - though I wouldn't know how you would have to change this to fix the problem... maybe set it to 0 (default seems to be -1)?
 
I think it is due to the size of the buffer that used to save file. It is so small that memory overflows.
The only way is to modify the source code and increase the buffer size.
 
I tried Harkonnens solution, and it didn't help, in fact now I can't load the game at all.

[pissed] [pissed] [pissed]

I'm going to throw this game in a bottom drawer and rediscover it when they have a decent patch out.
 
There is a chance that there's a bad sector in your RAM and Civ4 has been the first software to "find" that bad sector. That would also explain your corrupted save files too. So I'd go and download MemTest (google for it) and stress test your RAM to make sure that it's not bad at some spot. (Same thing for your hard drive). Bad RAM can be very difficult to spot unless you are specifically looking for it. You can think your RAM is just fine, but all it takes is one program to exploit that bad sector.
 
iamphp said:
My CPU is Intel PM 1.73GHz
Memory is 1.25GB
Virtual memory is 4080MB

My map is DIY.
Size is 124X135.
There are 18 Civs.
That's your problem there. You don't have enough ram to run this oversize huge map. When I load your saved game up, my total memory was 1.3gb. Since you don't have the map revealed yet this will only get worst late in the game. After I went to worldbuilder (very slow getting there which is common with oversize maps) I revealed all squares to my civ then return to game. It was now using over 1.8 gb of ram. Civ 4 uses a lot of memory at once especially when it comes to the map. So I wouldn't reccommand running this map without atleast 2gb of ram or you will run into serious memory problems late in the game.

I tried to run superhuge maps also and found out I start having serious problems when I maxed out all my ram (2Gb). I would be lucky if I could finished this map since it will probably get over 2gb late in the game.

P.S. I once tried the impossible size map ( I beleive it was 240 x 160) with the Atlas program which I will eventually got the same memory error. I checked my auto save and saw my save double in size from the last auto save. It was 1.5 mb which 4 turn before was 750kb. The 1.5 mb save wouldn't load. Civ 4 just isn't designed to run these superhuge maps.
 
jdurg said:
There is a chance that there's a bad sector in your RAM and Civ4 has been the first software to "find" that bad sector. That would also explain your corrupted save files too. So I'd go and download MemTest (google for it) and stress test your RAM to make sure that it's not bad at some spot. (Same thing for your hard drive). Bad RAM can be very difficult to spot unless you are specifically looking for it. You can think your RAM is just fine, but all it takes is one program to exploit that bad sector.

I have checked my RAM.
All are OK.
 
Smidlee said:
That's your problem there. You don't have enough ram to run this oversize huge map. When I load your saved game up, my total memory was 1.3gb. Since you don't have the map revealed yet this will only get worst late in the game. After I went to worldbuilder (very slow getting there which is common with oversize maps) I revealed all squares to my civ then return to game. It was now using over 1.8 gb of ram. Civ 4 uses a lot of memory at once especially when it comes to the map. So I wouldn't reccommand running this map without atleast 2gb of ram or you will run into serious memory problems late in the game.

I tried to run superhuge maps also and found out I start having serious problems when I maxed out all my ram (2Gb). I would be lucky if I could finished this map since it will probably get over 2gb late in the game.

P.S. I once tried the impossible size map ( I beleive it was 240 x 160) with the Atlas program which I will eventually got the same memory error. I checked my auto save and saw my save double in size from the last auto save. It was 1.5 mb which 4 turn before was 750kb. The 1.5 mb save wouldn't load. Civ 4 just isn't designed to run these superhuge maps.


These are two questions of different nature.
Your save may be correct.
However, my save must be unusual.
The size always is 2,304 bytes.
 
Back
Top Bottom