I am using SourceTree 3.4.26 with system Git 2.51.1.windows.1 on Windows 11.
Sourctree is randomly crashing, I have tried uninstalling as well as deleting all the data in C:\Users\<user name>\AppData\Local\Atlassian then reinstalling, but the crash still persists
Same problem in my office today (4 people), with the same Sourcetree version. Our git version is 2.40.0.windows.1. We're on Windows 11 as well.
I'm also unable to use SourceTree 3.4.26 at the moment, due to it crashing a few seconds after starting.
Stacktrace from Application Event log:
Application: SourceTree.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.NullReferenceException
at SourceTree.Analytics.Emau.EMauSubmissionService+<SubmitBatch>d__40.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService+<Submit>d__39.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)
at System.Runtime.CompilerServices.TaskAwaiter`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService+<SubmissionTimer_Elapsed>d__37.MoveNext()
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
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.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also some messages in sourcetree.log file, related to Analytics API call - either 502 or 429 error. Adding setting to user.config to 'disable' analytics [https://community.atlassian.com/forums/Sourcetree-questions/Can-analytics-in-Sourcetree-Enterprise-be-disabled/qaq-p/917787] does seem to make it a bit more stable, but does not resolve it entirely.
ERROR [2025-10-24 12:52:34,493] [49] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - POST MAU submission FAILED
Refit.ApiException: Response status code does not indicate success: 502 (Bad Gateway).
at Refit.RequestBuilderImplementation.<>c__DisplayClass15_0`2.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in c:\temp\releaser\refit\Refit\RequestBuilderImplementation.cs:line 399
--- 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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Refit.Implementation.Generated.AtlassianAnalyticsServiceClientApiIBatch.<global::Atlassian-AnalyticsService-Client-Api-IBatch-Put>d__8.MoveNext()
ERROR [2025-10-24 12:52:39,465] [48] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - POST MAU submission FAILED
Refit.ApiException: Response status code does not indicate success: 429 (Too Many Requests).
at Refit.RequestBuilderImplementation.<>c__DisplayClass15_0`2.<<BuildCancellableTaskFuncForMethod>b__0>d.MoveNext() in c:\temp\releaser\refit\Refit\RequestBuilderImplementation.cs:line 399
--- 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 System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
at Refit.Implementation.Generated.AtlassianAnalyticsServiceClientApiIBatch.<global::Atlassian-AnalyticsService-Client-Api-IBatch-Put>d__8.MoveNext()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm having the same issue, and created a bug: SRCTREEWIN-14623
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Daniel, I've voted on it / indicated it affects my team!
Also voted on the duplicate ticket https://jira.atlassian.com/browse/SRCTREEWIN-14622
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are having the same problem. Windows 11, SourceTree 3.4.23 to 3.4.26, with various GIT versions (2.49.x to 2.51.x). Also doesn't matter if we use an embedded GIT or system installed GIT, SourceTree randomly crashes with the error mentioned by Ben Knapp.
Running as admin does not help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same here, crashes after automatic reload of file changes. v3.4.26 on Win11
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Running Sourcetree as administrator seems to have resolved it for now...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.