[Solved] Out of memory errors

Post bug reports and ask for game support here.

Moderator: Vic

Post Reply
User avatar
borsook79
Posts: 468
Joined: Sun Jun 29, 2008 8:39 am

[Solved] Out of memory errors

Post by borsook79 »

I get .Net out of memory errors during AI preparation for the turn. If I choose to continue regardless of the error the AI turn seems to proceed just fine. The problem is my computer has 2GB of RAM, and I measured it during AI turn, memory is not fully used, there's still ~500 MB of free physical memory not to mention swap. So it would seem that for one reason or another there is some problem with assigning the needed RAM
"Patriotism is your conviction that this country is superior to all other countries because you were born in it." - G.B. Shaw
User avatar
borsook79
Posts: 468
Joined: Sun Jun 29, 2008 8:39 am

RE: Out of memory errors

Post by borsook79 »

In case it helps, here are the error details:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OutOfMemoryException: Out of memory.
at System.Drawing.Graphics.FromImage(Image image)
at WindowsApplication1.GameLoopMainWindowClass.DrawDateAndRegime()
at WindowsApplication1.GameLoopMainWindowClass.handleTimer()
at WindowsApplication1.ScreenClass.HandleTimer()
at WindowsApplication1.Form1.Timer1_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version:
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
WindowsApplication1
Assembly Version: 1.0.3908.21501
Win32 Version: 1.0.3908.21501
CodeBase: file:///C:/Program%20Files/Matrix%20Games/Decisive%20Campaigns%20The%20Blitzkrieg%20from%20Warsaw%20to%20Paris/WarsawToParis.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
irrKlang.NET
Assembly Version: 1.3.0.0
Win32 Version: 1, 1, 0, 0
CodeBase: file:///C:/Program%20Files/Matrix%20Games/Decisive%20Campaigns%20The%20Blitzkrieg%20from%20Warsaw%20to%20Paris/irrKlang.NET.DLL
----------------------------------------
XPClient
Assembly Version: 2.2.0.29021
Win32 Version: 2.2.0.0
CodeBase: file:///C:/Program%20Files/ASUS/ASUS%20WebStorage/2.2.30.74/XPClient.DLL
----------------------------------------
LogicNP.EZNamespaceExtensions
Assembly Version: 4.0.0.0
Win32 Version: 4.0.0.0
CodeBase: file:///C:/Program%20Files/ASUS/ASUS%20WebStorage/2.2.30.74/LogicNP.EZNamespaceExtensions.DLL
----------------------------------------
EcaremeDLL
Assembly Version: 2.2.0.29021
Win32 Version: 2.2.0.0
CodeBase: file:///C:/Program%20Files/ASUS/ASUS%20WebStorage/2.2.30.74/EcaremeDLL.DLL
----------------------------------------
log4net
Assembly Version: 1.2.10.0
Win32 Version: 1.2.10.0
CodeBase: file:///C:/Program%20Files/ASUS/ASUS%20WebStorage/2.2.30.74/log4net.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
SqliteShared
Assembly Version: 2.2.0.29021
Win32 Version: 2.2.0.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/SqliteShared/2.2.0.29021__0d0f4b69e50e559b/SqliteShared.dll
----------------------------------------
System.Data.SQLite
Assembly Version: 1.0.60.0
Win32 Version: 1.0.60.0
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data.SQLite/1.0.60.0__db937bc2d44ff139/System.Data.SQLite.dll
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.84.0.0
Win32 Version: 0.84.0.0
CodeBase: file:///C:/Windows/assembly/GAC/ICSharpCode.SharpZipLib/0.84.0.0__1b03e6acf1164f73/ICSharpCode.SharpZipLib.dll
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Interop.SimpleAES64Lib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/ASUS/ASUS%20WebStorage/2.2.30.74/Interop.SimpleAES64Lib.DLL
----------------------------------------
Interop.SIMPLEAESLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files/ASUS/ASUS%20WebStorage/2.2.30.74/Interop.SIMPLEAESLib.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
"Patriotism is your conviction that this country is superior to all other countries because you were born in it." - G.B. Shaw
User avatar
Erik Rutins
Posts: 39789
Joined: Tue Mar 28, 2000 4:00 pm
Location: Vermont, USA
Contact:

RE: Out of memory errors

Post by Erik Rutins »

Thanks Borsook, could you also post a DxDiag for us please?
Erik Rutins
CEO, Matrix Games LLC


Image

For official support, please use our Help Desk: http://www.matrixgames.com/helpdesk/

Freedom is not Free.
User avatar
Vic
Posts: 10077
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Out of memory errors

Post by Vic »

It might be some other programm is running at the same time and sometimes taking a lot of RAM too?

It might also be the case that you are using Vista? are you? I have been seeing some sporadic memory issues with my games and Vista before.

I'll see if I can adress the issue anyway in upcomming beta patch v1.03.

thanks for reporting! even if i can not immediatly say whats causing the behaviour on your PC.

best regards,
Vic
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
User avatar
borsook79
Posts: 468
Joined: Sun Jun 29, 2008 8:39 am

RE: Out of memory errors

Post by borsook79 »

ORIGINAL: Vic

It might be some other programm is running at the same time and sometimes taking a lot of RAM too?

It might also be the case that you are using Vista? are you? I have been seeing some sporadic memory issues with my games and Vista before.

I'll see if I can adress the issue anyway in upcomming beta patch v1.03.

thanks for reporting! even if i can not immediatly say whats causing the behaviour on your PC.

best regards,
Vic
I'm running Windows 7, I close all other apps before running the game, of course there are some things there (like Antivirus) but nothing memory hungry. The funniest thing is if I run system monitor when this error appears it displays that there is quite a lot of free physical memory, so it should be assigned to the game if it needs more.

I'm attaching dxdiag file.
Attachments
DxDiag.txt
(30.26 KiB) Downloaded 17 times
"Patriotism is your conviction that this country is superior to all other countries because you were born in it." - G.B. Shaw
User avatar
parusski
Posts: 4789
Joined: Mon May 08, 2000 8:00 am
Location: Jackson Tn
Contact:

RE: Out of memory errors

Post by parusski »

system monitor when this error appears it displays that there is quite a lot of free physical memory

Borsook, one huge issue concerning the discrepancy in memory available could be caused by SuperFetch. It was tamed down and even house trained with Win 7. Do you have SuperFetch service enabled, if so check out how much memory is being controlled by it. Empty memory is wasted money. SuperFetch does use a substantial amount of the stuff, but always keep in mind: Your OS's Superfetch may well hold most of your memory, because it has been used for whatever you've been doing. Once you start something new SuperFetch acts like an old 5 gallon toilet. Most of the time.

Oh, when looking the performance module do not pay attention to "free" memory, a piece of this puzzle is in "available" memory. Available is important because it includes the actual amount of free memory and the amount that can be freed by dumping unnecessary data.

Gotta run
"I hate newspapermen. They come into camp and pick up their camp rumors and print them as facts. I regard them as spies, which, in truth, they are. If I killed them all there would be news from Hell before breakfast."- W.T. Sherman
User avatar
Vic
Posts: 10077
Joined: Mon May 17, 2004 2:17 pm
Contact:

RE: Out of memory errors

Post by Vic »

This issue will be very probably resolved with v1.04.... which I hope to get in BETA in at most a few weeks.
Visit www.vrdesigns.net for the latest news, polls, screenshots and blogs on Shadow Empire, Decisive Campaigns and Advanced Tactics
User avatar
borsook79
Posts: 468
Joined: Sun Jun 29, 2008 8:39 am

RE: Out of memory errors

Post by borsook79 »

I don't know if you implemented the fixes early, but so far in 1.03 I have not seen this error.
"Patriotism is your conviction that this country is superior to all other countries because you were born in it." - G.B. Shaw
User avatar
RocketMan
Posts: 766
Joined: Mon Jul 19, 2004 4:56 am
Location: Washington State, USA

RE: Out of memory errors

Post by RocketMan »

I actually helped Vic test this, the WarshawToParis.exe stopped working and unhandled exception errors and while 1.03 Beta changed some behaviors, it didn't solve all the issues. Vic sent me a few different builds to test and he finally figured out what was causing the problems, but he won't be implementing the changes until the next beta patch.
Post Reply

Return to “Tech Support”