Page 1 of 1
[Solved] Out of memory errors
Posted: Fri Sep 24, 2010 11:19 am
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
RE: Out of memory errors
Posted: Sun Sep 26, 2010 11:17 am
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.
RE: Out of memory errors
Posted: Sat Oct 02, 2010 1:33 am
by Erik Rutins
Thanks Borsook, could you also post a DxDiag for us please?
RE: Out of memory errors
Posted: Sun Oct 03, 2010 11:07 am
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
RE: Out of memory errors
Posted: Sun Oct 03, 2010 4:22 pm
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.
RE: Out of memory errors
Posted: Sun Oct 03, 2010 4:55 pm
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
RE: Out of memory errors
Posted: Mon Oct 18, 2010 2:56 pm
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.
RE: Out of memory errors
Posted: Sat Oct 23, 2010 2:02 pm
by borsook79
I don't know if you implemented the fixes early, but so far in 1.03 I have not seen this error.
RE: Out of memory errors
Posted: Sat Oct 23, 2010 2:24 pm
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.