Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Crash after startup

Over 50% chance Sourcetree will crash after startup, both the release (3.3.8) and the beta version (3.4.4 beta1).


I loaded the dump file in WinDbg, here is the result.


It is a long standing bug. Please check. Thank you.



This dump file has an exception of interest stored in it.
The stored exception information can be accessed via .ecxr.
(154c.3488): CLR exception - code e0434352 (first/second chance not available)
For analysis of this file, run !analyze -v
00007ffa`7b9ed764 c3 ret
0:000> !analyze -v
* *
* Exception Analysis *
* *

*** WARNING: Unable to verify checksum for
*** WARNING: Unable to verify checksum for
*** WARNING: Unable to verify checksum for
*** WARNING: Unable to verify checksum for
DEBUG_FLR_EXCEPTION_CODE(80131509) and the ".exr -1" ExceptionCode(e0434352) don't match


Key : Analysis.CPU.Sec
Value: 41

Key : Analysis.DebugAnalysisProvider.CPP
Value: Create: 8007007e on LAPTOP-JHX1

Key : Analysis.DebugData
Value: CreateObject

Key : Analysis.DebugModel
Value: CreateObject

Key : Analysis.Elapsed.Sec
Value: 58

Key : Analysis.Memory.CommitPeak.Mb
Value: 262

Key : Analysis.System
Value: CreateObject

Key : CLR.Engine
Value: CLR

Key : CLR.System.InvalidOperationException._message
Value: This property has already been set and cannot be modified.

Key : CLR.System.Threading.Tasks.TaskSchedulerException._message
Value: An exception was thrown by a TaskScheduler.

Key : CLR.Version
Value: 4.0.30319.0

Key : Timeline.Process.Start.DeltaSec
Value: 8





CONTEXT: (.ecxr)
rax=00007ffa4d66fa6c rbx=00000000e0434352 rcx=00000000ffffffff
rdx=0000000000000000 rsi=0000000000000001 rdi=0000000000000005
rip=00007ffa79354b59 rsp=00000029b68fdea0 rbp=0000000000000000
r8=fffffffffffffffe r9=0000000000000001 r10=00007ffa4d69017c
r11=00000000ffffffff r12=0000000000004000 r13=000001fea8032780
r14=00000029b68fe038 r15=000001fea80321a0
iopl=0 nv up ei pl nz na pe nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000202
00007ffa`79354b59 0f1f440000 nop dword ptr [rax+rax]
Resetting default scope

ExceptionAddress: 00007ffa79354b59 (KERNELBASE!RaiseException+0x0000000000000069)
ExceptionCode: e0434352 (CLR exception)
ExceptionFlags: 00000001
NumberParameters: 5
Parameter[0]: ffffffff80131500
Parameter[1]: 0000000000000000
Parameter[2]: 0000000000000000
Parameter[3]: 0000000000000000
Parameter[4]: 00007ffa4d660000

PROCESS_NAME: SourceTree.exe




00000029`b7d7e730 00007ffa`4b8e9750 mscorlib_ni!System.Threading.Thread.set_Name+0xb0
00000029`b7d7e780 00007ff9`eee3c76d SourceTree_Api!SourceTree.Utils.PriorityScheduler.QueueTask+0x17d
00000029`b7d7e810 00007ffa`4b21a162 mscorlib_ni!System.Threading.Tasks.Task.ScheduleAndStart+0x222

SYMBOL_NAME: mscorlib_ni!System.Threading.Thread.set_Name+cc9750

MODULE_NAME: mscorlib

IMAGE_NAME: mscorlib.dll

STACK_COMMAND: !C:\ProgramData\dbg\sym\SOS_AMD64_AMD64_4.8.4341.00.dll\602301F3ac2000\ 0x1fea774a858 ; ** Pseudo Context ** ManagedPseudo ** Value: 1a6d2751480 ** ; kb

FAILURE_BUCKET_ID: CLR_EXCEPTION_System.InvalidOperationException_80131509_mscorlib.dll!System.Threading.Thread.set_Name


OS_VERSION: 10.0.19041.1

BUILDLAB_STR: vb_release


OSNAME: Windows 10

FAILURE_ID_HASH: {068de35c-6a59-f4f4-dc33-c6d143854d9c}

Followup: MachineOwner

1 comment

Why is there no discussion of this really serious problem? I have been putting up with random startup crashes for more than a year. On average it takes me 4 or 5 attempts to launch SourceTree. The crash is always NullReferenceException just up from BookmarksPanelViewModel RefreshRepositorySummary in the stack.

This crash occurs on all of my Windows 10 machines and no amount of file or registry cleanups, or reinstalls or anything will make the slightest difference. It just crashes and crashes on startup, and it's been doing it for years.

Can someone do something about this please?


Still no fix for this annoying bug

at SourceTree.Utils.PriorityScheduler.QueueTask(System.Threading.Tasks.Task)
at System.Threading.Tasks.Task.ScheduleAndStart(Boolean)

Six months later, no change, no mention of the issue and it still crashes and crashes and crashes on startup.

Now that Visual Studio implements most of the functionality of SourceTree, I've been trying to migrate and remove all need for SourceTree so I can uninstall the damn thing and erase it from my mind. I think I'm about 90% of the way there. It's still quicker in SourceTree the click down a list of many files and browse their changes, but there's probably a replacement technique if I look hard enough.

Like SmartPCUtilities likes this

I agree that VS has improved it's Git integration. In VS 2019 Ctrl + Alt + F7 will open a list of changed files, right click on the target file and can view its history, undo changes and view changes by clicking Compare with Unmodified


Log in or Sign up to comment
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

60,857 views 127 26
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you