[1.19n] OOM CTD

By on January 29, 2011 10:34:14 PM from Elemental Forums Elemental Forums

AlLanMandra...

Join Date 09/2010
+63
Locked Post 45 Replies
Search this post
Subscription Options


Reason for Karma (Optional)
Successfully updated karma reason!
April 3, 2011 4:10:06 PM from Elemental Forums Elemental Forums

Quoting Frogboy,
I've been living in your saved game. I appreciate the Frogboy. I don't know how CariElf would feel about things though.

Anyway, lots of interesting things here. 

So, why do games crash during autosaves? The answer: memory fragmentation.  Save games allocate 50M of memory to do their thing. At a certain point, with so many things being allocated and deallocated you eventually end up with the largest piece of memory being 20M even though there's nearly a gig free. So voila. Crash.

Now, hwo to fix it...

Thanks for working on it and sharing the info. Do you know why the debug file would show 16x16 when the map clearly isn't that? Is the game somehow treating the map as 16x16 and the debug is correctly showing what the game thinks or is the game correct but the debug is showing incorrectly? I was wondering if the game may have been allocating too much memory due to misinterpretation of map size or something. Just curious really. Is there other information I can provide in future posts that is helpful at a glance?

On another note I think next time I run a new game the first male child of you and CariElf's matrimony will be named Lord Xia and he'll come with a pet pony.

Reason for Karma (Optional)
Successfully updated karma reason!
Reason for Karma (Optional)
Successfully updated karma reason!
April 3, 2011 6:50:12 PM from Elemental Forums Elemental Forums

Brad - as mentioned in prior posts loading a game within a game is quite dangerous for memory usage. Please see this recent thread: http://forums.elementalgame.com/406297

I took the 1.19j turn 111 save and recorded memory usage per load until oom or CTD. Here's the save and below are the measurements: http://dl.dropbox.com/u/19969679/Elemental/119j/119j_111.EleSav

  1. Initial - 1.79GB @ 59%
  2. 2.02GB @ 67%
  3. 2.09GB @ 69%
  4. 2.17GB @ 72%
  5. 2.19GB @ 73%
  6. 2.18GB @ 72%
  7. 2.26GB @ 75%
  8. 2.28GB @ 78% - CRASH (it did not say OOM, just it stopped working and CTD)

It appears anyone who loads a game from within a game is playing with fire. X amount of memory is not being freed upon reload whereas a fresh start of Elemental starts with a clean slate. Now all of my oom reports do eliminate this as a variable as I never load a game from within a game but this particular issues is easily reproduceable and could cloud the reports from other users. I'm not sure why all the gunk from the existing game isn't cleared out when loading a new one...

Onwards to 1.3!

Reason for Karma (Optional)
Successfully updated karma reason!
April 7, 2011 11:10:39 PM from Elemental Forums Elemental Forums

I noticed that on some of my games that it tends to crash and cause ram usage to skyrocket when loading a saved game from playing a game... don't know why that happens... very strange it does, could that be caused by a memory leak?

Reason for Karma (Optional)
Successfully updated karma reason!
April 7, 2011 11:14:15 PM from Elemental Forums Elemental Forums

Quoting EternalRequiem,
I noticed that on some of my games that it tends to crash and cause ram usage to skyrocket when loading a saved game from playing a game... don't know why that happens... very strange it does, could that be caused by a memory leak?

Yep, memory leaks. The crashing on saves isn't from the game itself exceeding 2GB, it's from the save exceeding 50MB... as I understand Brad's explanations.

Reason for Karma (Optional)
Successfully updated karma reason!
April 7, 2011 11:24:02 PM from Elemental Forums Elemental Forums

from my understanding... memory leaks are caused by bad coding on the developers part, usually a spelling error in the code and such? I know this because the mod team working on this mod for SOSE http://forums.sinsofasolarempire.com/378149 The Sins Optimization Project have found lots and lots of coding errors and tiny mistakes that just add to the larger problem at hand. The development team for SOSE have commended them for this and have asked to use some of the stuff they've found to fix some of the issues with the game already.

But that's another game and probably it's still too early to call in a mod team to find the small little bugs in the code that causes problems for the game. Since this game is garnering a lot of attention... besides FE being made.

Reason for Karma (Optional)
Successfully updated karma reason!
April 9, 2011 1:29:25 AM from Elemental Forums Elemental Forums

1.19l OOM:

Reason for Karma (Optional)
Successfully updated karma reason!
April 9, 2011 7:16:54 PM from Elemental Forums Elemental Forums

Brad - please see my DX error thread. Game is apparently causing total Windows memory usage to go crazy. See my last 1.19l replies here: http://forums.elementalgame.com/404863. Other than the OOM above, the other two crashes have been DX errors coupled with a sluggish system and total memory usage problems.

Reason for Karma (Optional)
Successfully updated karma reason!
April 10, 2011 7:24:12 PM from Elemental Forums Elemental Forums

1.19l OOM:

  • Was basically cycling turns, exploring the map with 3 units (staying on cloth map for the most part) but oom occurred when I zoomed into Capital1 to build a villa. BOOM! OOM. Turn 188.
  • Zip - debug, autosave, previousautosave - http://dl.dropbox.com/u/19969679/Elemental/119l/oom_188.zip
  • No dump was created
  • 12x8 map - same one as above posts
