Sourcetree crashes with Git Flow features
Asked by Karl Beaver:

Sourcetree 3.3.8.3848 on Windows 10 1803.

With a Git Flow enabled repo, any time I attempt to create a feature branch via the menu (Repository \> Git-flow \> Start New Feature) Sourcetree immediately crashes with a BugSplat popup. Note I am using Embedded Git v 2.24.1 with git-lfs v2.9.1. The repository configuration file has the \[gitflow "prefix"\], \[gitflow "branch"\], \[gitflow "path"\] blocks defined. Any ideas?

```
DEBUG [2020-06-10 10:50:01,800] [37] [SourceTree.Utils.RepoProcess] [Log] - Elapsed time localprocess [14439320] [00:00:00.1306087]
DEBUG [2020-06-10 10:50:15,392] [39] [SourceTree.Utils.RepoProcess] [Log] - Initialize localprocess [45712546]
DEBUG [2020-06-10 10:50:15,392] [39] [SourceTree.Utils.RepoProcess] [Log] - Start localprocess [45712546] [D:\srcrepo>C:\Users\redacted\AppData\Local\Atlassian\SourceTree\git_local\cmd\git.exe flow version]

env=[git_ssh=C:\Users\redacted\AppData\Local\SourceTree\app-3.3.8\tools\putty\plink.exe,path=C:\Users\redacted\AppData\Local\Atlassian\SourceTree\git_extras;C:\Users\redacted\AppData\Local\Atlassian\SourceTree\gitflow_local\gitflow;C:\Users\redacted\AppData\Local\Atlassian\SourceTree\git_local\bin;C:\Users\redacted\AppData\Local\Atlassian\SourceTree\git_local\mingw32\bin;C:\Users\redacted\AppData\Local\Atlassian\SourceTree\git_local\mingw64\bin;C:\Users\redacted\AppData\Local\SourceTree\app-3.3.8\tools;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program Files\RSA SecurID Token 
...
[REDACTED ENV VARS]
...
DEBUG [2020-06-10 10:50:16,802] [39] [SourceTree.Utils.RepoProcess] [Log] - Completed localprocess [45712546] [0] [1.12.3 (AVH Edition)
] []
DEBUG [2020-06-10 10:50:16,802] [39] [SourceTree.Utils.RepoProcess] [Log] - Elapsed time localprocess [45712546] [00:00:01.4100872]
DEBUG [2020-06-10 10:50:16,848] [39] [SourceTree.Model.Repository] [Log] - Called Checksummary for [D:\srcrepo]
ERROR [2020-06-10 10:50:16,872] [48] [SourceTree.Analytics.Crash.BugSplat.CrashAnalyticsService] [Log] - UnhandledExceptionHandler for [Sourcetree, 3.3.8.3848] called with [Name:SourceTree.exe
There are no context policies.
, System.UnhandledExceptionEventArgs]
System.NotSupportedException: This type of CollectionView does not support changes to its SourceCollection from a thread different from the Dispatcher thread.
at System.Windows.Data.CollectionView.OnCollectionChanged(Object sender, NotifyCollectionChangedEventArgs args)
at System.Collections.ObjectModel.ObservableCollection`1.OnCollectionChanged(NotifyCollectionChangedEventArgs e)
at System.Collections.ObjectModel.ObservableCollection`1.InsertItem(Int32 index, T item)
at SourceTree.ViewModel.Flow.FlowStartPanelViewModel.<InitAsync>d__42.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at SourceTree.ViewModel.Flow.FlowContainerDialogViewModel.<ChangeMode>d__24.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
```


Answers:
author: Nicolas Clemeur
body: I have also the same issue but it is not happening consistently, it just crash about 1 times out of 5...


author: Thomas Bastiaansen
body: Hi, I am facing some similar issues with a curring project.

I was able to still create features by executing the command in the terminal instead of using the Sourcetree interface. Hope it helps


author: Ren? Petersen
body: That same thing happens for me also!


Tags: crash

git-flow