Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avatars makes app unresponsive on slow internet connection #5309

Closed
patrikturi opened this issue Aug 10, 2018 · 16 comments
Closed

Avatars makes app unresponsive on slow internet connection #5309

patrikturi opened this issue Aug 10, 2018 · 16 comments
Milestone

Comments

@patrikturi
Copy link

patrikturi commented Aug 10, 2018

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
When I open a repository in GitExtensions with gitex.cmd sometimes the window goes to "not responding" for 15-30 seconds. It does now always happen. I've checked it and git commands take below 100ms and CPU usage is low. Also I noticed that if it is a freshly cloned repository, it greatly increases the chance of this bug happening (new repo about 30%, old repo just 5%). Killing the window and re-opening will get "not responding" again. However, if I wait until the "not responding" phase is done, re-opening the same repo is fine, the bug does not happen.
There is no other GitExtensions instance open when the issue happens.

Environment you encounter the issue:

  • GitExtensions version: 2.51.04
  • GIT version: git version 2.18.0.windows.1 (most likely irrelevant)
  • OS version: both Win7 and Win10
  • .NET version:

Did this work in previous version of GitExtensions (which)?
I think last version I tried without this bug was 2.49.03. After 2.50.0 I was constantly updating hoping it is fixed but it was not.

@vbjay
Copy link
Contributor

vbjay commented Aug 10, 2018

Run this in git bash in the folder where the repo is located.

git count-objects -v -H >before.txt
git gc --aggressive
git count-objects -v -H >after.txt  
cat before.txt after.txt >full.txt

Show the contents of the full.txt file.

@RussKie
Copy link
Member

RussKie commented Aug 20, 2018

Could you post the timings from gitcommand log (Tools > Gitcommand log)?

Do you have an antivirus that may be interfering?

@patrikturi
Copy link
Author

I have used 2.49.03 for a week and zero issues. Same git, same windows, same anti virus (Symantec).

Now I have switched back to 2.51.04 and the issue popped up after some hours again.

Here is the Command log after the issue happened:
log

@vbjay
I tried but if I do your commands after the issue happened, it shows no difference. If I clone the project again, then the "Not responding" issue does not happen. Sorry I think I was wrong that it happens more often with fresh repositories, it happens just as well with existing ones.

@RussKie
Copy link
Member

RussKie commented Aug 30, 2018

Nothing in your log looks out of ordinary, timings are in hundreds of ms

@vbjay
Copy link
Contributor

vbjay commented Aug 30, 2018 via email

@RussKie
Copy link
Member

RussKie commented Aug 30, 2018

Does this problem affect all repos?
Do they have submodules?

@patrikturi
Copy link
Author

Turned off antivirus, it happened again. And it does not happen with 2.49.03 and antivirus.

I don't use any submodules.
It seems to affect all repos, as the occurence seems to be random.

@vbjay
Copy link
Contributor

vbjay commented Aug 30, 2018 via email

@patrikturi
Copy link
Author

Now I have experienced it happens when I click on the commit of a new person for the very first time, and also happens after I do a "Clear image cache" and restart GitExtensions.

I was using the Identicon image service, now I have set the image service to None but the issue is still there. Any tips how to disable this feature completely? Because now that I have set it to None most people are shown black, but a for few who have uploaded a picture, that picture is still shown to me after clearing the cache.

gitext

@RussKie
Copy link
Member

RussKie commented Sep 1, 2018

Images are stored under C:\Users\<user>\AppData\Roaming\GitExtensions\GitExtensions\Images.
Clear image cache option will delete all images from that folder.

No image service is a flag to tell avatar resolution service that if avatar can't be found, use the default one (the None option). Other options (Identicon et al) will hit gravatar.com to source images.

@patrikturi
Copy link
Author

I believe it is caused by using GitExtensions -> Settings -> Appearance -> Get author image from gravatar.com with a slow internet connection.
I have set it to No and didn't happen today, I will check back a week later.

@patrikturi
Copy link
Author

I had gravatar turned off all week and zero issues, so that is it.

@drewnoakes
Copy link
Member

This should definitely not be blocking the UI.

@RussKie RussKie changed the title GitExtensions Not Responding for a while when opening a repository Avatars makes app unresponsive on slow internet connection Sep 17, 2018
@gerhardol
Copy link
Member

A change related to this is done in #5878, planned for 3.0.1

@drewnoakes
Copy link
Member

See also #5859.

@RussKie
Copy link
Member

RussKie commented Feb 25, 2019

Fixed in #6287

@RussKie RussKie closed this as completed Feb 25, 2019
@RussKie RussKie added this to the 3.1.0 milestone Feb 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants