[1220] Crashing VSNet - OutOfMemoryException

I have a solution that used to work fine. If I disable the Resharper via the Add-in Manager, I have no problems.
 
However, opening it with version Resharper 4.5 version 1220 causes VSNet to crash within a few seconds of opening the solution.
 
If I open it with Resharper turned off, then turn it on after the solution is loaded, Resharper starts putting up "Exception of type 'System.OutOfMemoryException' was thrown." errors within a few seconds. A few seconds later, and VSNet (2008) itself crashes.  I tried to click on the exception message box (yellow in bottom right corner) but it usually does not do anything. However, on one attempt, it seemed to open up a list of the recent exceptions.
 
If I run a debugger when VSNet crashes, the call stack and Locals window has some information that may be useful...
 
Exception of type 'System.OutOfMemoryException' was thrown.
]]>   at
JetBrains.DataFlow.TryFinally.Open(Action opening) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
TryFinally.cs:line
268
]]>   at
JetBrains.DataFlow.TryFinally..ctor(Action opening, Action closing, Boolean
bTrapExceptions, Boolean finalizer) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
TryFinally.cs:line
62
]]>   at
JetBrains.DataFlow.Signal`1.AdviseCore(Action`1 handler) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
Signal!1.cs:line
169
]]>   at
JetBrains.DataFlow.Signal`1.Advise(Action`1 handler) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
Signal!1.cs:line
332
]]>   at
JetBrains.DataFlow.ISignalEx.Advise_HasNew[TValue](ISignal`1 signal, Action`1
handler) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
Extension
ISignalEx.cs:line
105
]]>   at
JetBrains.DataFlow.PropertyBinding`2.InitDataFlow() in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
PropertyBinding!2.cs:line
251
   at ...
 
The full call stack...
 
]]>> mscorlib.dll!string.GetStringForStringBuilder(string value =
"   at JetBrains.DataFlow.TryFinally.Open(Action opening) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
TryFinally.cs:line
268\r\n   at JetBrains.DataFlow.TryFinally..ctor(Action opening,
Action closing, Boolean bTrapExceptions, Boolean finalizer) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
TryFinally.cs:line
62\r\n   at JetBrains.DataFlow.Signal`1.AdviseCore(Action`1 handler)
in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
Signal!1.cs:line
169\r\n   at JetBrains.DataFlow.Signal`1.Advise(Action`1 handler) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
Signal!1.cs:line
332\r\n   at
JetBrains.DataFlow.ISignalEx.Advise_HasNew[TValue](ISignal`1 signal, Action`1
handler) in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
Extension
ISignalEx.cs:line
105\r\n   at JetBrains.DataFlow.PropertyBinding`2.InitDataFlow() in
c:
Agent
work
6f6005be76df46e2
Platform
src
Util
src
DataFlow
PropertyBinding!2.cs:line
251\r\n   at ", int startIndex = 0, int length = 999, int capacity) +
0x1e
bytes   mscorlib.dll!System.Text.StringBuilder.GetNewString(string currentString, int requiredLength) + 0x46 bytes 
  mscorlib.dll!System.Text.StringBuilder.Append(string value = "JetBrains.DataFlow.PropertyBinding`2") + 0x62 bytes 
  mscorlib.dll!System.Diagnostics.StackTrace.ToString(System.Diagnostics.StackTrace.TraceFormat traceFormat = TrailingNewLine) + 0x170 bytes 
  mscorlib.dll!System.Diagnostics.StackTrace.ToString() + 0xa bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.Util.LoggerException.CaptureStackTrace(int ignoreFrames) + 0x2b bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.Util.Logger.LogExceptionEx(System.Exception ex, string comment, bool bDumpCurrentStack) + 0x90 bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.Util.Logger.LogException(System.Exception ex) + 0xe bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.TryFinally.Open(System.Action opening) + 0xa0 bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.TryFinally.TryFinally(System.Action opening, System.Action closing, bool bTrapExceptions, bool finalizer) + 0x51 bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.Signal<JetBrains.DataFlow.PropertyChangedEventArgs<JetBrains.DataFlow.DataFlowDirection>>.AdviseCore(System.Action<JetBrains.DataFlow.PropertyChangedEventArgs<JetBrains.DataFlow.DataFlowDirection>> handler) + 0x250 bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.Signal<System.__Canon>.Advise(System.Action<System.__Canon> handler) + 0x6 bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.ISignalEx.Advise_HasNew<JetBrains.DataFlow.DataFlowDirection>(JetBrains.DataFlow.ISignal<JetBrains.DataFlow.PropertyChangedEventArgs<JetBrains.DataFlow.DataFlowDirection>> signal, System.Action<JetBrains.DataFlow.PropertyChangedEventArgs<JetBrains.DataFlow.DataFlowDirection>> handler) + 0x4d bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.PropertyBinding<System.__Canon,bool>.InitDataFlow() + 0x15d bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.PropertyBinding<System.__Canon,bool>.PropertyBinding(JetBrains.DataFlow.IProperty<System.__Canon> source, JetBrains.DataFlow.IProperty<bool> target, JetBrains.DataFlow.DataFlowDirection direction, System.Func<System.__Canon,bool> delegateSourceToTarget, System.Func<bool,System.__Canon> delegateTargetToSource, object oSourceCookie, object oTargetCookie) + 0x22f bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.PropertyBinding.Create<System.__Canon,bool>(JetBrains.DataFlow.IProperty<System.__Canon> source, JetBrains.DataFlow.IProperty<bool> target, System.Func<System.__Canon,bool> delegateSourceToTarget) + 0x46 bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.DataFlow.IPropertyEx.FlowInto<System.__Canon,bool>(JetBrains.DataFlow.IProperty<System.__Canon> source, JetBrains.DataFlow.IProperty<bool> target, System.Func<System.__Canon,bool> converter) + 0x33 bytes 
  JetBrains.Platform.ReSharper.UI.dll!JetBrains.UI.Application.ExceptionReport.ExceptionBrowserForm.InitializePendingPage.AnonymousMethod(System.Windows.Forms.FlowLayoutPanel submitPanel) + 0x20c bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.Util.Special.GeneralUtil.With<System.__Canon>(System.__Canon control = {System.Windows.Forms.FlowLayoutPanel, BorderStyle: System.Windows.Forms.BorderStyle.None}, System.Action<System.__Canon> action) + 0xf bytes 
  JetBrains.Platform.ReSharper.UI.dll!JetBrains.UI.Application.ExceptionReport.ExceptionBrowserForm.InitializePendingPage.AnonymousMethod(System.Windows.Forms.TableLayoutPanel panel = {System.Windows.Forms.TableLayoutPanel, BorderStyle: System.Windows.Forms.BorderStyle.None}) + 0x342 bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.Util.Special.GeneralUtil.With<System.__Canon>(System.__Canon control = {System.Windows.Forms.TableLayoutPanel, BorderStyle: System.Windows.Forms.BorderStyle.None}, System.Action<System.__Canon> action) + 0xf bytes 
  JetBrains.Platform.ReSharper.UI.dll!JetBrains.UI.Application.ExceptionReport.ExceptionBrowserForm.InitializePendingPage(System.Windows.Forms.Control page) + 0x6f bytes 
  JetBrains.Platform.ReSharper.UI.dll!JetBrains.UI.Application.ExceptionReport.ExceptionBrowserForm.InitializeForm.AnonymousMethod(System.Windows.Forms.TableLayoutPanel mainLayoutPanel) + 0x21c bytes 
  JetBrains.Platform.ReSharper.Util.dll!JetBrains.Util.Special.GeneralUtil.With<System.__Canon>(System.__Canon control = {System.Windows.Forms.TableLayoutPanel, BorderStyle: System.Windows.Forms.BorderStyle.None}, System.Action<System.__Canon> action) + 0xf bytes 
  JetBrains.Platform.ReSharper.UI.dll!JetBrains.UI.Application.ExceptionReport.ExceptionBrowserForm.InitializeForm() + 0x76 bytes 
  JetBrains.Platform.ReSharper.UI.dll!JetBrains.UI.Application.ExceptionReport.ExceptionBrowserForm.ExceptionBrowserForm(JetBrains.DataFlow.ICollectionEvents<JetBrains.Application.ExceptionReport.ExceptionData> exceptions, JetBrains.Application.ExceptionReport.IIssueTracker issueTracker) + 0x1d8 bytes 
  JetBrains.Platform.ReSharper.UI.dll!JetBrains.UI.Application.ExceptionReport.UIExceptionReportServiceComponent.ShowExceptionBrowser() + 0xae bytes 
  JetBrains.Platform.ReSharper.UI.dll!JetBrains.UI.Application.ExceptionReport.ExceptionNotifierPopupWindow.HandleClick(object sender, System.Windows.Forms.MouseEventArgs e) + 0x42 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.OnMouseClick(System.Windows.Forms.MouseEventArgs e) + 0x6d bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.WmMouseUp(ref System.Windows.Forms.Message m = {msg=0x202 (WM_LBUTTONUP) hwnd=0x14077e wparam=0x0 lparam=0xf0083 result=0x0}, System.Windows.Forms.MouseButtons button = Left, int clicks = 1) + 0x1b2 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.WndProc(ref System.Windows.Forms.Message m) + 0x885 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Label.WndProc(ref System.Windows.Forms.Message m) + 0x34 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(ref System.Windows.Forms.Message m) + 0x10 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.Control.ControlNativeWindow.WndProc(ref System.Windows.Forms.Message m) + 0x31 bytes 
  System.Windows.Forms.dll!System.Windows.Forms.NativeWindow.DebuggableCallback(System.IntPtr hWnd, int msg = 514, System.IntPtr wparam, System.IntPtr lparam) + 0x57 bytes 
]]>

