SourceTree crashes on startup
Asked by Kevin Trombly:

SourceTree crashes anytime I try to start it up. I tried uninstalling it and reinstalling it, but that did literally nothing, because the uninstall didn't actually uninstall it. So I tried clearing out all the settings manually (which really should be a part of the uninstall process) and then tried uninstalling again. And that actually DID uninstall it, but reinstalling it did the exact same thing.

I can get SourceTree working immediately after I fully reinstall it, but as soon as I close it and try starting it again, that's when the crashes start happening.

Here is the information that shows up in the Windows Event Viewer, there are three entries related to SourceTree (any attached temporary files already seem to have been deleted):

Application: SourceTree.exe  
Framework Version: v4.0.30319  
Description: The process was terminated due to an unhandled exception.  
Exception Info: SourceTree.Exceptions.ConnectivityException  
at SourceTree.Exceptions.AbstractRestApiExceptionGenerator.GenerateFromHttpRequestException(System.String, System.Net.Http.HttpRequestException, SourceTree.Model.IAccount)  
at SourceTree.Host.Bitbucket.BitbucketHost+\<ListGroupingsForUser\>d__35.MoveNext()  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)  
at SourceTree.ViewModel.Hosted.HostedProjectsViewModel+\<RefreshGroupingList\>d__95.MoveNext()  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)  
at SourceTree.ViewModel.Hosted.HostedProjectsViewModel+\<\<-ctor\>b__47_8\>d.MoveNext()  
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()  
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.3.9.3870, time stamp: 0x5ec58c28  
Faulting module name: KERNELBASE.dll, version: 6.1.7601.24559, time stamp: 0x5f28ed89  
Exception code: 0xe0434352  
Fault offset: 0x000000000000b87d  
Faulting process id: 0x8d38  
Faulting application start time: 0x01d67d447227998a  
Faulting application path: C:\\Users\\ktrombly\\AppData\\Local\\SourceTree\\app-3.3.9\\SourceTree.exe  
Faulting module path: C:\\Windows\\system32\\KERNELBASE.dll  
Report Id: b7cac70a-e937-11ea-a599-b4b6863bbf39

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

Problem signature:  
P1: SourceTree.exe  
P2: 3.3.9.3870  
P3: 5ec58c28  
P4: SourceTree.Api.Account  
P5: 3.3.9.3870  
P6: 5ec58b48  
P7: 40  
P8: 1a  
P9: OU1ZOTJ23T2KRRHIM0QVCLQ1ETNH0SPP  
P10:

Attached files:  
C:\\Users\\ktrombly\\AppData\\Local\\Temp\\WER5E3.tmp.WERInternalMetadata.xml  
C:\\Users\\ktrombly\\AppData\\Local\\Temp\\WEREE9.tmp.appcompat.txt  
C:\\Users\\ktrombly\\AppData\\Local\\Temp\\WER1022.tmp.hdmp  
C:\\Users\\ktrombly\\AppData\\Local\\Temp\\WER3ABB.tmp.mdmp

These files may be available here:  
C:\\Users\\ktrombly\\AppData\\Local\\Microsoft\\Windows\\WER\\ReportQueue\\AppCrash_SourceTree.exe_3d573932645e7582c1c1153fdb623a6d1c19e672_cab_52b64025

Analysis symbol:  
Rechecking for solution: 0  
Report Id: b7cac70a-e937-11ea-a599-b4b6863bbf39  
Report Status: 5


Answers:
author: Ihor Shutyi
body: Try to install some previous version from here:

<https://www.sourcetreeapp.com/download-archives>

I had the same problem (Win7) and was succeeded with v.3.0.17.

comments: author: Kevin Trombly
body: Ah, yep, I'm definitely on Windows 7. I didn't think to try older versions. That's probably the solution (at least until Atlassian fixes it on their end).

Thanks


author: wuyinyin
body: Thanks, 3.2.1 It's helpful