Hello,
Today SourceTree started crashing systematically when I try to do any action. I'm using SourceTree 3.4.26 for Windows.
It's quite similar to this post : https://community.atlassian.com/forums/Sourcetree-questions/SourceTree-3-4-18-crashing-after-Visual-Studio-update/qaq-p/2716330 ; except I did not update VS or git recently AFAIK.
Also quite similar to this JIRA (that is supposed to be fixed) https://jira.atlassian.com/browse/SRCTREEWIN-14457
Here's the stacktrace that seem to cause the crash taken from sourcetree.log :
```
ERROR [2025-10-24 12:27:41,429] [44] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway
ERROR [2025-10-24 12:27:41,429] [44] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - 502
ERROR [2025-10-24 12:27:41,430] [40] [SourceTree.App] [Log] - Object reference not set to an instance of an object. The application is terminating.
System.NullReferenceException: Object reference not set to an instance of an object.
at SourceTree.Analytics.Emau.EMauSubmissionService.<SubmitBatch>d__40.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService.<Submit>d__39.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService.<SubmissionTimer_Elapsed>d__37.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()
ERROR [2025-10-24 12:59:56,955] [25] [SourceTree.Analytics.Services.AnalyticsService] [Log] - POST Interaction 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()
--- 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.TaskAwaiter`1.GetResult()
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.<Post>d__12.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceTree.Analytics.Services.AnalyticsService.<SubmitBatch>d__15.MoveNext()
ERROR [2025-10-24 13:00:10,020] [33] [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()
--- 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.TaskAwaiter`1.GetResult()
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.<Post>d__12.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService.<SubmitBatch>d__40.MoveNext()
ERROR [2025-10-24 13:00:10,088] [7] [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()
--- 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.TaskAwaiter`1.GetResult()
at Atlassian.AnalyticsService.Client.AnalyticsServiceClient.<Post>d__12.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService.<SubmitBatch>d__40.MoveNext()
ERROR [2025-10-24 13:00:10,089] [7] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - Response status code does not indicate success: 502 (Bad Gateway). Bad Gateway
ERROR [2025-10-24 13:00:10,095] [7] [SourceTree.Analytics.Emau.EMauSubmissionService] [Log] - 502
ERROR [2025-10-24 13:00:10,096] [40] [SourceTree.App] [Log] - Object reference not set to an instance of an object. The application is terminating.
System.NullReferenceException: Object reference not set to an instance of an object.
at SourceTree.Analytics.Emau.EMauSubmissionService.<SubmitBatch>d__40.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService.<Submit>d__39.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 System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
at SourceTree.Analytics.Emau.EMauSubmissionService.<SubmissionTimer_Elapsed>d__37.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()
```
What I've tried, w/o success :
- Uninstalling Sourcetree + Wiping all files in AppData/Local/Atlassian, AppData/Local/SourceTree, AppData/Roaming/Atlassian, AppData/Roaming/SourceTree
- Disabling analytics by editing the user.config and adding a key AnalyticsHasAgreed = false
Can I bypass this analytics step somehow ?
Hey @Aurélien Clergeot ,
As Brant mentioned, there have been quite a few reports related to v3.4.26. I'd suggest checking this thread > there's a newly opened bug in JAC on which you can drop a vote.
Cheers,
Tobi
@Aurélien Clergeot there are others reporting the same issue. Do you have any pending windows updates that require reboot? Have you tried rstarting your computer?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I would suggest adding the following to the user.config
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.