I'm working on a new plguin for R#6.1 and I get exceptions each time I'm saving the options why ?

Hello,

I don't think it has anything to do with the plugin itself, is it ?

Here is the exception.

The lifetime has already been terminated. Object name: 'Lifetime'.

--- EXCEPTION #1/2 [ObjectDisposedException]
Message = “The lifetime has already been terminated.”
ExceptionPath = Root.InnerException
ClassName = System.ObjectDisposedException
HResult = COR_E_OBJECTDISPOSED=80131622
Source = JetBrains.Platform.ReSharper.Util
ObjectName = Lifetime
StackTraceString = “
  at JetBrains.DataFlow.LifetimeEx.AssertIsAlive(Lifetime th?s)
     at JetBrains.Application.Settings.Store.Implementation.ContextBoundSettingsStoreTransient.JetBrains.Application.Settings.IContextBoundSettingsStore.SetValue(SettingsScalarEntry entry, Object value, IDictionary`2 keyIndices)
     at JetBrains.Application.Settings.Store.Implementation.ContextBoundSettingsStoreLive.ValuePropertiesSupport.ValuePropertiesSupportThread.ValueProperty`1.<>c__DisplayClass4c.<>c__DisplayClass50.<.ctor>b__49()
     at JetBrains.Util.ILoggerEx.Catch(ILogger th?s, Action F, ExceptionOrigin origin)


--- Outer ---

--- EXCEPTION #2/2 [LoggerException]
Message = “
  The lifetime has already been terminated.
  Object name: 'Lifetime'.

ExceptionPath = Root
ClassName = JetBrains.Util.LoggerException
InnerException = “Exception #1 at Root.InnerException”
HResult = COR_E_APPLICATION=80131600
StackTraceString = “
  at JetBrains.Util.Logger.LogException(Exception ex)
     at JetBrains.Application.ComponentModel.LoggerComponent.JetBrains.Util.ILogger.LogException(Exception ex, ExceptionOrigin origin)
     at JetBrains.Application.Settings.Logging.SettingsLogging.FilterOuterWorldExceptionsLogger.LogExceptionCore(Exception ex, ExceptionOrigin origin)
     at JetBrains.Application.Settings.Logging.SettingsLogging.FilterOuterWorldExceptionsLogger.JetBrains.Util.ILogger.LogException(Exception ex, ExceptionOrigin origin)
     at JetBrains.Util.ILoggerEx.Catch(ILogger th?s, Action F, ExceptionOrigin origin)
     at JetBrains.Util.ILoggerEx.CatchAsForeignException(ILogger th?s, Action F)
     at JetBrains.Application.Settings.Store.Implementation.ContextBoundSettingsStoreLive.ValuePropertiesSupport.ValuePropertiesSupportThread.ValueProperty`1.<>c__DisplayClass4c.<.ctor>b__48(PropertyChangedEventArgs`1 args)
     at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value)
     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.UI.Settings.OwnedDialogPosition.<>c__DisplayClass3.<BindToSettings>b__1()
     at JetBrains.DataFlow.Lifetime.Terminate()
     at JetBrains.DataFlow.LifetimeDefinition.Terminate()
     at JetBrains.DataFlow.Lifetime.<>c__DisplayClassa.<AttachNested>b__6()
     at JetBrains.DataFlow.Lifetime.Terminate()
     at JetBrains.DataFlow.LifetimeDefinition.Terminate()
     at JetBrains.UI.Options.OptionsDialogOwner.<>c__DisplayClass7.<>c__DisplayClassb.<.ctor>b__2(Object sender, EventArgs args)
     at System.Windows.Window.OnClosed(EventArgs e)
     at System.Windows.Window.WmDestroy()
     at System.Windows.Window.WindowFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
     at System.Windows.Interop.HwndSource.PublicHooksFilterMessage(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 System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
     at System.Windows.Forms.Integration.WindowsFormsHost.ActivateWindowListener.WndProc(Message& m)
     at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
     at System.Windows.Forms.Integration.WindowsFormsHost.ActivateWindowListener.WndProc(Message& m)
     at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     at MS.Win32.UnsafeNativeMethods.UnsafeSendMessage(IntPtr hWnd, WindowMessage msg, IntPtr wParam, IntPtr lParam)
     at System.Windows.Window.InternalClose(Boolean shutdown, Boolean ignoreCancel)
     at System.Windows.Window.Close()
     at System.Windows.Window.set_DialogResult(Nullable`1 value)
     at JetBrains.UI.Options.OptionsDialog2.OptionsDialogView.<OnSourceInitialized>b__0(Boolean x)
     at JetBrains.DataFlow.Signal`1.NotifySinks(TValue payload)
     at JetBrains.DataFlow.Signal`1.Fire(TValue value, Object cookie)
     at JetBrains.DataFlow.SimpleSignal.Fire()
     at JetBrains.UI.Options.OptionsDialog2.OptionsDialogUidata.<>c__DisplayClass17.<.ctor>b__3()
     at JetBrains.Threading.ReentrancyGuard.Execute(String name, Action action)
     at JetBrains.Threading.ReentrancyGuard.TryExecute(String name, Action action)
     at JetBrains.Threading.ReentrancyGuardEx.ExecuteOrQueue(ReentrancyGuard th?s, Lifetime lifetime, String name, Action F)
     at JetBrains.Threading.IThreadingEx.ExecuteOrQueue(IThreading th?s, Lifetime lifetime, String name, Action action)
     at JetBrains.UI.Options.OptionsDialog2.OptionsDialogUidata.<>c__DisplayClass17.<.ctor>b__2()
     at JetBrains.UI.Extensions.Commands.DelegateCommand.<>c__DisplayClass4.<.ctor>b__0(Object o)
     at JetBrains.UI.Extensions.Commands.DelegateCommand.Execute(Object parameter)
     at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
     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 System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr wndProc, IntPtr hWnd, Int32 msg, IntPtr wParam, IntPtr lParam)
     at System.Windows.Forms.NativeWindow.DefWndProc(Message& m)
     at System.Windows.Forms.Integration.WindowsFormsHost.ActivateWindowListener.WndProc(Message& m)
     at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
     at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
     at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
     at System.Windows.Window.ShowHelper(Object booleanBox)
     at System.Windows.Window.Show()
     at System.Windows.Window.ShowDialog()
     at JetBrains.UI.CrossFramework.WindowsFormsIntegration.ShowDialog(Window window, IWin32Window win32Owner)
     at JetBrains.UI.Application.WindowUtil.<>c__DisplayClass1c.<ShowDialogWithGuardedCreation>b__18(LifetimeDefinition lifetimeDefinitionDialog, Lifetime lifetimeDialog)
     at JetBrains.DataFlow.Lifetimes.Define(Lifetime lifetime, String id, Action`2 FAtomic, ILogger logger)
     at JetBrains.UI.Application.WindowUtil.<>c__DisplayClass1c.<ShowDialogWithGuardedCreation>b__17()
     at JetBrains.Util.Logger.Catch(Action action)
     at JetBrains.UI.Application.WindowUtil.ShowDialogWithGuardedCreation(Lifetime lifetime, Modality modality, Func`3 FCreateView, IThreading threading, Object ownerwindow)
     at JetBrains.UI.Application.WindowUtil.<>c__DisplayClass1c.<>c__DisplayClass20.<ShowDialogWithGuardedCreation>b__1a()
     at JetBrains.Util.Logger.Catch(Action action)
     at JetBrains.Threading.IThreadingEx.<>c__DisplayClass7.<>c__DisplayClass9.<ExecuteOrQueueWhenNotGuarded>b__4()
     at JetBrains.Threading.JetDispatcher.Closure.Execute()
     at JetBrains.Threading.JetDispatcher.ProcessQueue()
     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)

0

Please sign in to leave a comment.