Crash after closing Sourcetree with System.InvalidOperationException

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Low
    • None
    • Affects Version/s: 2.3.5.0
    • Component/s: None
    • Environment:

      OS: Windows 7 64 Bit
      Sourcetree: 2.3.5.0

    • Severity 3 - Minor

      Crash of the application happened today after closing Sourcetree with normal use during the day.

      Since I could not find any detailed logfile in AppData\Local\SourceTree-Settings I checked the Windows Event Viewer.

      Eventviewer showed this entry (next to the kernel crash and a notification about a saved .wer crash file)

      Application: SourceTree.exe
      Framework Version: v4.0.30319
      Description: The process was terminated due to an unhandled exception.
      Exception Info: System.InvalidOperationException
         at System.Diagnostics.Process.EnsureState(State)
         at System.Diagnostics.Process.get_HasExited()
         at SourceTree.Utils.RepoProcess.Terminate()
         at SourceTree.Utils.RepoProcessFactory.Dispose()
         at SourceTree.AppRoot.OnExit(System.Windows.ExitEventArgs)
         at SourceTree.App.OnExit(System.Windows.ExitEventArgs)
         at System.Windows.Application.DoShutdown()
         at System.Windows.Application.ShutdownImpl()
         at System.Windows.Application.ShutdownCallback(System.Object)
         at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
         at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
         at System.Windows.Threading.DispatcherOperation.InvokeImpl()
         at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
         at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
         at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
         at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
         at System.Windows.Threading.DispatcherOperation.Invoke()
         at System.Windows.Threading.Dispatcher.ProcessQueue()
         at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
         at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
         at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
         at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
         at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
         at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
         at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
         at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
         at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
         at System.Windows.Application.RunDispatcher(System.Object)
         at System.Windows.Application.RunInternal(System.Windows.Window)
         at SourceTree.App.Main()
      

      Also a wer file was created if required which was reported after the kernel crash message in the eventlog.

      Issue could not be reproduced but has happened in the past but not regularly or reproducibly.

            Assignee:
            Unassigned
            Reporter:
            Michael Benz
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: