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

iamphp said:
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.
2,304 bytes or kb? Your saved game file reads 1.02 mb (after a few turns 1.17mb). It seems if you don't have enough ram to run these superhuge maps then you'll run into this memory error. I've notice the saved file will then doubles in sizes as if it saving everything twice. I found if you play on maps bigger than huges you will run into memory trouble if your pc start swapping files. It's seems Civ4 needs quick access to memory especially when it comes to the map.
 
Smidlee said:
2,304 bytes or kb? Your saved game file reads 1.02 mb (after a few turns 1.17mb). It seems if you don't have enough ram to run these superhuge maps then you'll run into this memory error. I've notice the saved file will then doubles in sizes as if it saving everything twice. I found if you play on maps bigger than huges you will run into memory trouble if your pc start swapping files. It's seems Civ4 needs quick access to memory especially when it comes to the map.

Please download AD0735.rar.
You Gain the world map from CYRUS.
Save...
 

Attachments

  • test.GIF
    test.GIF
    2.7 KB · Views: 203
I decided to run this saved until 1000 ad.
740ad= 1,419 Kb save file using 1.6gb of total memory ( around 400mb running Xp and other programs like firewall,etc.)
800ad =1,456kb saved file using almost 1.7gb of ram
900ad =1,517kb saved using over 1.8gb of ram
1000ad =1,570kb saved using 1.9gb of ram
As you can see I got only 100mb lefted before I start having serious problems. It's already taking over a minute between turns so the last thing I need it to start swapping file with the hard drive.
It seems to me you are running this game to push your pc and civ4 to the limit. Well, you found your limit especially with just 1.25gb of ram.
I tried to load a autosaved game up while in the game. Just as I thought, I got that memory error since I had very little freed memory. I could load the 1000ad saved game after reloading civ4 since then my memory is freed up.
It seems to me you are losing data between all the file swapping which screw up even more while it's autosaves.
 
You must do according to my words , will just discover the problems.
OK?
1. Gain the world map from CYRUS;
2. Save Game.
 
Iamphp this doesn't make any difference to me since I got enough ram to handle the whole revealed map. From what I can tell Civ4 tries it's best to keep the whole (revealed) map in ram for instant access so you can click of the mini-map and quickly see what happening at any location. When you run out of ram the program got to start put some of the map on your hard drive which is where the trouble starts. As more and more of the map is being swapped the worst the problem becomes especially with these superhuge maps.

Before you traded maps with Cyrus the game didn't use ram for those black out areas but once you traded maps this revealed the whole map which required more ram. Thus you reached the limit how far you can go with 1.25mb of ram. There is a limit with civ4 on how much the game/PC can handle swapping files until it start crashes and/or starts losing programs.
One time on my older pc, civ4 must have caused my pc to lost/misplace my graphic card driver from swapping so many files since my pc changed to 8-bit 800X600 with no sign of my graphic card.
With the map revealed my saved file was 1,416kb for 740.
 
Sorry!
It is my wrong.
I play the save file in 2G memory.
I can save it easy.
But why do civ4 not use the virtual memory in saving game???
 
Your map is pushing your pc and civ4 to the limit so there's no substitute when it comes to ram. Depending too much on virtual memory will cause the hard drive to become your worst bottleneck. From my experience virtual memory isn't ideal for games especially those who has a lot of map data like civ 4 and flight sims.

Even with ram this game may eventually crash. Yet I did notice after load and playing after 1000ad the total memory stay around 1.8 to 1.9Gb so it may be possible with 2 gb of ram. If you like to play these superhuge maps then you would have a better chance with 2gb of ram. Maybe future patches or expansions will make civ4 more stable to handle these superhuge maps with less ram.
 
I don't mind the programes run slow.
But it due to the error of saving game.
That is what I can't accepted.
It should be the algorithmic bug of saving game.
It is not worth the candle to achieve speed at the cost of security.
 
