Memory Leak?

Ok, then I'll get it for you if I'm not distracted by civ4 too much ;)

OH DUH! I just sent Harkonnen my dxdiag (and put up link that I can't get rid of now) that has my OS in it and yep home edition to be more precise: Windows XP Home Edition (5.1, Build 2600) Service Pack 2

I doubt the registry will vary much from home and pro but I'm not too familaur with that area of registry... I hardly ever go there... It is pretty bad when you can remember by heart several registry paths... :D
 
oldStatesman said:
Thanks for the explanation Hark - it is nice to know what your logs show!

I just suffered the killer BSOD - got a stop error 0x24, followed by an unbootable system with a stop error of 0x7b. Short explanation, The first was the file system became corrupt, the second no valid system files because of the corruption. Civ 4 itself did not cause this directly, but indirectly becasue it corrupted a system write when it CTD, causing the first error, which caused the second.

I had to re-install from ASR backup to recover. Oh well, the silver lining is that I have a clean OS again - since the most recent backup I had was from early October when I did a re-install.

Because I keep My Documents and apps and other data on different partitions I suffered no data loss, just have to re-install the apps.

Anyway, back on topic, I have a request for someone (who is a techie and knows how to do this - others, I appreciate it but if you do not understand the registry, please do not try as if you mess it up you can crash your system, I do not want that to happen)who is not experiencing problems - I would like to compare the registry values in XP Pro sp2 of the following registry key to mine to see if anything is different there as far as XP memory management.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\

(Ignore the extra space in the word 'control' above, for some reason when I post this it adds a space)

You can just export the key values in Regedit and post it here or PM it to me in a text file.

TIA!

When I get home tonight I will post what ever you need. Is there any keys you are looking for or the complete entry.
 
blue3c said:
When I get home tonight I will post what ever you need. Is there any keys you are looking for or the complete entry.
There are about 8 or 10 values under the session manager key - I'd like to look at all of them. These have to do with how XP handles the page file, kernal memory usage, etc.
 
oldStatesman
My branch for memory management is attached
(WinXP Professional SP2, 512Mb physical RAM, 128Mb video RAM, 64Mb AGP apperture size, 2048-2048Mb swap size)
 

Attachments

Ok, here's the fix which might alleviate SyncInput problem:

You will need these:
http://www.sampo.ru/~headden/python24.dll
http://www.sampo.ru/~headden/MT/PatchByHarkonnen.dll

Put both into your civ4 game folder overwriting python24.dll

If you have already downloaded python24.dll to launch profiling version, don't bother redownloading it, only 'PatchByHarkonnen.dll' differs.

This version does not profile anything; the only thing it does is creating multithreading-aware D3D device object (originally it's not with civ4). I'd like to know if SyncInput=0 still crashes with this version of DLL.

Thank you.
 
Harkonnen said:
oldStatesman
My branch for memory management is attached
(WinXP Professional SP2, 512Mb physical RAM, 128Mb video RAM, 64Mb AGP apperture size, 2048-2048Mb swap size)
Thank You!

I just got word I am to start a new contract in the morning...unexpected, but good as I have not worked for about a month...so I definately will not get to this until Sunday - but I will look into it - I have some suspicians about the values here (or that are not here); but I don't want to speculate until I do a bit more research and see some different configs, as they may be groundless.
 
Harkonnen said:
Ok, here's the fix which might alleviate SyncInput problem:

You will need these:
http://www.sampo.ru/~headden/python24.dll
http://www.sampo.ru/~headden/MT/PatchByHarkonnen.dll

Put both into your civ4 game folder overwriting python24.dll

If you have already downloaded python24.dll to launch profiling version, don't bother redownloading it, only 'PatchByHarkonnen.dll' differs.

This version does not profile anything; the only thing it does is creating multithreading-aware D3D device object (originally it's not with civ4). I'd like to know if SyncInput=0 still crashes with this version of DLL.

Thank you.

yep it does.
not in my 2nd turn nor in 3rd. nope 1st turn, while i was going throug my citys^^^(running a new game on huge, fast, settler(to get forward afap) to test the new settings by kangaroo. not sure but must be round the 1800 or 1900. may be later)
renamed both (python and patch) and trying, if it does ctd just because my empire is that big.
i'll report later
 
Private_pAuLa
Ok, I wasn't actually hoping much it'll work :) This means that probably game has racing condition within its own code, but I wonder why it's not happening to me... Probably it runs too slowly, decreasing probability of threading race collisions.
 
After changing "syncinput" to 1, I fired up my crash-prone huge-map saved game, scrolled around a lot in globe view, visited each city, talked to some leaders, played for an hour, and not a single crash, quit-to-desktop, or anything! Then I upped all my graphics settings back to high and redid everything to TRY and crash the game--nope! Still lags in globe view (even with buildings and all graphics options on low/disabled) but oh well.

Pentium D 820 (1.8GHz)
1GB PC4200 DDR2 dual-channel RAM
nVidia GeForce FX 6600GT (128MB RAM), ForceWare 81.95
2GB swap file

Oh and I have Civ 4 running in the background now while posting this (plus Outlook Express, Firefox, ExplorerPlus, eMule, and some other system tray apps). ;)

Update: after 8 hours of playing, and noticing the game get gradually slower (it's about 1900 in-game), I went to globe view and Civ 4 just quit without any noticeable screwups. Regardless, I am impressed I got this far. I also had DynamicAnimPaging = 1 and SyncInput = 1 (both from before this thread as I was screwing around with the .ini).

The BreakOnAlloc (memory allocation order #) entry looks interesting; it's "-1". I wonder if changing this would have any effect...
 
aneeshm said:
How can anything compete with NetBSD on a toaster ;) :lol: ?


And I'm not joking - it actually has been done .


With a little work, you could probably get netbsd to run on some cheese and crackers, too. Would you really want to, though? I've always thought of it as kind of a last resort, when nothing else would work. Like on this DECstation to my left. I mean... ugh... ultrix, no thanks.
 
Could anyone tell me where the civ4.ini file is? I did a serach for *.ini in the main folders and I came up with 4 or 5 files, but none of them were the more familiar one (with the civ4 name in it). I uninstalled my previous game, and I think took out any lame directories left behind. Then reinstalled the game (I won't bother mentioning all the reboots I did inbetween all of this) and let the game download the patch, as I hoped it would be a cleaner version than the other ones I've had. It seems as though it didn't put the common *.ini file out there. Whether that's true or not, this was the furtherest I had ever got while playing a large map (only 4 other civs - which probably contributed to a small increase in success) as I got into the industrial age for the first time. I had like 2 or 3 scarey temporary lockouts before, but about 10 turns deep into industrial she went to CTD ala EGA mode again. Only thing this patch has accomplished CTD-wise for me is that I haven't had any hard crashes knocking out the system like before (although the EGA style one is new with 1.09). I was hearing some hard drive "uurrrrrr's" for quite a while after having gone through those hard ones.
 
Charles 22 said:
Could anyone tell me where the civ4.ini file is? I did a serach for *.ini in the main folders and I came up with 4 or 5 files, but none of them were the more familiar one (with the civ4 name in it). I uninstalled my previous game, and I think took out any lame directories left behind. Then reinstalled the game (I won't bother mentioning all the reboots I did inbetween all of this) and let the game download the patch, as I hoped it would be a cleaner version than the other ones I've had. It seems as though it didn't put the common *.ini file out there. Whether that's true or not, this was the furtherest I had ever got while playing a large map (only 4 other civs - which probably contributed to a small increase in success) as I got into the industrial age for the first time. I had like 2 or 3 scarey temporary lockouts before, but about 10 turns deep into industrial she went to CTD ala EGA mode again. Only thing this patch has accomplished CTD-wise for me is that I haven't had any hard crashes knocking out the system like before (although the EGA style one is new with 1.09). I was hearing some hard drive "uurrrrrr's" for quite a while after having gone through those hard ones.


If you did the default installation, then in the following folder:

c:\program files\firaxis games\Sid Meier's Civilization 4

you will find a shortcut file named: _Civ4Config

that is a link to the Civ IV ini file which is actuall located at:

"C:\Documents and Settings\###OWNER OR ANY NAME YOU SELECTED###\My Documents\My Games\Sid Meier's Civilization 4\CivilizationIV.ini"

When you do a search, make sure you specify the whole C: drive, not just a folder where you think it might be.

Good Luck.
 
I just wanted to jump in and say thank you to The Kangaroo for his ini fix. :goodjob:

It seems to have cured the CTD/game freezing issues I was having in the latter part of games. After applying the changes, I played a save game for a couple of hours with no problem. Prior to that, I could only play maybe 5 turns before it crashed.

Thanks again, and thanks to everybody else in this thread working on fixing this great game. :)
 
All
I think I have spotted one of BSOD reasons. Today's morning I had a lot of things to test before releasing my patch, and I was a bit sleepy and lazy to do that right away, so I tried reducing pixel/vertex shader versions as this helped some people over with nVidia cards.

As for the owner of ATi card, RivaTuner wouldn't help me, so I mangled pixel/shader versions from inside the code like I currently play with vertex/index buffer data.

When I changed both to 0x0000, the game reported that my system is below minimum specs, but ran, though with overbright land texture and some dark line over the picture like if I took a shot of monitor with 50Hz camera. Well, ok - bugs in no-shader fall-back code was noted long ago.

Then I tried the solution which helped many nVidia people - I left pixel shaders version intact (it was 2.0) and set vertex shaders to 1.1 (it was also 2.0). Small savegame loaded nicely without bugs.

My huge 1961 savegame BSOD'ded before showing any graphics in the end of loading process with PS=2.0, VS=1.1.

All my code about hashing vertex/index data was off - it was much likely profiler version I released some time ago, except it changed vertex shader version to 1.1.

I mean that if some of you use RivaTuner or something else to set fake vertex shader version of 1.1, it might be the reason of BSOD'ding (or CTD). I am writing all of that because I never caught BSOD before (except bugs in my vertex/index hashing code which was OFF by the time of this unexpected BSOD).

Charles 22
Yeah.... People who still remember EGA today don't expect to see .ini files as shortcuts. No offence, I had same "problem" :D
 
Yrth said:
If you did the default installation, then in the following folder:

c:\program files\firaxis games\Sid Meier's Civilization 4

you will find a shortcut file named: _Civ4Config

that is a link to the Civ IV ini file which is actuall located at:

"C:\Documents and Settings\###OWNER OR ANY NAME YOU SELECTED###\My Documents\My Games\Sid Meier's Civilization 4\CivilizationIV.ini"

When you do a search, make sure you specify the whole C: drive, not just a folder where you think it might be.

Good Luck.

Oh yeah, that was the last thing I did, as I did the "entire drive" to look for ini's. Sorted it by time; nothing. Sorted it by name; nothing. I hope to blazes the stupid thing is there, and thanks for the direct path.



Harkonnen: Yeah I didn't know what he was talking about for a minute, but then he showed me the path where I thought I had seen it on one of my earlier installs. Man that thing must put out at least three different main directories for whatever purposes. I always leave my files unhidden, so finding something, assuming it's not crunched in something resembling a zip, is no problem for me. I wonder if it's possible to play without that specific ini file?

Well at least it doesn't crash to CGA!
 
Sorry, I've lost track of this thread a bit...

Basically, I am, as many people are, experiencing memory overuse. What exactly is that registry file you've posted Harkonnen? Will that reduce Civ 4's memory overuse (and is there a way to remove it)? Also, will those .dlls help as well with memory issues as well?

Just want to check before I go installing stuff onto my PC which I don't know how to get rid off. I'm not getting any CTDs BTW.
 
The Great Apple
That .reg file was asked by someone here, you don't need to install it.

My .DLLs here were about logging activity on several systems - it doesn't fix anything yet.

A patch saving ~150Mb is going to be released tomorrow.
 
Back
Top Bottom