Persist open repository tabs during use so sessions survive crashes

XMLWordPrintable

    • Type: Suggestion
    • Resolution: Unresolved
    • None
    • Component/s: Git
    • None

      SourceTree 3.4.30 on Windows 11 crashes approximately every one or two days. I experienced recurring crashes on my previous laptop as well.

      After a crash, my current set of open repository tabs is not restored, requiring me to manually reopen the repositories I was working on.

      Please persist the open repository tabs and their order whenever tabs are opened, closed, or rearranged, rather than relying on a successful application exit. On startup after a crash, SourceTree should restore the most recently saved session.

      SRCTREEWIN-14714 describes this session-loss behavior but was closed as “Not a bug.” I am requesting an improvement to support recovery after unexpected termination.

      My crash also has the same exception and leading stack frames reported in SRCTREEWIN-14613, which was closed as “Cannot Reproduce.” The attached Event Viewer output shows it occurring in version 3.4.30.

      Fixing the crash remains important, but session recovery would reduce the disruption whenever an unexpected termination occurs.

       

      I've included the crash information even though this is a suggestion ticket, these have been provided by other users that were closed due to not being able to repeat:

      Application: SourceTree.exe
      Framework Version: v4.0.30319
      Description: The process was terminated due to an unhandled exception.
      Exception Info: System.InvalidOperationException
         at DynamicData.Kernel.OptionExtensions.ValueOrThrow[[DynamicData.Kernel.ItemWithIndex`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], DynamicData, Version=6.13.0.0, Culture=neutral, PublicKeyToken=null]](DynamicData.Kernel.Optional`1<DynamicData.Kernel.ItemWithIndex`1<System.__Canon>>, System.Func`1<System.Exception>)
         at DynamicData.List.Internal.Filter`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].Process(DynamicData.ChangeAwareList`1<ItemWithMatch<System._Canon>>, DynamicData.IChangeSet`1<ItemWithMatch<System._Canon>>)
         at System.Reactive.Linq.ObservableImpl.Select`2+Selector+[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnNext(System._Canon)
         at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
         at System.Reactive.Stubs+<>c.<.cctor>b__2_1(System.Exception)
         at System.Reactive.ObserverBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnError(System.Exception)
         at System.Reactive.AutoDetachObserver`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnErrorCore(System.Exception)
         at System.Reactive.ObserverBase`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnError(System.Exception)
         at System.Reactive.Sink`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ForwardOnError(System.Exception)
         at System.Reactive.Sink`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ForwardOnError(System.Exception)
         at System.Reactive.Concurrency.Synchronize`1+_[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].OnError(System.Exception)
         at System.Reactive.Sink`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].ForwardOnError(System.Exception)
         at System.Reactive.ObserveOnObserverNew`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].DrainStep(System.Collections.Concurrent.ConcurrentQueue`1<System.__Canon>)
         at System.Reactive.ObserveOnObserverNew`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].DrainShortRunning(System.Reactive.Concurrency.IScheduler)
         at System.Reactive.Concurrency.DispatcherScheduler+<>c_DisplayClass12_0`1[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].<Schedule>b_0()
         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 MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
         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()

      Faulting application name: SourceTree.exe, version: 3.4.30.0, time stamp: 0x69a1c4e1
      Faulting module name: KERNELBASE.dll, version: 10.0.26100.9711, time stamp: 0xfb9071fb
      Exception code: 0xe0434352
      Fault offset: 0x00000000000c408a
      Faulting process id: 0x4EA4
      Faulting application start time: 0x1DD721E62903873
      Faulting application path: C:\Users\<username>\AppData\Local\SourceTree\app-3.4.30\SourceTree.exe
      Faulting module path: C:\WINDOWS\System32\KERNELBASE.dll
      Report Id: <redacted>
      Faulting package full name: 
      Faulting package-relative application ID: 

      Fault bucket 0, type 5
      Event Name: CLR20r3
      Response: Not available
      Cab Id: 0

      Problem signature:
      P1: SourceTree.exe
      P2: 3.4.30.0
      P3: 69a1c4e1
      P4: DynamicData
      P5: 6.13.1.6670
      P6: f41c7880
      P7: 572
      P8: 3
      P9: System.InvalidOperationException
      P10: 

      Analysis symbol: 
      Rechecking for solution: 0
      Report Id: <redacted>
      Report Status: 268435456
      Hashed bucket: <redacted>
      Cab Guid: 0

       

              Assignee:
              Unassigned
              Reporter:
              ens121
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: