Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SourceTree wont start or install

Nadim Alam March 10, 2018

This has caused me hours of pain and work time lost!

My SourceTree just suddenly wouldnt start today, i had been using it fine for many months now. 

I've looked online and tried all the various suggestions but nothing works.

Ive tried uninstalling the app, reinstalling all different versions from the latest 2.4.8 to older versions. Ive also deleted the SourceTree folder and the Atlassian folders. Ive tried using CCleaner to uninstall and also to clean registrys. 

However, anytime i uninstall and try to use the installer i get a blue splash screen with sourcetree logo come up for a few seconds only, then the app is suddenly installed again and the folders are back where i deleted them from, however the app still does not open.

When i run the installer, its like its not even installing it, just bringing back the deleted folders from the dead, even though ive emptied out the recycle bin etc..

Please if you can help me fix this terrible issue so that i can open it up again?!

Im on the latest version of windows 10.

Thanks.

3 answers

1 accepted

0 votes
Answer accepted
Nadim Alam May 10, 2018

I finally managed to sort it out, by downloading the newest version of SourceTree 2.5.5.0

 

All sorted now, no thanks to the useless team at Atlassian!!!

0 votes
Tersia Ingels January 10, 2023

I have exactly the same issue as Nadim Alam.

I have tried everything as suggested by Ana Retamal above.

Sourcetree still does not install correctly.

 

Here is the details from the log file:

2023-01-10T12:36:22: LogHost: Initializing to normal mode
ERROR [2023-01-10 12:36:24,435] [1] [SourceTree.App] [Log] - Failed to start
System.Management.ManagementException: Invalid class
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at SourceTree.UI.Theme.Wpf.Utilities.NativeHelper.GetWindowsVersion()
at SourceTree.UI.Theme.Wpf.Controls.PerMonitorDpiWindow.OnSourceInitialized(EventArgs e)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at SourceTree.UI.WelcomeWizardManager.Run()
at SourceTree.UI.OnboardingManager.Run()
at SourceTree.AppRoot.Onboard()
at SourceTree.AppRoot.OnboardIfRequired()
at SourceTree.AppRoot.<OnStartup>d__24.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.GetResult()
at SourceTree.App.<OnStartup>d__9.MoveNext()
ERROR [2023-01-10 12:36:58,304] [1] [SourceTree.App] [Log] - Failed to start
System.Management.ManagementException: Invalid class
at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
at System.Management.ManagementObjectCollection.ManagementObjectEnumerator.MoveNext()
at SourceTree.UI.Theme.Wpf.Utilities.NativeHelper.GetWindowsVersion()
at SourceTree.UI.Theme.Wpf.Controls.PerMonitorDpiWindow.OnSourceInitialized(EventArgs e)
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.ShowDialog()
at SourceTree.UI.WelcomeWizardManager.Run()
at SourceTree.UI.OnboardingManager.Run()
at SourceTree.AppRoot.Onboard()
at SourceTree.AppRoot.OnboardIfRequired()
at SourceTree.AppRoot.<OnStartup>d__24.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.GetResult()
at SourceTree.App.<OnStartup>d__9.MoveNext()

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 13, 2018

Hi Nadim! Can you try a clean install and see if the issue gets fixed? You can do that following the steps:

  1. Wipe Sourcetree preferences.
  2. Uninstall Sourcetree (if it shows on the App&Features list)
  3. Backup then delete the directory below before proceeding with next step:
    • Navigate to C:\Users\<UserName>\AppData\Local and delete Sourcetree & Sourcetree-Settings folder
    • Navigate to C:\Users\<UserName>\AppData\Local\Atlassian and delete all Sourcetree Files/ folder.
  4. Download SourceTree and install it.

If that still fails, can you check if there's some more info in the logs and post it here? The logs can be found at

C:\Users\<username>\AppData\Local\Atlassian\SourceTree\sourcetree.log
Note that the AppData folder is hidden by default on Windows Explorer.

Kind regards!

Ana 

Nadim Alam March 14, 2018

Hi Ana,

I tried the above that you recommended but still same issue :( 

After uninstall whenever i go to install again, it doesnt run the install wizard, instead it just brings up the blue sourcetree image logo and then suddenly places the folders back where i just deleted them manually from!!! 

 

I looked at the LOG file and here is what it says:

 

ERROR [2018-03-14 21:05:00,950] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied
ERROR [2018-03-14 21:07:45,755] [1] [SourceTree.App] [.ctor] - finish EnsureSquirrelExecutionStubIsCopied

Nadim Alam March 17, 2018

Any help please?

Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 19, 2018

Hi Nadim, thanks for posting that error. Please navigate to the config file location

C:\Users\{USERNAME}\AppData\Local\Atlassian\SourceTree.exe_{RANDOM_GUID}\2.3.1.0\user.config 

and find the following line:

<setting name="AutomaticallyCleanUpDictionaryFiles" serializeAs="String">

   <value>True</value>

</setting>

Make sure that value is set to True

Let us know if it worked for you!

Kind regards,

Ana

Nadim Alam March 19, 2018

Hi Ana,

I checked the user config file you mentioned above, but it doesnt contain the line you said im afraid :(

This is all that file contains:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<userSettings>
<SourceTree.Properties.Settings>
<setting name="NPSAnonUId" serializeAs="String">
<value>d57bedd4-6572-468f-9d0f-23f1bcf56054</value>
</setting>
</SourceTree.Properties.Settings>
</userSettings>
</configuration>
Nadim Alam May 8, 2018

Hi Ana,

 

its been over a month now and im still awaiting a response from your team to help solve this problem! 

 

Are you going to bother helping at all or have you given up?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events