icsharpcode / SharpDevelop

#develop (short for SharpDevelop) is a free IDE for .NET programming languages.
2.09k stars 773 forks source link

Repeated System.OutOfMemoryException #654

Open Rpinski opened 9 years ago

Rpinski commented 9 years ago

From http://community.sharpdevelop.net/forums/t/22057.aspx:

Using SharpDevelop version 5.1.0.4936-Beta, I am getting repeated OutOfMemoryExceptions. Generally these exceptions occur after about 15 to 30 minutes of standard usage. Due to the nature of this exception, exact reproduction instructions are impossible. According to TaskManager, the memory usage of SharpDevelop.exe slowly rises over time until it reaches about 1.25 GB, at which point the UI grinds to a halt and the application throws the exception after a few seconds. I am happy to run any tests that might help track down the error.

Finally, here is the error dump:

SharpDevelop Version : 5.1.0.4936-Beta-3ea20cfa
.NET Version         : 4.5.51209
OS Version           : Microsoft Windows NT 6.1.7601 Service Pack 1
Current culture      : English (United States) (en-US)
Running under WOW6432, processor architecture: x86-64
Working Set Memory   : 1225096kb
GC Heap Memory       : 1042359kb

Unhandled WPF exception

Exception thrown:

System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Collections.Hashtable.Clone()
   at System.Windows.Input.StagingAreaInputItem.Reset(InputEventArgs input, StagingAreaInputItem promote)
   at System.Windows.Input.InputManager.PushInput(InputEventArgs input, StagingAreaInputItem promote)
   at System.Windows.Input.ProcessInputEventArgs.PushInput(InputEventArgs input, StagingAreaInputItem promote)
   at System.Windows.Input.MouseDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Recent log messages:
19:30:12.324 [1] DEBUG - Update Foldings
19:30:12.334 [11] DEBUG - Resolved (Line 73, Col 10) to 
19:30:13.432 [1] DEBUG - Resolved (Line 71, Col 39) to 
19:30:13.886 [1] DEBUG - Resolved (Line 71, Col 38) to 
19:30:14.664 [11] DEBUG - Resolved (Line 71, Col 36) to 
19:30:14.883 [1] DEBUG - Resolved (Line 71, Col 39) to 
19:30:15.611 [1] DEBUG - ParseInformationUpdated C:\MasterFolder\Coding\C#\Projects\SharpAppleCore\Util\Vector\Vec2D.cs (updated)
19:30:15.645 [1] DEBUG - Update Foldings
19:30:15.654 [13] DEBUG - Resolved (Line 71, Col 37) to 
19:30:16.262 [10] DEBUG - Resolved (Line 71, Col 39) to 
19:30:16.349 [1] DEBUG - Resolved (Line 71, Col 43) to 
19:30:17.024 [1] DEBUG - ParseInformationUpdated C:\MasterFolder\Coding\C#\Projects\SharpAppleCore\Util\Vector\Vec2D.cs (updated)
19:30:17.045 [1] DEBUG - Update Foldings
19:30:17.049 [13] DEBUG - Resolved (Line 71, Col 40) to 
19:30:18.100 [10] DEBUG - Resolved (Line 70, Col 59) to 
19:30:18.747 [1] DEBUG - Save C:\MasterFolder\Coding\C#\Projects\SharpAppleCore\Util\Vector\Vec2D.cs
19:30:18.749 [5] DEBUG - Git: OverlayIconManager Thread started
19:30:18.851 [5] DEBUG - Git: OverlayIconManager Thread finished
19:30:20.525 [1] DEBUG - Saving memento of '[AvalonEditViewContent C:\MasterFolder\Coding\C#\Projects\SharpAppleCore\Util\Vector\Vec2D.cs]' to key '1e13ec5:C:\MASTERFOLDER\CODING\C#\PROJECTS\SHARPAPPLECORE\UTIL\VECTOR\VEC2D.CS'
19:30:20.534 [1] DEBUG - ActiveViewContentChanged to 
19:30:20.534 [1] DEBUG - ActiveContentChanged to 
19:30:20.534 [1] DEBUG - OpenedFileClosed: C:\MasterFolder\Coding\C#\Projects\SharpAppleCore\Util\Vector\Vec2D.cs
19:30:20.534 [1] DEBUG - ActiveWorkbenchWindowChanged to 
19:31:32.439 [1] DEBUG - ActiveContentChanged to ICSharpCode.SharpDevelop.Project.ProjectBrowserPad
19:31:42.856 [1] ERROR - Unhandled WPF exception
--> Exception:
System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.Collections.Hashtable.Clone()
   at System.Windows.Input.StagingAreaInputItem.Reset(InputEventArgs input, StagingAreaInputItem promote)
   at System.Windows.Input.InputManager.PushInput(InputEventArgs input, StagingAreaInputItem promote)
   at System.Windows.Input.ProcessInputEventArgs.PushInput(InputEventArgs input, StagingAreaInputItem promote)
   at System.Windows.Input.MouseDevice.PostProcessInput(Object sender, ProcessInputEventArgs e)
   at System.Windows.Input.InputManager.RaiseProcessInputEventHandlers(ProcessInputEventHandler postProcessInput, ProcessInputEventArgs processInputEventArgs)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

---- Post-error application state information:
Installed 3rd party AddIns: 
ProjectService.CurrentSolution: [Solution C:\MasterFolder\Coding\C#\Projects\SharpAppleCore\IronOmega.sln with 4 projects]
ProjectService.CurrentProject: [CSharpProject: UtilLib]
Workbench.ActiveContent: ICSharpCode.SharpDevelop.Project.ProjectBrowserPad