Reason for Karma (Optional)
Successfully updated karma reason!
April 11, 2011 3:08:25 AM from Elemental Forums Elemental Forums

1.19l OOM:

Reason for Karma (Optional)
Successfully updated karma reason!
April 12, 2011 1:26:03 AM from Elemental Forums Elemental Forums

1.19l OOM:

  • Season 282 - same game as above, 12x8 large map
  • Cycling turns, stopped to gear heroes, oom when I clicked to edit one of their cards
  • Zip - debug, last manual save, autosave, previous autosave - http://dl.dropbox.com/u/19969679/Elemental/119l/119l_282_oom.zip
  • No dump was created - well its making a dump, just size 0
  • Game was not sluggish before oom, just out of the blue
Reason for Karma (Optional)
Successfully updated karma reason!
April 12, 2011 3:47:04 AM from Elemental Forums Elemental Forums

1.19l OOM:

  • Season 316 or so - same game, looks like I'm getting an oom every 30 turns or so
  • Cycling turns, just spamming libraries, would zoom in to look at cities from different angles occasionally. moving absolutely no units anywhere and haven't been for many turns
  • Zip - debug, saves - http://dl.dropbox.com/u/19969679/Elemental/119l/119l_311_oom.zip
  • No dump with data was created
  • Game was not acting sluggish (other than time between end turns) - BOOM!
Reason for Karma (Optional)
Successfully updated karma reason!
April 12, 2011 11:22:11 PM from Elemental Forums Elemental Forums

1.19l OOM:

  • Season 334
  • Was moving a hero stack around grabbing all the quests - also making (in 1 turn using call to arms) my "12 dragon super-elite stack led by a red dragon". Fun stuff.
  • Zip - http://dl.dropbox.com/u/19969679/Elemental/119l/119l_332.zip
  • 0 byte dmp created, nada
  • Game was acting fine before crash
  • Prior crash at 316 - made it 18 turns before oom
Reason for Karma (Optional)
Successfully updated karma reason!
April 13, 2011 12:11:37 AM from Elemental Forums Elemental Forums

1.19l CTD:

Reason for Karma (Optional)
Successfully updated karma reason!
April 13, 2011 1:31:35 AM from Elemental Forums Elemental Forums

1.19l OOM:

  • Season 358
  • Did the hermit part of final quest just to check it out (knew I'd die without casters) but wanted to see it anyway. Autoresolved and hermit nuked entire army. Exited game to reload and it appeared to be successful but oom'd on exit??? It popped up about 3-5 secs after I was back on desktop. Weird.
  • Zip - saves, debug, dump - http://dl.dropbox.com/u/19969679/Elemental/119l/119l_358_oom.zip
  • Dump was created!
  • 20 turns since last ctd
Reason for Karma (Optional)
Successfully updated karma reason!
April 13, 2011 10:07:00 AM from Elemental Forums Elemental Forums

1.19L CTD

Ok this is my 2nd game with this ver. The first game seem to play with out this I did not get the autosave problem like I was either. Now this has happend 2x with the new game. Not shure why. Here is the reports...

http://dl.dropbox.com/u/15383583/Paul-PAUL-PC-04.12.11-logs.zip

http://dl.dropbox.com/u/15383583/Paul-PAUL-PC-04.13.11-logs.zip

cheers

Reason for Karma (Optional)
Successfully updated karma reason!
April 23, 2011 3:41:47 PM from Elemental Forums Elemental Forums

1.19n CTD. Was zoomed in on my capital on 3d map and cycling turns to test pop lock for AI. CTD'd. It was a fresh load of Elemental, and it looks like it crashed on turn 24 or so.

Reason for Karma (Optional)
Successfully updated karma reason!
April 23, 2011 10:42:01 PM from Elemental Forums Elemental Forums

1.19 CTD: Ran an AI test, completed, went back to main menu. Entered cartographer, played around with a map, closed it without saving the map, reentered cartographer and CTD. I went to check on the dump and for some reason there was a rash of dumps in there over about a half hour period:

Zip (debug, all the dumps) - http://dl.dropbox.com/u/19969679/Elemental/119n/119n_CTD_cartographer.zip.zip

Reason for Karma (Optional)
Successfully updated karma reason!
April 24, 2011 4:27:46 AM from Elemental Forums Elemental Forums

1.19n CTD. In cartographer, played around with a map, closed it. Reloaded cartographer, crash.

Zip (debug and dump) - http://dl.dropbox.com/u/19969679/Elemental/119n/119n_ctd_cartographer1.zip

Reason for Karma (Optional)
Successfully updated karma reason!
April 26, 2011 3:26:02 AM from Elemental Forums Elemental Forums

http://dl.dropbox.com/u/16468196/debugn.err

 

can't even access the game. it crashes upon loading---save/auto/previous

Reason for Karma (Optional)
Successfully updated karma reason!
Stardock Forums v1.0.0.0    #101114  walnut1   Server Load Time: 00:00:00.0000172   Page Render Time: