Source tree application doesn't open on Windows machine
Asked by Aayush Chachan:

I have tried re-installing it thrice in the past week. It works fine after the installation but after I close the app and try to open it again then it never opens up.


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Aayush Chachan](/t5/user/viewprofilepage/user-id/4650844) ,

I had the same problem in the past and it was caused by user.config file.

Try to delete C:\\Users\\\<*username* \>\\AppData\\Local\\Atlassian\\SourceTree.exe\<*random_string* \>\\\<*version_number* \>\\user.config file and restart SourceTree.

Hope this helps,

Fabio

comments: author: Aayush Chachan
body: Thanks [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) for replying to question. But this didn't help.


author: Aayush Chachan
body: [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) , Any other suggestion?


author: Fabio Racobaldo _Herzum_
body: Hi [@Aayush Chachan](/t5/user/viewprofilepage/user-id/4650844) , please provide your SourceTree version in order to check if there's some bug.


author: Aayush Chachan
body: [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) When I posted this question I was using 3.4.1 but today I installed 3.4.5  
And I am observing the same issue in the latest version too.


author: Fabio Racobaldo _Herzum_
body: Hi [@Aayush Chachan](/t5/user/viewprofilepage/user-id/4650844) ,

try to perform a new clean installation. The steps are as follows:

1. [Wipe SourceTree preferences](https://confluence.atlassian.com/sourcetreekb/how-to-wipe-sourcetree-preferences-412484640.html).
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](https://www.sourcetreeapp.com/) and install it.

Let me know if it helped.

Fabio


author: Aayush Chachan
body: [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) ,

I followed all the steps mentioned by you but still no luck.


author: Fabio Racobaldo _Herzum_
body: [@Aayush Chachan](/t5/user/viewprofilepage/user-id/4650844) , could you check C:\\Users\\\<username\>\\AppData\\Local\\Atlassian\\SourceTree\\sourcetree.log file in order to figure out your current issue?


author: Aayush Chachan
body: [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) ,

Sourcetree.log file data:  

2021-11-29T20:07:30: LogHost: Initializing to normal mode  
ERROR \[2021-11-29 20:08:41,107\] \[1\] \[SourceTree.Notifications.NotificationsManager\] \[Log\] - Unable to set owner as parent is not visible or non-existent

That's all


author: Aayush Chachan
body: [@Fabio Racobaldo _Herzum_](/t5/user/viewprofilepage/user-id/781528) ,

I observed one more file: "\<some_string\>sourcetree.log" which get created every time I try to open sourcetree app.

The content of that file is like:

2021-11-29T20:20:46: LogHost: Initializing to normal mode  
2021-11-29T20:20:48: LogHost: SuppressChangeNotifications was called (perhaps via AddRange), yet you do not  
2021-11-29T20:20:48: LogHost: have a subscription to ShouldReset. This probably isn't what you want, as ItemsAdded  
2021-11-29T20:20:48: LogHost: and friends will appear to 'miss' items  
2021-11-29T20:20:48: Could not obtain git dir, is not a git repo.


author: Fabio Racobaldo _Herzum_
body: Based on this thread <https://community.atlassian.com/t5/Sourcetree-questions/Can-t-add-repo-Unable-to-set-owner-as-parent-is-not-visible-or/qaq-p/797199> it seems that there's a corrupted file in your repo

Try that approach.

Ciao,

Fabio


Tags: atl-gruland