v22 bugs and crashes

I have same problems later in game (reneissance and further) ... every 4 turns or so Memory allocation error.

I have 8 GB RAM, Vista Ultimate 64bit, and 6870 Radeon with 1Gb RAM. I have set video settings to low at that point but it doesnt help.

Memory usage in Task Manager shows Civ using 2.7 Gig before it crashes, and i have like 30% memory free.

Can it be some caching/paging issues? Or maybe any other tips?

Are you playing the regular 22.1 or a SVN version? Cause you have way more than enough PC Specs. But then again its a Vista:sad:
 
SVN version, but this problem stays with me for several months.

[edit] forgot to mention - this, of course, happens more often on gigantic maps (playing latest GEM atm)
 
The /3G switfh will never let Civ use more than 3G (that's the absolute upper limit it can ever address) independent of how much physical memory you have (see http://blogs.technet.com/b/askperf/archive/2007/03/23/memory-management-demystifying-3gb.aspx if you really want the gory details), however you should be OK UP TO 3G, so at 2.7 used you really should be good for another 300M or so.

I can't really explain MAFs on your system with significantly under 3G used by the process. If you watch in task manager do you see the memory usage going up progressively from turn to turn? If so by approx hopw much?
 
I can't really explain MAFs on your system with significantly under 3G used by the process. If you watch in task manager do you see the memory usage going up progressively from turn to turn? If so by approx hopw much?

Maybe there are spikes in memory usage that aren't properly displayed in the taskmanager. My MAFs were mostly when moving the map or at AI turn so if there is a bit of resource loading/unloading going on then this might push Civ4 over 3GB. Will see if I can find a way to have windows save the memory usage of programs.
 
SVN version, but this problem stays with me for several months.

[edit] forgot to mention - this, of course, happens more often on gigantic maps (playing latest GEM atm)

I tell you what i have an i7 Dual Core Win7. 8GB memory, a 7500 series ATI dual graphics card 1 GB, and if you dont have alooooot of patience after Renaissance Era, you should NOT use any Gigantic Maps. Not on a 3GB system sorry. Its just ok up till then, but it will get loooger and loooooger in-between turns. And even my PC will slow down so much i just delete the game. No offense to the maker of the GEM map, its just to big for C2C, sorry everyone.

Try using the Standard Earth map by Hydro, or the one in the map area. JFYI
 
@SO,
How many Civs do you use on that map? I'm curious to know.

Also do you use Barb Civ or Barb World?

JosEPh :)
 
Got an error I have never seen before when attempting to load a saved game. Got a message saying "This file has been protected to ensure that mod assets have not been changed".
 
Got an error I have never seen before when attempting to load a saved game. Got a message saying "This file has been protected to ensure that mod assets have not been changed".

That is Win7 doing its security thing. I don't have Win7 yet so I can't tell you how to fix it, but it has something to do with having the right to write to the folder.
 
I tell you what i have an i7 Dual Core Win7. 8GB memory, a 7500 series ATI dual graphics card 1 GB, and if you dont have alooooot of patience after Renaissance Era, you should NOT use any Gigantic Maps. Not on a 3GB system sorry. Its just ok up till then, but it will get loooger and loooooger in-between turns. And even my PC will slow down so much i just delete the game. No offense to the maker of the GEM map, its just to big for C2C, sorry everyone.

Try using the Standard Earth map by Hydro, or the one in the map area. JFYI

iMO that's the wrong attitude to take to it. I think the correct way to think of it is 'C2C is too slow for gigantic maps'. The answer is to continue pressing for a faster c2c. It's much faster now than it used to be, but if people still see their turn times go through the roof at some point, post an illustrative save and I'll see what I can do about it.
 
It doesn't matter really what rig I have , on gigantic maps I am getting MAFs here and there, especially when trying to reload game from the save when playing. 980X with 12G and 560Ti 2GB. C2C smokes my 6 cores, sniffs in without blink through one nostril ;)
 
