Skip to content

Performance issues and random hangs on Windows 11 #13416

Closed

Description

@aminya

Describe the bug

GitHub Desktop has become slow and buggy recently. It takes some time until the buttons become responsive. It takes some time until it adds, clones, or fetches the repositories.

Version & OS

Version 2.9.4 (x64)
Win 11 22000.348

Steps to reproduce the behaviour

  1. Use GitHub Desktop on Windows 11

Expected behaviour

The software should be fast

Actual behaviour

See the bug description

Screenshots

N/A

Logs

2021-11-30.desktop.production.log
2021-11-29.desktop.production.log
2021-11-28.desktop.production.log

Activity

  1. steveward commented on Dec 2, 2021

    @steveward
    Contributor

    @aminya thanks for the report -- I took a look at the logs and can see that refreshing your repositories is taking a rather long time:

    2021-11-29T13:20:33.696Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 46 repositories took 11.6s of which 189.5s paused, total 201.0s
    2021-11-29T15:22:45.532Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 46 repositories took 14.2s of which 515.3s paused, total 529.5s
    

    Since you have a larger-than-average amount of repositories that would be my guess as to what is causing the slowdown for you. I'd recommend disabling background fetching to see if that improves performance. You can do this by going to File > Options > Advanced and unchecking the Periodically fetch and refresh status of all repositories checkbox. Let me know if that helps with this issue.

  2. added
    more-info-needed
    on Dec 2, 2021
  3. AppDevMichael commented on Dec 2, 2021

    @AppDevMichael

    I have also noticed this, I can assure you that it isn't my computer/drive being slow as I have a very high-end pc. I have unchecked Periodically fetch and refresh status of all repositories and I will monitor it for a while.

  4. aminya commented on Dec 3, 2021

    @aminya
    ContributorAuthor

    The initial load time seems to be a bit faster with that option disabled. But the UI still feels unresponsive in some cases. Here is the log for me wanting to check the diff of a file. I could not do anything for some seconds.

    2021-12-03T06:04:07.828Z - info: [ui] [AppStore] loading 30 repositories from store
    2021-12-03T06:04:07.829Z - info: [ui] [AppStore] found account: aminya (Amin Yahyaabadi)
    2021-12-03T06:04:07.864Z - info: [ui] [BranchPruner] Last prune took place in a day - skipping
    2021-12-03T06:04:08.224Z - info: [ui] launching: 2.9.5 (Windows 10.0.22000)
    2021-12-03T06:04:08.224Z - info: [ui] execPath: 'C:\Users\aminy\AppData\Local\GitHubDesktop\app-2.9.5\GitHubDesktop.exe'
    2021-12-03T06:09:48.153Z - info: [ui] Executing getStatus: git --no-optional-locks status --untracked-files=all --branch --porcelain=2 -z (took 3.620s)
    2021-12-03T06:09:50.300Z - info: [ui] Executing getWorkingDirectoryDiff: git diff --no-ext-diff --patch-with-raw -z --no-color HEAD -- some_folder/some_folder/some_file.rs (took 4.074s)
    2021-12-03T06:09:50.301Z - info: [ui] Executing getWorkingDirectoryDiff: git diff --no-ext-diff --patch-with-raw -z --no-color HEAD -- packages/symbol_table/src/symbol.rs (took 4.610s)
    2021-12-03T06:09:51.404Z - info: [ui] Executing getWorkingDirectoryDiff: git diff --no-ext-diff --patch-with-raw -z --no-color HEAD -- some_folder/some_folder/some_file.rs (took 3.249s)
    2021-12-03T06:09:52.617Z - info: [ui] Executing getRecentBranches: git log -g --no-abbrev-commit --pretty=oneline HEAD -n 2500 -- (took 3.421s)
    2021-12-03T06:09:52.618Z - info: [ui] Executing getBranches: git for-each-ref --format=%00%(refname)%00%(refname:short)%00%(upstream:short)%00%(objectname)%00%(author)%00%(symref)%00 refs/heads refs/remotes (took 3.428s)
    2021-12-03T06:09:53.914Z - info: [ui] Executing getPartialBlobContents: git show HEAD:some_folder/some_folder/some_file.rs (took 3.606s)
    2021-12-03T06:09:57.139Z - info: [ui] Executing getConfigValueInPath: git config -z pull.rebase (took 4.520s)
    2021-12-03T06:10:03.471Z - info: [ui] Executing getCommits: git log origin/some_branch..some_branch --date=raw --max-count=100 -z --format=%H%x00%h%x00%s%x00%b%x00%an <%ae> %ad%x00%cn <%ce> %cd%x00%P%x00%(trailers:unfold,only)%x00%D --no-show-signature --no-color -- (took 6.322s)
    2021-12-03T06:10:03.476Z - info: [ui] Executing getRemotes: git remote -v (took 5.012s)
    2021-12-03T06:10:03.481Z - info: [ui] Executing getAuthorIdentity: git var GIT_AUTHOR_IDENT (took 3.653s)
    2021-12-03T06:10:03.482Z - info: [ui] Executing getStashEntries: git log -g -z --pretty=%gD%x1F%H%x1F%gs refs/stash (took 5.012s)
    2021-12-03T06:10:03.490Z - info: [ui] Executing getWorkingDirectoryDiff: git diff --no-ext-diff --patch-with-raw -z --no-color HEAD -- some_folder/some_folder/some_file_helpers.rs (took 2.220s)
    
  5. removed
    more-info-needed
    on Dec 3, 2021
  6. aminya commented on Dec 5, 2021

    @aminya
    ContributorAuthor

    Here is another log. It took GitHub Desktop 3.5 minutes to clone a repository. Cloning a repository from the terminal takes a fraction of a second.

    2021-12-05T07:48:55.624Z - info: [ui] Executing clone: git -c credential.helper= -c protocol.version=2 -c init.defaultBranch=master clone --recursive --progress -- https://github.com/aminya/templates.git C:\Users\aminy\Github\Book\templates (took 210.418s)
    

    2021-12-05.desktop.production.log

  7. steveward commented on Dec 7, 2021

    @steveward
    Contributor

    @aminya @AppDevMichael are either of you running antivirus software on your machine outside of the built-in Windows Defender? That's a common culprit of performance issues as well.

  8. aminya commented on Dec 7, 2021

    @aminya
    ContributorAuthor

    I only use the built-in security features of Windows 11. I have also enabled Windows ASR and LSA using hardentools

    The problem does not happen with Git from the terminal, so not sure how the issue is different.

  9. niik commented on Dec 13, 2021

    @niik
    Member

    Hey @aminya, sorry to hear you're having problems. Those execution times certainly aren't what we'd expect to see. Are these extra safeguards that you have enabled on your machine something you can temporarily disable to see if that's what's interfering with GitHub Desktop?

  10. added
    more-info-needed
    on Dec 13, 2021
  11. WindRaidor commented on Dec 17, 2021

    @WindRaidor

    FYI - Im experiencing the same slow down issues in Win11 which began for me on 12/15/2021. Prior to that date, everything was humming along like normal. Now, it takes several seconds on every single button click within Github desktop. And extra time to perform all actions.

  12. no-response commented on Dec 20, 2021

    @no-response

    Thank you for your issue!
    We haven’t gotten a response to our questions above. With only the information that is currently in the issue, we don’t have enough information to take action. We’re going to close this but don’t hesitate to reach out if you have or find the answers we need. If you answer our questions above, a maintainer will reopen this issue.

  13. aminya commented on Dec 20, 2021

    @aminya
    ContributorAuthor

    Well, it's been only 3 days since someone commented on this issue! I provided many log files. If there is anything specific needed, let me know. Other people also mentioned that they are experiencing the same problem. So I do not think this is related to my system. I'd prefer not to make my system vulnerable for using Github Desktop.

  14. removed
    more-info-needed
    on Dec 20, 2021
  15. added
    windows
    on Feb 8, 2022
  16. steveward commented on Mar 31, 2022

    @steveward
    Contributor

    @aminya @WindRaidor are you still experiencing these performance issues? I've been running Windows 11 with a decent amount of repositories and have not noticed any issues, but that is on a fairly powerful desktop machine.

  17. added
    more-info-needed
    on Mar 31, 2022
  18. aminya commented on Mar 31, 2022

    @aminya
    ContributorAuthor

    I reduced the number of repositories that I have in the app. I cannot reproduce this anymore given this condition.

  19. removed
    more-info-needed
    on Mar 31, 2022
  20. steveward commented on Mar 31, 2022

    @steveward
    Contributor

    Thanks for the update!

  21. rackodo commented on Apr 5, 2022

    @rackodo

    Hey, I'm also experiencing some severe performance issues. It takes like 3 second for updates.

    Animation

    If it helps, this was recorded using ScreenToGif at 15 fps, and the repo used is bashbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions