System.OutOfMemoryException in Resharper 7.1
---------------------------
ReSharper – Runtime Error – Technical Data
---------------------------
JetBrains ReSharper has encountered a runtime error.
Technical data follows.
Hint: Ctrl+C copies the text of system message boxes to Clipboard.
________________________________________________________________
Exception of type 'System.OutOfMemoryException' was thrown.
--- EXCEPTION #1/2 [OutOfMemoryException]
ExceptionPath = Root.InnerException
ClassName = System.OutOfMemoryException
HResult = -2147024882
Source = mscorlib
StackTraceString = “
at System.IO.FileStream.Read(Byte[] array, Int32 offset, Int32 count)
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt32()
at JetBrains.Metadata.Reader.Impl.EmbeddedManifestResourceDisposition.CreateResourceReader()
at JetBrains.ActionManagement.ActionLoader.ActionLoader.Init_ActionXmlsAndHandlersFromAssemblies_Load(List`1 actionxmls, ICollection`1 actionhandlers, IApplicationDescriptor applicationDescriptor, IDictionary`2 mapIconClasses)
”
--- Outer ---
--- EXCEPTION #2/2 [LoggerException]
Message = “Exception of type 'System.OutOfMemoryException' was thrown.”
ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = -2146232832
StackTraceString = “
at JetBrains.ActionManagement.ActionLoader.ActionLoader.Init_ActionXmlsAndHandlersFromAssemblies_Load(List`1 actionxmls, ICollection`1 actionhandlers, IApplicationDescriptor applicationDescriptor, IDictionary`2 mapIconClasses)
at JetBrains.ActionManagement.ActionLoader.ActionLoader.<>c__DisplayClass10.<>c__DisplayClass14.<Init_ActionXmlsAndHandlersFromAssemblies>b__e()
at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)
at JetBrains.ActionManagement.ActionLoader.ActionLoader.<>c__DisplayClass10.<Init_ActionXmlsAndHandlersFromAssemblies>b__9(Lifetime lifetimeCatalog, IPartsCatalogue catalog)
at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass12`1.<>c__DisplayClass16.<ForEachItemCore>b__10()
at JetBrains.Util.Logger.Catch(Action action)
at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass12`1.<ForEachItemCore>b__f(AddRemoveEventArgs`1 args)
at JetBrains.DataFlow.CollectionEvents`1.OnAcknowledgeSinkAddRemove(Action`1 handler, AddRemove addremove)
at JetBrains.DataFlow.CollectionEvents`1.<.ctor>b__0(Action`1 handler)
at JetBrains.DataFlow.Infra.SignalWithDelegates`1.OnAfterAdvise(Action`1 handler)
at JetBrains.DataFlow.Signal`1.<>c__DisplayClass2.<AdviseCore>b__0()
at JetBrains.DataFlow.Lifetime.AddBracket(Action FOpening, Action FClosing)
at JetBrains.DataFlow.Signal`1.AdviseCore(Action`1 handler, Lifetime lifetime)
at JetBrains.DataFlow.Signal`1.Advise(Lifetime lifetime, Action`1 handler)
at JetBrains.DataFlow.ICollectionEventsEx.ForEachItemCore[TValue](ICollectionEvents`1 thіs, Lifetime lifetime, Action`2 FHandlerA, Action`3 FHandlerB)
at JetBrains.DataFlow.ICollectionEventsEx.ForEachItem[TValue](ICollectionEvents`1 thіs, Lifetime lifetime, Action`2 FHandler)
at JetBrains.DataFlow.CollectionEvents`1.View(Lifetime lifetime, Action`2 viewer)
at JetBrains.ActionManagement.ActionLoader.ActionLoader.Init_ActionXmlsAndHandlersFromAssemblies(PartsCatalogueSet catalogSet, IApplicationDescriptor applicationDescriptor)
at JetBrains.VsIntegration.ActionManagement.VsActionLoader..ctor(Lifetime lifetime, VsActionManager actionManager, IShortcutManager shortcutManager, PartsCatalogueSet catalogSet, IApplicationDescriptor applicationDescriptor, ProductConfigurations productConfigurations, DTE dte)
at System.RuntimeMethodHandle._InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct& signature, RuntimeType declaringType)
at System.RuntimeMethodHandle.InvokeConstructor(IRuntimeMethodInfo method, Object[] args, SignatureStruct signature, RuntimeType declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstanceImpl()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstance()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstanceChecked(OnError onError)
at JetBrains.Application.Components.TypeComponentDescriptor.get_Instance()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstanceImpl()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstance()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstanceChecked(OnError onError)
at JetBrains.Application.Components.TypeComponentDescriptor.get_Instance()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstanceImpl()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstance()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstanceChecked(OnError onError)
at JetBrains.Application.Components.TypeComponentDescriptor.get_Instance()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstanceImpl()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstance()
at JetBrains.Application.Components.TypeComponentDescriptor.CreateInstanceChecked(OnError onError)
at JetBrains.Application.Components.TypeComponentDescriptor.get_Instance()
at JetBrains.Application.Components.ComponentContainer.ResolveDescriptors(IEnumerable`1 descriptors)
at JetBrains.Application.Components.ComponentContainer.Compose()
at JetBrains.Application.Env.RunsProducts.RunProduct(Lifetime lifetimeProduct, IApplicationDescriptor product, IEnumerable`1 enumProgramConfigurationsProviders, JetEnvironment environment, IDictionaryEvents`2 productsNonComposed, IDictionaryEvents`2 productsComposed)
at JetBrains.Application.Env.RunsProducts.<>c__DisplayClass19.<Init_RunWhenAllowed>b__18(Lifetime lifetimeProduct, IApplicationDescriptor product)
at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass12`1.<>c__DisplayClass16.<ForEachItemCore>b__10()
at JetBrains.Util.Logger.Catch(Action action)
at JetBrains.DataFlow.ICollectionEventsEx.<>c__DisplayClass12`1.<ForEachItemCore>b__f(AddRemoveEventArgs`1 args)
at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
at JetBrains.DataFlow.CollectionEvents`1.FireAddRemove(AddRemove action, TValue value, Object cookie)
at JetBrains.DataFlow.CollectionEvents`1.InternalAdd(TValue value, Object cookie)
at JetBrains.DataFlow.CollectionEvents`1.Add(TValue value, Object cookie)
at JetBrains.DataFlow.ICollectionEventsEx.Add[TValue](ICollectionEvents`1 thіs, Lifetime lifetime, TValue value, Object cookie)
at JetBrains.Application.Env.RunsProducts.<>c__DisplayClass7.<>c__DisplayClass9.<Init_CollectProductsAllowedToRun>b__5(Lifetime lifeVerdict, ProductCanBeStartedVerdict verdict)
at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass23`1.<>c__DisplayClass25.<ForEachValue>b__22(Lifetime lifetimeValue)
at JetBrains.DataFlow.SequentialLifetimes.<>c__DisplayClass3.<Next>b__2(LifetimeDefinition definition, Lifetime lifetime)
at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)
at JetBrains.DataFlow.SequentialLifetimes.DefineNext(Action`2 FNext)
at JetBrains.DataFlow.SequentialLifetimes.Next(Action`1 FNext)
at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClass23`1.<ForEachValue>b__21(PropertyChangedEventArgs`1 args)
at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
at JetBrains.DataFlow.Property`1.set_Value(TValue value)
at JetBrains.Application.ComposeVerdictWithPriority.UpdateActiveTellers[TVerdict](Lifetime lifetimeComponent, List`1 tellers, IProperty`1 propComposite)
at JetBrains.Application.ComposeVerdictWithPriority.<>c__DisplayClassc`1.<UpdateActiveTellers>b__a()
at JetBrains.DataFlow.IPropertySignalEx.<>c__DisplayClass1f`1.<Advise_NoAcknowledgement>b__1e(PropertyChangedEventArgs`1 args)
at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
at JetBrains.DataFlow.IPropertyEx.<>c__DisplayClasse`2.<FlowInto>b__d(PropertyChangedEventArgs`1 args)
at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
at JetBrains.DataFlow.Property`1.FireChange(TValue old, TValue new, Object cookie)
at JetBrains.DataFlow.Property`1.SetValue(TValue value, Object cookie)
at JetBrains.Application.Env.Components.SuspendResume.Resume()
at JetBrains.VsIntegration.Package.VsPackageGeneralOptionsPage.<>c__DisplayClass2a.<CreateView_ResumeOrSuspend>b__22(SuspendResume sr)
at JetBrains.Util.Special.GeneralUtil.WithNotNull[T](T item, Action`1 F)
at JetBrains.VsIntegration.Package.VsPackageGeneralOptionsPage.<>c__DisplayClass2a.<CreateView_ResumeOrSuspend>b__21()
at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
at JetBrains.Threading.ReentrancyGuard.ExecuteOrQueue(String name, Action action)
at JetBrains.VsIntegration.Package.VsPackageGeneralOptionsPage.<>c__DisplayClass2a.<CreateView_ResumeOrSuspend>b__20()
at JetBrains.Util.Logger.Catch(Action action)
at JetBrains.UI.Avalon.AvalonEx.<>c__DisplayClassa`1.<OnEvent>b__9(Object sender, RoutedEventArgs e)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
at System.Windows.Controls.Primitives.ButtonBase.OnClick()
at System.Windows.Controls.Button.OnClick()
at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
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)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at Microsoft.VisualStudio.Shell.Interop.IVsUIDataSource.Invoke(String verb, Object pvaIn, Object& pvaOut)
at Microsoft.Internal.VisualStudio.PlatformUI.DataSource.Invoke(String verb, Object pvaIn, Object& pvaOut)
at Microsoft.VisualStudio.PlatformUI.VsCommand.Execute(Object parameter)
at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
at System.Windows.Controls.MenuItem.InvokeClickAfterRender(Object arg)
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)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.runTryCode(Object userData)
at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(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)
at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
”
---------------------------
OK
---------------------------
This happens an every start of Visual Studio when Resharper process source files.
And it doesn't depend on code analysis on or off.
Any idea?
Machine: Windows Server 2003 3GB Ram
Visual Studio 2010 Sp1
thx for help
Martin
Please sign in to leave a comment.
Hello Martin,
This is happening because of Windows Server 2003 - OS with old memory management system. Unfortunately we can't avoid this.
You may try to increase overall RAM and Virtual Memory amount for your system; as well as consider upgrading OS to newer 64-bit versions, like Windows 7.
Also, we've been reported that following these instarutions may help: http://mkwec.de/2010/01/08/make-visual-studio-use-more-than-2-gig-of-memory/
We apologize for the inconvenience.
Thank you.
much thanks Alex.
I try to upgrade to Enterprise Version. This version support a bigger Memorymanagement.
Thats all i can do now because we still use Microsoft Commerce Server so we are restricted :-(
regards
Martin