Logo Platform
logo amplifiers simplified
Endless Legend
Universe banner wording

ENDLESS™ Legend is a turn-based 4X fantasy-strategy game, where you control every aspect of your civilization as you struggle to save your homeworld Auriga. Create your own Legend!

Solution for OutOfMemoryException on end of turn on Windows 32bit version

Reply
Copied to clipboard!
9 years ago
Jul 17, 2015, 7:29:38 PM
Bonjour,

After struggling for several months in order to get this game working on my computer for more than a dozen turns, I found a solution, which is rather a workaround than a real fix. I wish I had been helped by the tech support, but that has not been the case. However, I guess this solution can solve the issue for a few people the same way it solved it for me.



- Symptoms: OutOfMemoryException on the end of turn, during the autosave of the turn, whatever the type (file or cloud). Plus random crashes always at the same address that I seem to be the only one to experience, like this one:



- Conditions: Windows Vista 32bit (but some people have the same issue under 32bit version of Windows 7). Video card : Geforce GTX 650Ti 1Gb.



- Suspected root cause : considering that at least 4Gb are installed, Windows 32bit applications are limited to a virtual address space of 4Gb of address space, including 2Gb for the process (this is where the memory of the process is allocated) and 2Gb for the system (this is reserved for the drivers). Full details here: https://msdn.microsoft.com/en-us/library/windows/hardware/hh439648%28v=vs.85%29.aspx or here: http://hardforum.com/showthread.php?t=1035670. Video cards uses portions of the 2Gb process address space, thus reducing the available memory for the processes, and leaving too few memory for the Endless Legend process. This is particularily annoying with video cards that have a lot of memory. I my case, there are several hundreds of Mb that are used by my memory card inside the 2Gb range.



- Fix: use of the /3GB switch fixed the issue for me. This gives more memory to the processes, and less to the system. I managed to play a whole game with only 1 crash, that was not necessarily related to memory usage (happened after several hours of play). Details of the command is here: http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-enable-a-3GB-switch-on-Windows-Vista-Windows-7-or-Windows-XP-s.html. Do not forget to run as administrator. I guess it needs a reboot, too. I used "bcdedit /set IncreaseUserVa 2560" to give 2.5Gb to the process address space and that was enough to fix the issue in my case.

Curiously, this solution was suggested a few months ago in the following post https://www.games2gether.com/endless-legend/forum/13-tech-support/thread/5155-out-of-memory, but it does not say if it worked or not. It has also been suggested a few days ago for a similar problem with the 64bit version of the game: https://www.games2gether.com/endless-legend/forum/13-tech-support/thread/5257-random-crashes-with-ati-cards-while-running-the-64-bits-version-of-the-game.



- Potential side effects: there may be some nasty side effects with some applications that do not allow to be run above the 2Gb limit, causing crashes. There may be some benefits in other applications that have the same memory issue. In my case, I've been running without visible issues for several months now.



- Rollback: in case of issues, run the following command the same way (with admin rights) to revert to the initial settings: "bcdedit /deletevalue IncreaseUserVa".



I hope this helps. By the way, this is a great game.
0Send private message
9 years ago
Jul 26, 2015, 7:37:58 PM
Hey man, this is very interesting. I had the same kind of error when I had an old PC, on Windows XP.



To the persons who work on the wiki : It would be cool to report the fruits of your enquiry somewhere in the wiki.
0Send private message
?

Click here to login

Reply
Comment
0Send private message