The /3G switfh will never let Civ use more than 3G (that's the absolute upper limit it can ever address) independent of how much physical memory you have (see http://blogs.technet.com/b/askperf/archive/2007/03/23/memory-management-demystifying-3gb.aspx if you really want the gory details), however you should be OK UP TO 3G, so at 2.7 used you really should be good for another 300M or so.

I can't really explain MAFs on your system with significantly under 3G used by the process. If you watch in task manager do you see the memory usage going up progressively from turn to turn? If so by approx hopw much?

I will try 3Gb switch when i get home from work.

Memory usage goes up each turn
today morning (before work) i ran 2 turns - it was 2334Mb upon loading, 2530 after 1st turn, 2580 after 2nd.

When i look at task manager window upon crashing it always around 2.7gig used memory by civ4, with 45-50% memory used by civ, 20% by firefox (i have lots of windows open), and 5% or so for rest of window programs/plugins/processes, so i have 15-20% free memory.

Does it have something in common with caching options in .ini file in BTS directory or maybe BreakOnAlloc variable in same file?
 
Got an error I have never seen before when attempting to load a saved game. Got a message saying "This file has been protected to ensure that mod assets have not been changed".
This means you have the game option enabled that protects savegames from asset changes.
It is highly recommended to disable that for two reasons:
1) C2C updates often (and savegames stay compatible) and that option prevents you from updating.
2) The way the main menu music is changed between C2C runs works by changing an asset file so it breaks that option.
 
I am getting the following error

Code:
Traceback (most recent call last):
  File "BugEventManager", line 363, in _handleDefaultEvent
  File "autologEventManager", line 896, in onCityBuildingUnit
RuntimeError: unidentifiable C++ exception

In autologEventManager this is the highlighted line
Code:
	def onCityBuildingUnit(self, argsList):
		if (AutologOpt.isLogBuildStarted()):
			pCity = argsList[0]
			iUnitType = argsList[1]
			if pCity.getOwner() == CyGame().getActivePlayer():
				[B]zTurns = pCity.getUnitProductionTurnsLeft(iUnitType, 1)[/B]
				message = BugUtil.getText("TXT_KEY_AUTOLOG_CITY_PRODUCES_UNIT", (pCity.getName(),gc.getUnitInfo(iUnitType).getDescription(), zTurns))
				Logger.writeLog(message, vColor="Purple")
 
While browsing forums for possible fix of my problem, i found this:

http://forums.civfanatics.com/showthread.php?t=224178

Ok, this is my first post in these forums and the main reason is because like so many of you I had the MAF errors in Warlords which annoyed me so bad. I mean, how could I play high end games like STALKER and Supreme Commander and have zero issues but have Civ IV screw up. I am running on Vista Business 32bit and this fix is geared toward any Vista OS but will work in XP too as far as I am aware of. I acctually got the idea from a fix for Supreme Commander and FSX where there were nastly bugs of CTD errors when to much memory was being used. I decided to give the fix a shot for CIV and see what would happen.... what happened is 3 hours of smooth bug free play in Warlords when the whole map had been discovered!

So here is my gift to you all.... enjoy!



Try this only if you have at least 2 GByte of RAM and at your own risk.

- First download the explorer from http://www.ntcore.com/exsuite.php

- Next make a copy of Civ4Warlords.exe. Than start "CFF Explorer" and open the orginal Civ4Warlords.exe file.
- Now go to NT Header/File Header and click File Header. There you will find a button labeld "click here". Click it. And select the checkbox "App can handle> 2gb adressest "
- Save the modified EXE, overwrite the orginal one. (Note in Vista you must be running CFF Explorer in Administrator Mode).

If you run Windows Vista 64 or Windows XP 64 youre ready to go and dont need to read on. The rest is only for Windows Vista 32 and maybe Windows XP 32bit.