Hey guys just found this thread when looking for this problem and I can only add I have it too with Warlords 2.0x (dunno the exact version, but it's the latest). I have a pretty good system in my opinion (2 GB XMS 2 Corsair Ram - definitely not corrupt, E6600, X1950 Pro with 512 MB, Vista 64-bit with 3 GB Page File and 2 GB Ready Boost Space).

I have download a mod called SmartMap which allows me to theoretically create games with 512x512 maps, but the loading process crashes after a few minutes. The largest map I can load and get into game is 140x140 but the game crashes after the 1st turn (when alle initial cities are created). Now I am playing a 104x104 map with 18 civs and around 1760 AD I can't continue playing because I always get the bad allocation memory error no matter what I do. I thought before that Oblivion or Sim City 4 is hefty at 1,2 GB memory usage but then I discovered Civ IV to use 1,5+ GB Ram that's insane. I mean why doesn't it simply page some stuff?! I can't possibly believe that the game would need 1,5 GB in memory all the time. Since I have Vista 64-bit I can allocate more than 2 GB to one application (not possible with XP 32-bit) so I consider upgrading to 4 GB now and see if it works better then, I'll let ya know if I decide to do so and it helps :)
 
I thinks I got the fix. Modify your .ini file. Civ uses virtual memory in a way that windows doesn't like, hence the crashes. Putting the control back into window's hand seems to fix the inability to run the game, although I've had a few anomalies, namely some barbarian bears appear, in a no barbarian game, when tech is in the modern era.

The .ini file is in your
C:\Documents and Settings\Username\My Documents\My Games\Sid Meier's Civilization 4
folder.

I attached mine, saved as a .txt. (It really is just an ascii document anyway)

The lines in particular I think are the problem are:

; Set to 1 to page units out when non-visible
DynamicUnitPaging = 0

; Set to 1 to page unit anims out when the unit is non visible
DynamicAnimPaging = 0

; Disable caching of file system (may slow initialization)
DisableFileCaching = 1

; Disable caching of xml and file system (may slow initialization)
DisableCaching = 1

; Disable PAK memory mapping (May affect performance)
DisablePAKMemoryMapping = 1
 
Hi,

maybe you have solved your Problem with the message" bad allocation...". I had the same problem and what I do to solved this, I have just defraged my harddisk and it works again. I had yesterday play for 5 hours! and it still runs!
 
Don't you all get it? it's bad programing from firaxis there is nothin wrong with our RAM. The ViSa mod team have found a solution and they have solved this MAF problem which they are going to include with their next update V 3.0 but it will probably work only when playing their mod?!?!?!. They found something wrong with the civ.exe file or something like that read more in their thread.
 
Don't you all get it? it's bad programing from firaxis there is nothin wrong with our RAM. The ViSa mod team have found a solution and they have solved this MAF problem which they are going to include with their next update V 3.0 but it will probably work only when playing their mod?!?!?!. They found something wrong with the civ.exe file or something like that read more in their thread.

All you complainers hush up. If you had bought an average computer like the rest of us then there woudn't be a problem going large.
My system has 2GB of ram with 3.0 processor and a 258mb G card. Their called specs! go an meet some! Serious man, Im sick of complaints here. If you guys don't put up, then ya'll need to shut up. :cool:
Civ4 is the greatest!
 
Don't you all get it? it's bad programing from firaxis there is nothin wrong with our RAM. The ViSa mod team have found a solution and they have solved this MAF problem which they are going to include with their next update V 3.0 but it will probably work only when playing their mod?!?!?!. They found something wrong with the civ.exe file or something like that read more in their thread.
I've read someone outside VISA mod is working on a fix. From what I've read, MAF seems to shows up with the VISA mod or playing super-huge maps like 124X135 for example.
 
I've read someone outside VISA mod is working on a fix. From what I've read, MAF seems to shows up with the VISA mod or playing super-huge maps like 124X135 for example.

OMG people, it's a fault made by Firaxis, it has nothing to do with RAM and mods, they only make the error more likely to occur. Nothing more nothing less. And yes, there is a fix being made:)
 
All you complainers hush up. If you had bought an average computer like the rest of us then there woudn't be a problem going large.
My system has 2GB of ram with 3.0 processor and a 258mb G card. Their called specs! go an meet some! Serious man, Im sick of complaints here. If you guys don't put up, then ya'll need to shut up. :cool:
Civ4 is the greatest!

Not all of us have rich parents;)
 
All you complainers hush up. If you had bought an average computer like the rest of us then there woudn't be a problem going large.
My system has 2GB of ram with 3.0 processor and a 258mb G card. Their called specs! go an meet some! Serious man, Im sick of complaints here. If you guys don't put up, then ya'll need to shut up. :cool:
Civ4 is the greatest!

I have a Core2Duo 2,6hhz with 2gb ram and 512x2 mb graphics...now if that's not meeting the specs then I don't know what. I won't shut up ;) and I still belive Firaxis is to blame. :crazyeye:
 
OMG people, it's a fault made by Firaxis, it has nothing to do with RAM and mods, they only make the error more likely to occur.
Why is that? I've never got this error outside of mods before and seldom even then (usually from super-huge maps). As you know, someone did report here they got this error before outside of mods but didn't report it to Firaxis.
Firaxis as with every developer I've seen will not back up Mods. There is always weaknesses of any program which is why even changes (patch) done by the company themselves will sometimes create more bugs. (Galciv2 updates has known to have bugs as a side effort cause by making changes to the game.)

I glad someone has found a way around this bug since the Visa mod is a good one but I doubt serious Firaxis as with any other company will take the blame for anything that shows up mostly in mods.

Edited: I wonder just how many players here got this error by using the saved game above in post 22? So far I haven't got this error from this saved game.
 
Back
Top Bottom