There is a nasty memory leak that we're having a heck of a time tracking down.
It doesn't happen consistently and in fact, it doesn't happen to us at all.
Here is what we need:
1. If have experienced out of memory problems, low the game resolution and run the game in a window so that you can bring up that task manager (Ctrl-Shift-Esc).
2. On the Processes list, you should see Elemental. Its memory should start at around 600MB and, over the course of a game, creep up to around 1.2GB. This is normal.
3. The memory, once you get going in the game, should NEVER go up by more than 5MB in a given turn. If it does, then whatever is triggering the memory explosion has started.
4. We are looking for saved games, theories, debug.err files, anything that can help us reproduce it. If we can reproduce it, we can eliminate it in hours. But it's the reproducing that's giving us fits.
Thanks!
http://dl.dropbox.com/u/9592194/Elemental0_98-2010-07-30T21-40-16-175.dmp
http://dl.dropbox.com/u/9592194/debug.err
http://dl.dropbox.com/u/9592194/AutoSave.EleSav
I waited after each turn until the memory stopped climbing. There was never a point after a turn that it actually just kept climbing without any further input by me and then crashing. It would climb after each turn and then would plateau until I did something else.
It would however steadily climb each turn. Some more than others and never a consistent amount that I could tell.
Turn 21 I was at 1,465,532. At turn 25 I was at 1,531,616. Turn 30 was 1,637,840. I managed another 6 turns without any input from me except moving to the next turn before it crashed going into turn 37. I was in 2 battles total. Memory was at 1,644,568.
I am running Win 7 x64. I will try running another game and minimize what I do and see if anything specific triggers it to climb. As it was, it never stopped climbing, it just went up each turn.
What happens if you turn off sound?
I don't know about him, but for me, it didn't help. Still crashed. I loaded the save game I just put in this post before. It seems to be after a couple hundred turns. The mem went up anywhere from 1-15K each turn, seemingly depending on what was happening (autosave, research tech, tac battle, etc). Although I think it MAY have something to do with tactical battles. I had a couple turns where my mem usage dropped down again, but I kept accepting TBs. Here's the debug.err from this crash. If you want me to, I can put the current save, but i'm not sure it's even the save itself that's causing the problem.
http://dl.dropbox.com/u/8949112/debug.err
Just a quick note. Started another game and I have reached turn 109 and memory is at 861,264. I brought my sovereign and left him right next to my city. I hired two heroes that got next to him and left them there as well. My town is level 3 and I have gone throught 5 or so levels of research on Civilization and 2 on Adventuring.
My game crashed at turn 200. Memory began climbing as I used my sovereign to really begin exploring areas covered in fog of war. I lost my city and was left with only my sovereign at about turn 150. From then on I just uncovered more of the map as I went, and with no city and my sovereign not fighting any battles the memory kept expanding until it crashed.
http://dl.dropbox.com/u/9592194/Elemental0_98-2010-07-30T22-13-10-459.dmp
Sorry, just saw the sound question. Let me try it now with it off.
Ok. Just tried a game with all the sound settings off. No dice. I completely ignored my city in this one and simply uncovered as much of the map as I could. Unfortunately I died before the game crashed but my memory had reached 1,610,000 so it was only a matter of time. That was at about turn 80.
I am off to bed for the night but hopefully something in these reports will help you out. NM. Not going to bed yet after all. Got something else besides turning the sound off you would like tried?
okay I had it happen again and I tried it with the sound turned off this time:debug.errDxDiag.txt
I just lost a game with my memory usage up to about 1.45 GB. Well on my way to crashing. I just went ahead and started a new game but the memory usage did not drop... It hung after a few turns and I had to kill it. It did generate a debug but nothing else.
So far, has anyone who has run into this NOT been running 64-bit Windows? Every debug.err seems to be Windows 64. Now, I run 64-bit Windows and I don't run into it but I have yet to look at a debug.err that isn't 64-bit Windows.
also out of memory crash was in a tactical battle
link has save files debug.err
prefs.ini and system specs
http://www.omnidigital.net/r17/index.php/elemental/elemental-bugs/
Hello again
My game experienced the "Out of Memory" CTD described above. I am posting all files requested as indicated by the reporting sticky. Links to the text files are included below.
Zip file was 0 KB but the dump file was 8MB! Dumps are in Dropbox as suggested, link below.
I am also including the most recent save game (an autosave): http://dl.dropbox.com/u/8868376/AutoSave.EleSav
Debug Err: http://paste.org/pastebin/view/21040
DXDIAG: http://paste.org/pastebin/view/20964
DUMP: http://dl.dropbox.com/u/8868376/Elemental0_98-2010-07-30T22-29-18-734.dmp
Many Thanks!
Sara
Out of memory again on turn 217. I had turned off all sound for this one, but had the autosave on every turn.
Dump file is here, debug.err included in zip.
I'm running Vista 32 and although I've experienced numerous freezes and crashes none have apparently been related to running out of memory.
- Othello
Running a different OS (Win XP). This was with the sound on. What I am seeing is that from round to round the memory doesn't go up much. Instead, it increases about 30Mb every time I have a tactical battle or a Tech advance/wonder UI pops up, and never goes down again. I had the sound on for this one:
http://dl.dropbox.com/u/8733908/debugmemleak.err
http://dl.dropbox.com/u/8733908/DxDiag.txt
http://dl.dropbox.com/u/8733908/Prefs.ini
http://dl.dropbox.com/u/8733908/Elemental0_98-2010-07-31T10-04-34-656.zip
Turn 1203.
2 Cities
First got a Out of Memory, now got DX Call Error.
http://dl.dropbox.com/u/9613442/ElementalErrors.zip
This includes my autosaves as well as normal saves, autosaves are at default.
I have also included my debug.err file, in hopes you guys can fix it
Ok, i tried playing game in window and looked at task manager. The game's mem usage climbed up to 1.2 GB in about first 2 turns (as expected), but then I went to build something in my capitol city and it went up to 1.5Gb not long after it went to 1.6 GB and then I got out of memory error. My system has 8GB of RAM and graphic card that has 2 GB of RAM (2 cores, each with 1GB). It shouldn't report out of memory on 1.6 GB usage. Weird thing is that apparently some actions like opening city screen seem to increase mem usage but it never goes down.
I'll try to disable sound next.
PS:I have 'enable city build mode zoom' option checked. Not sure if it has anything to do with increasing mem usage when building something in city.
Edit: Disabling sound didn't make much difference. It appears that mem usage steadily goes up until it reaches 1.65 GB and then it crashes with 'out of memory' error.
debug.err
prefefs.ini
I've put up a report about memory leaks few versions ago ( beta 2b? ) and repeated it for early beta 3. I got no reaction back then and all of the things I mentioned there are still present and accounted for. Guess it got lost in the crowd. Shame. I'll recount this stuff, as there is no real point to dig deeper with those buggers around. They can all be used to generate turn 0 out of memory if someone is willing to be persistent enough. And I actually tested this statement with point 3) below
1 ) Zooming. To be more precise it's moving in and out of cloth map mode. Leak in very low hundred K of memory on each transition.
2) Selecting and deselecting an unit in 3d mode. Leak of few dozens K on each select/deselect
3) Switching between existing designs in unit designer. Leak of well over 1M on each switch!
4) Each visit to dynasty section leaks over 2M
5) There is a leak in scrolling code in 3d mode. Scroll away from the visible patch on turn 0 so your screen is full of fog of war and then refocus the screen on your leader. Repeat until bored. Few hundred K gone on each shot.
6) You have fixed the leak in pulling up unit details, I'd guess it went away because you got rid of the unit animation there and moved it to equipment screen. Equipment screen leaks 1M per visit.
And so on. My loose theory - you leak whenever an animation is drawn on the screen from scratch, it might be driver related and only on 64-bit Win 7 but it is still there. In very basic user actions that add up exponentially as the game goes on.
Edit : Added point 6)
Yea, I never ever had an OOM error in EWoM yet. [..and I am on x64 Vista]
*removed*
I didn't see this thread until after I'd gotten my OOM (so wasn't watching memory usage in task manager), but I haven't had a chance to play since then so still have the debug.err and auto save from 3 minute before the crash.
http://dl.dropbox.com/u/8018430/oom_AutoSave.EleSav
http://dl.dropbox.com/u/8018430/oom_debug.err
That is an one time hit on my system, amount taken varies depending on which page is taken so I'd guess it's caching which works as intended. It would be nice to have this 10M memory back after closing help, the performance on first load of it is nowhere near bad enough to warrant any sort of caching scheme.
Anyway, some more memory observations, and I think this might be actually more important than anything suggested so far.
Exploring takes huge amounts of memory. An one tile step into uncharted map in cloth mode allocates heaps, anything up to 2M goes without any apparent pattern . Lifting FOW and leaving it in your wake can hurt you as much as 100K a step.
Playing a passive game ( get a city, put leader inside, press end turn until bored ) allocates hardly anything RAMwise, so there's probably nothing player unrelated going on in the background that leaks.
EDIT
Scratch the last sentence. I've just observed a brigand smacking a NPC on the map. It cost 10M in usage. Smells like the battle code .
And to top it up :
Each time you pull an unit out of a stack - 4M hit
Each time you put an unit into a stack - 4M hit
Do practice with 4 peasants, most entertaining :]
And autoresolving a battle you lost costs you in a region of another 5M.
I'd guess that should be plenty enough for you guys to investigate. Let me know if you want me to try anything specific.
As far as the 32 or 64 bit question, I have gotten two OOM errors on the same save/game and this is a 32 bit Vista machine (files are in a post I created about the issue before a dedicated thread got established).
Going to be doing some more testing to see what happens.
Ok, just had another OOM.
The archive (which I made) contains all the relevant files (debug.err, the .DMP file, my prefs.ini and both autosave games).
Autosave was set to save every turn, no sound was enabled, and the game was running in a window.
I am running Windows 7 64bit, in a system with 8GB of RAM.
I understand that the game still is 32bit, and it crashed when it got to about 1.5GB usage.
http://dl.dropbox.com/u/9613481/elemental-debug.zip
Extra observation: The mountains south of "Gama" and west of "Kacib" did not appear on the cloth map when I was playing the game, but do appear when I load the save game now.
I have 32-bit XP on my laptop and memory usage is very high, like 700-800 Mb before I have to shut it down. It becomes unplayable very quickly.
I am running xp in 32. I posted my debug yesterday but here it is again with my prefs list
http://dl.dropbox.com/u/3289339/debug.err
http://dl.dropbox.com/u/3289339/Prefs.ini
There are many great features available to you once you register, including:
Sign in or Create Account