Sourcetree stuck on loading when pushing/pulling
Asked by Andreas Kalstad:

I have an issue in Sourcetree on Windows that has been bothering me for a while now. The problem occurs when I have had Sourcetree open for a while and then try to pull/push/fetch. The "loading"-dialog opens, but never finishes the operation. It just loads forever. This problem continues until I restart Sourcetree and then everything is fine again for a while. I have to do this up to 3-4 times a day and it is kind of annoying. Especially after the newest patch which seemed to really reduce the applications performance.

The reason I post this now after experiencing this for several months is because it was brought to my attention that others also were experiencing this.

Does anyone else have this problem? Or is there anything I can do to fix it?

Thanks for any replies.


Answers:
author: iamdev42
body: Same here. I think this is happening in all 2 versions. I just recently downgraded back to 2.0.20.1 and am still experiencing this. @\[deleted\]any updates on  

My whole team is experiencing same, around 10 people, but of course noone reported yet.

```

Unable to get Dispatcher Application.Current is null
```


author: pcow_sony
body: I have this problem frequently.

I have a fairly good workaround.

First, modify (or create) the file at \`%USERPROFILE%\\.ssh\\config\` to contain

\`\`\`  
Host github.com

LogLevel VERBOSE  
\`\`\`  

This will ensure that git's ssh will log when it authenticates.

Next, whenever you pull/push/fetch/whatever, click "show full output".   

If a message like \`Authenticated to github.com (\[192.30.255.112\]:22).\` appears, then you know the push/pull/etc. will succeed.  

If that message does not appear within 5 seconds, then you know it is going to hang forever. Close SourceTree and start it up again and try again.


author: Tomas Jakelis
body: Been trying to find what causes problems my end for ages and couldn't find anywhere on the web. Initially I thought the problem could be around VPN, but no suggestions worked.

So my solution was to disable SSL3 under Tools -\> Options -\> Network and voila!

I believe the remote repository doesn't support SSL3 and caused an infinite loading.


author: Andreas Kalstad
body: I have to say that I am really not satisfied with the support I have received in this forum. As a developer, I understand that some problems can be hard to fix and I do not expect them to be fixed immediately. However, I do actually expect some progress in identifying the problem.

The Windows version shows no signs of improvement (the Mac version works fine for the same repos though) and no one are helping us here. I see no other solution for my team than to stop using Sourcetree for the time being.

comments: author: Ben_Cameron
body: I completely agree with this. I work on a team of 5 developers, and we've all been experiencing this issue for months. We are all trying other git clients for now and will likely be switching soon.


author: Andreas Kalstad
body: Hi [@Ana Retamal](/t5/user/viewprofilepage/user-id/1067288),

Any progress or suggestions on this topic?


author: Ana Retamal
body: Hi Andreas, can you provide the following information:

* Which version of SourceTree and OS are you using?
* Does it always happen with a certain repository, or with all of them? Which is the size of the repo?
* Can you also check the logs so we can see if there's any error in there? You can find them at [SourceTree logfile location](https://confluence.atlassian.com/sourcetreekb/sourcetree-logfile-location-675384748.html).

Best regards,

Ana

comments: author: Andreas Kalstad
body: I am using Windows and currently using version 2.1.2.5.

It happens in all repos.

I have several error messages in the log file. The latest ones look like this:

1.

\[System.IO.FileSystemWatcher\] \[OnError\] - RepoWatcher: Error 'For mange endringer p? en gang i katalogen'

(In english: Too many changes happened at ones in catalog)

2.

\[SourceTree.Scheduler.SourceTreeDispatcher\] \[get_Dispatcher\] - Unable to get Dispatcher Application.Current is null


author: bronumski
body: I am also having the same issue. It only happens when SourceTree has been open for a while. I was hoping that the latest update would address the issue before I commented.

I am running windows 10.

SourceTree version - 2.1.2.5.

Here is my log file dump. I have included some of the errors from before the upgrade. The 7th and the 20th are since the upgrade.

```
ERROR [2017-05-17 13:12:31,124] [95] [SourceTree.Scheduler.SourceTreeDispatcher] [get_Dispatcher] - Unable to get Dispatcher Application.Current is nullERROR [2017-05-17 13:12:31,128] [95] [SourceTree.Scheduler.SourceTreeDispatcher] [InvokeAsync] - Unable to invoke async action [System.Action] dispatcher is nullERROR [2017-05-25 16:12:57,030] [41] [SourceTree.Scheduler.SourceTreeDispatcher] [get_Dispatcher] - Unable to get Dispatcher Application.Current is nullERROR [2017-05-25 16:12:57,175] [41] [SourceTree.Scheduler.SourceTreeDispatcher] [InvokeAsync] - Unable to invoke async action [System.Action] dispatcher is nullERROR [2017-06-01 09:49:36,536] [31] [SourceTree.Scheduler.SourceTreeDispatcher] [get_Dispatcher] - Unable to get Dispatcher Application.Current is nullERROR [2017-06-01 09:49:36,643] [31] [SourceTree.Scheduler.SourceTreeDispatcher] [InvokeAsync] - Unable to invoke async action [System.Action] dispatcher is nullERROR [2017-06-05 18:52:02,832] [21] [SourceTree.Scheduler.SourceTreeDispatcher] [get_Dispatcher] - Unable to get Dispatcher Application.Current is nullERROR [2017-06-05 18:52:02,862] [21] [SourceTree.Scheduler.SourceTreeDispatcher] [InvokeAsync] - Unable to invoke async action [System.Action] dispatcher is nullERROR [2017-06-07 13:35:12,550] [113] [SourceTree.Scheduler.SourceTreeDispatcher] [get_Dispatcher] - Unable to get Dispatcher Application.Current is nullERROR [2017-06-20 16:28:44,176] [97] [SourceTree.Scheduler.SourceTreeDispatcher] [get_Dispatcher] - Unable to get Dispatcher Application.Current is null
```