- Now we need to make Windows Vista (32-Bit) ready to support more than 2 GByte.
- Open a command prompt with Administration rights. You find it under "Programs->Accessories->Command prompt" click right and select "run as administrator".
- Enter "bcdedit /set IncreaseUserVA 3072" (without quotes) in the command window and press enter.
After that restart windows
- For Windows XP there is a similar setting for the boot.ini, but I am not sure what it is, should be found be google.

ENJOY!


Will give it a try when i get home, meanwhile i want to ask if anyone have tried this before and whether it worked or not?
 
Try this only if you have at least 2 GByte of RAM and at your own risk.

- First download the explorer from http://www.ntcore.com/exsuite.php

- Next make a copy of Civ4Warlords.exe. Than start "CFF Explorer" and open the orginal Civ4Warlords.exe file.
- Now go to NT Header/File Header and click File Header. There you will find a button labeld "click here". Click it. And select the checkbox "App can handle> 2gb adressest "
- Save the modified EXE, overwrite the orginal one. (Note in Vista you must be running CFF Explorer in Administrator Mode).
That is no more needed nowadays as both the BtS exe and the DLL are compiled to be large address aware.

If you run Windows Vista 64 or Windows XP 64 youre ready to go and dont need to read on. The rest is only for Windows Vista 32 and maybe Windows XP 32bit.

- Now we need to make Windows Vista (32-Bit) ready to support more than 2 GByte.
- Open a command prompt with Administration rights. You find it under "Programs->Accessories->Command prompt" click right and select "run as administrator".
- Enter "bcdedit /set IncreaseUserVA 3072" (without quotes) in the command window and press enter.
After that restart windows
- For Windows XP there is a similar setting for the boot.ini, but I am not sure what it is, should be found be google.

ENJOY! [/I]

Will give it a try when i get home, meanwhile i want to ask if anyone have tried this before and whether it worked or not?
This is commonly known as the /3GB switch and yes, definitely recommended for C2C on a 32bit OS. Search for it on this forum for more information.
 
That is no more needed nowadays as both the BtS exe and the DLL are compiled to be large address aware.


This is commonly known as the /3GB switch and yes, definitely recommended for C2C on a 32bit OS. Search for it on this forum for more information.

Ah, thanks. Yes, i have read alot today about 3GB switch, havent tested it yet. Will there be any difference for vista x64? As i understood it only relevant to x32 bit OS.
 
Ah, thanks. Yes, i have read alot today about 3GB switch, havent tested it yet. Will there be any difference for vista x64? As i understood it only relevant to x32 bit OS.
64 bit operating systems in general don't have that problem. They will always provide a full 4GB address space to 32 bit programs.
 
64 bit operating systems in general don't have that problem. They will always provide a full 4GB address space to 32 bit programs.

I dunno what to do then ... Maybe install Windows7 64 bit as another boot option, install civ under it and see if it helps?

Or am i pressing game/system memory boundaries even with my rig setup (core2duo8400, 8Gb ram, 6870 ATI video)?

Is it possible AT ALL playing GEM or gigantic maps at industrial era without MAFs every 3-4 turns?
 
Got two errors: SVN 2408

1. GEM map, Capital i put the unit gatherers on auto-make, but it quits making them with 1-4 turns??

2. Minidump from CTD??

I am using the Nazi Civ so you might need to put that back in your alt timelines to get it to work correctly??
 
I will try 3Gb switch when i get home from work.

Memory usage goes up each turn
today morning (before work) i ran 2 turns - it was 2334Mb upon loading, 2530 after 1st turn, 2580 after 2nd.

When i look at task manager window upon crashing it always around 2.7gig used memory by civ4, with 45-50% memory used by civ, 20% by firefox (i have lots of windows open), and 5% or so for rest of window programs/plugins/processes, so i have 15-20% free memory.

Does it have something in common with caching options in .ini file in BTS directory or maybe BreakOnAlloc variable in same file?

Could you post your save game please. I t souns like you're hitting quite a nasty memory leak due to some circumstance in your particular game.
 
Back
Top Bottom