LH 1.8 Huge Memory leak.

I played this game back on V. 1.4 and I cant remember the memory leak being this bad. The memory consumption increases by 1 mb every second, and the game becomes horribly laggy after mere 30 minutes of playing.

By the way I am using xtradeconstruct mod, But I am not really sure that has anything to do with it.

8,546 views 9 replies
Reply #1 Top

I would attempt using no mods, then seeing if you have the issue still.

Reply #2 Top

Quoting The_Gear, reply 1

I would attempt using no mods, then seeing if you have the issue still.

I tried turning off the mods in menu, zero change. The ram usage continues to build swiftly until I run out of memory.

 

Reply #5 Top

I encountered this issue as well. No mods.

 

Serious memory leak experienced. The game usually CTD's in less than 7 terms. Loading game takes forever. 

 

Some more background info:

# of AI: 13

Map Size: Huge

# of Turns Elapsed: 150

 

Specs:

CPU: Intel Core i5

RAM: 8 GB DDR3

Graphics: nVIDIA GTX460

 

I've never had this issue before when I played the original Elemental game. This is a commonly-known issue with no known resolution. 

Reply #6 Top

 

I'm 178 turns in without crashes or high memory. Memory isn't climbing at any rate I am seeing, certainly not at 1mb per second.

If someone has a non-modded save game that reproduces the memory leak I'd love to check it out.

Reply #7 Top

I no longer have the save since I overwrote it with a new game, but I did take a snapshot of the debug log a current game with mods (Large map 12 players), which also crashes every 6 turns or so.

Debug Message: -------------------------
Debug Message: - Ending Turn 135 -
Debug Message: Current Memory Usage: 1996480 KB
Debug Message: Cities in World: 58
Debug Message: Units in World: 706
Debug Message: CCity:CalculateResourcesPerTurn - Ahilga couldn't create a new instance of CityResourceData for Resource_XL_Research_FE.
Debug Message: AI Lord Relias: Now researching Immortal Codex
Debug Message: Caravan placed back on trade route path
Debug Message: Caravan placed back on trade route path
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Unallocated Mem: 1404 bytes of memory from line 222 of e:\lh-elemental\Kumquat3D\Source\AStarManager.cpp
DebugMessage: Not all memory has been freed from memory system AStar.
DebugMessage: 49140 bytes of memory still allocated.

Reply #8 Top

Ok, I reproduced this in an unmodded run. Huge map, no mods, 16 AI

In this trial run, I got past a few dozen turns and then turned on auto-turn Ctrl + Z. In the linked zip file, it contains a save before the auto-turn was turned on and the debug.log when memory overflow was hit.

Download here: http://www.filedropper.com/test_15

Reply #9 Top

 

I'm unable to download it. It says it is 0 file size: http://screencast.com/t/RGrkvoS4M

Would you also link your debug.err file so I can take a look at anything that may be local to your computer (I'm curious why large memory address aware isn't working on your computer, are you 32bit?).