1 comment

I reverted to 1219, then to 1216 and continued to get the problem.
 
I then reverted to version 4.1, version 943. The solution still got an OutOfMemory exception, but Resharper caught it. (I couldn't submit the issue, but the stack trace from the Resharper 4.1 error handler is below.)
 
Assuming that the problem was more with the solution cache than anything else, I put 1220 back on, cleared the Resharper cache and deleted the Solution User Options file (which was huge!) and Resharper options files.
 
The OutOfMemory exceptions are now gone.
 
I have to assume that something in the Solution User Options file or the cache got messed up, causing the problems.
 
My conclusion - clear caches and Solution User Options files before getting too worried!

Glen
 
 
 
JetBrains.Util.LoggerException: Exception of type 'System.OutOfMemoryException' was thrown. ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
   at System.String.CtorCharArrayStartLength(Char[] value, Int32 startIndex, Int32 length)
   at System.Xml.XmlTextReaderImpl.NodeData.get_StringValue()
   at System.Xml.XmlTextReaderImpl.ReadAttributeValue()
   at System.Xml.XmlLoader.LoadAttributeNode()
   at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
   at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
   at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
   at System.Xml.XmlDocument.Load(XmlReader reader)
   at System.Xml.XmlDocument.Load(TextReader txtReader)
   at JetBrains.ReSharper.Psi.Impl.Reflection2.ExternalAnnotationsFile.TryLoadXmlAnnotations(FileSystemPath path, IAssembly assembly) in c:\Agent\work\bf8610877bd2ee35\src\Psi\src\impl\reflection2\ExternalAnnotationsFile.cs:line 143
   at JetBrains.ReSharper.Psi.Impl.Reflection2.ExternalAnnotationsFile.Load(IAssembly assembly) in c:\Agent\work\bf8610877bd2ee35\src\Psi\src\impl\reflection2\ExternalAnnotationsFile.cs:line 115
   at JetBrains.ReSharper.Psi.Impl.Reflection2.ReflectionPsiCacheManagerImpl.LoadAssembly(IAssembly assembly) in c:\Agent\work\bf8610877bd2ee35\src\Psi\src\impl\reflection2\ReflectionPsiCacheManager.cs:line 130
   at JetBrains.ReSharper.Psi.Impl.Caches2.SymbolCache.SymbolCache.OnAssemblyAdded(IAssembly assembly, IProgressIndicator progress) in c:\Agent\work\bf8610877bd2ee35\src\Psi\src\impl\caches2\symbolCache\SymbolCache.cs:line 649
   at JetBrains.ReSharper.Psi.Impl.Caches2.CompositeCache.OnAssemblyAdded(IAssembly assembly, IProgressIndicator progress) in c:\Agent\work\bf8610877bd2ee35\src\Psi\src\impl\caches2\CompositeCache.cs:line 194
   at JetBrains.ReSharper.Psi.Impl.Caches2.CacheUpdater.AddAssemblyJob.Do(IProgressIndicator progress) in c:\Agent\work\bf8610877bd2ee35\src\Psi\src\impl\caches2\symbolCache\CacheUpdater.cs:line 298
   at JetBrains.ReSharper.Psi.Impl.Caches2.CacheUpdateThread.Run() in c:\Agent\work\bf8610877bd2ee35\src\Psi\src\impl\caches2\CacheUpdateThread.cs:line 106
   --- End of inner exception stack trace ---
 
 at JetBrains.Util.Logger.LogException(Exception) in c:\Agent\work\bf8610877bd2ee35\Platform\src\Util\src\Logger\Logger.cs:line 441 column 5
 at JetBrains.ReSharper.Psi.Impl.Caches2.CacheUpdateThread.Run() in c:\Agent\work\bf8610877bd2ee35\src\Psi\src\impl\caches2\CacheUpdateThread.cs:line 114 column 7
 at System.Threading.ThreadHelper.ThreadStart_Context(Object)
 at System.Threading.ExecutionContext.Run(ExecutionContext, ContextCallback, Object)
 at System.Threading.ThreadHelper.ThreadStart()
]]>

0

Please sign in to leave a comment.