Skip to content

hangs often #4290

Closed
Closed

Description

@Shawn-in-Tokyo

Description

Painfully slow. Repeatly and frequently hangs for 10, 20, 30 seconds

Version

  • GitHub Desktop:

V1.1.0
V1.1.1

  • Operating system:

OSX 10.13.3

Steps to Reproduce

Any normal use. Trying to select anything in the menu. Even entering in a comment for a commit will freeze mid typing. Other programs in the OS are running fine.

Expected Behavior

Just normal UI interaction should work without too much of a wait

Actual Behavior

Hangs

Additional Information

Signed in via github.com account
Private repo
Command line usage is unaffected

Logs

2018-03-20.desktop.production.log

Activity

  1. tierninho commented on Mar 20, 2018

    @tierninho
    Contributor

    @Shawn-in-Tokyo Thanks for filing. Can you provide some additional details so our team can help diagnose. Were you logged in under a GitHub.com or Enterprise account?

  2. added
    more-info-needed
    on Mar 20, 2018
  3. shiftkey commented on Mar 20, 2018

    @shiftkey
    Member

    @Shawn-in-Tokyo thanks for the log. The logs contain tracing information for how long Git operations take, and it looks like some common operations (like git status) start out taking ~1s - which isn't unexpected for repositories with a complex working directory hierarchy:

    2018-03-20T00:16:06.203Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 1.074s)
    

    But hours later, this operation takes almost 90s:

    2018-03-20T13:44:46.891Z - info: [ui] Executing getStatus: git status --untracked-files=all --branch --porcelain=2 -z (took 84.516s)
    

    So maybe there's some interesting details about the repository you are using at the time that we're not handling well. @Shawn-in-Tokyo can you share any details about the repository you were working with at the time you were seeing the issue? If it's a repository I'm able to access, it will help with identifying the issue.

    Other operations that shouldn't depend on the repository shape also seem to be caught up in this, such as the operation to get the identity for the current repository:

    2018-03-20T11:19:52.535Z - info: [ui] Executing getAuthorIdentity: git var GIT_AUTHOR_IDENT (took 27.515s)
    

    So maybe some latency issues with long-running Git operations are cascading?

  4. Shawn-in-Tokyo commented on Mar 21, 2018

    @Shawn-in-Tokyo
    Author

    @tierninho Logged in under a GitHub.com account.

    can you share any details about the repository you were working with at the time you were seeing the issue?

    I'm still seeing the issue 12 hours after doing anything. Any interaction with the GitHub UI causes a "GitHub Desktop Helper" process to max out the CPU (one of eight actually) at 100% for sometime and it's unresponsive during the hang (10+ seconds ). That was after a restart.

    The only unusual thing I've done recently is cancel some ant builds (with eclipse) that were tagging releases. I think the command was push origin :refs/tags/whatever . A dialog box popped up for GitHub authentication and I was abandoning the process then. Again that was an Ant build process being run in Eclipse which calls jgit.sh to run the git commands.

    At one point, I tried to discard some change in GitHub Desktop but was told the file or repo was locked (perhaps by another git process). I couldn't find anything else running and deleted index.lock as suggested in the error message.

  5. drooog commented on Mar 21, 2018

    @drooog

    I'm also getting a hang issue. The whole interface freezes (top menus not). theres a lag time of a minute or two before it seems to refresh with the last element I clicked on.
    All basically unusable.
    Was going fine just some hours ago.. I made some changes to the sketch file and tried to view the changes in Kaktus, then stall. It seems especially attached to the 'changes' tab. History tab seems un effected

  6. drooog commented on Mar 21, 2018

    @drooog

    image
    Its hanging here a long time. Refresh spinning arrow is going around.. its just not getting to any end

  7. drooog commented on Mar 21, 2018

    @drooog

    Mac OS 10.12.6 btw. Sketch 49.1. Latest Kactus ... So all up to date (Except my mac OS)

  8. niik commented on Mar 22, 2018

    @niik
    Member

    Hi @drooog. Please contact the Kactus team at https://kactus.io for issues with Kactus.

  9. Shawn-in-Tokyo commented on Mar 27, 2018

    @Shawn-in-Tokyo
    Author

    V1.1.1 is the same. Frequent hangs. Basically unusable.

    The git client within Eclipse is working fine for the same repo though. No hangs or delays. I preferred desktop since it's an extra step to compare changed files to the index in Eclipse and then you have to close them, but at least it isn't hanging

    Again, this is logged in under a GitHub.com account.

  10. ndenny commented on Mar 29, 2018

    @ndenny

    This seems to be affecting me too. In may be a coincidence, but it seemed to start when I added a node app's source to my tree. The node_modules folder was untracked but contained lots of files, and that seemed to slow everything down. I then moved that source out to a separate repo, but the slowness has continued. The command line performance is unaffected.
    I too am logged in with a GitHub.com account and the repo is private.

  11. gemal commented on Apr 3, 2018

    @gemal

    performance in the latest version is really really poor :(

  12. 109digital commented on Apr 13, 2018

    @109digital

    Experiencing the same issues on Windows 10, also experienced them on Windows 7. Currently running 1.1.1, but extreme lag and poor performance have persisted across versions and OS.

    Every. Single. Operation. Is. Unbearably. Slow.

    GitHub Client is absolutely the bottleneck in my workflow.

    The primary repo I've been working with is 1,940 files in 457 Folders, 199MB total disk size, though the issue is present in every repo I've worked with. (Some are larger, some are smaller. I'm not sure what is considered a large repo or a large file in this context.)

    The most maddening part is that maybe 5% of the time, everything is lightning fast. Literally every operation happens in near real-time. The other 95% of the time, I feel like I'm running Adobe Photoshop on a calculator.

    I've contacted support about this. They dumped me in this thread without even bothering to ask for local logs, or any real details beyond what client version I was using and the size of my repos. Zero attempt at understanding what could be causing the problem in my local environment. I guess that's the level of support that paying customers get.

    For most commits, I use the web GUI. I rarely commit locally because every single action, whether pulling a repo or viewing a diff, takes an eternity.

  13. shiftkey commented on Apr 14, 2018

    @shiftkey
    Member

    @109digital Could you attach the full log files? The Help | Show Logs in Explorer menu items should open the logs folder, and inside those are the log files generated by day. This will provide some more information to help troubleshoot, including which operations are actually slow.

    EDIT: if you're able to provide details with a public repository that illustrates the issue, that will help with speeding up the troubleshooting cycle.

  14. 13 remaining items

  15. shiftkey commented on Jul 4, 2018

    @shiftkey
    Member

    I'm going to close this out as it's been meandering without a clear resolution for a while.

    Please open fresh issues and include a timeline profile of the app if you identify slow parts of the app - this extra detail helps us understand what you're seeing much more effectively!

  16. mcmonkey4eva commented on Jul 4, 2018

    @mcmonkey4eva

    Just an update on my own situation:

    I enabled gpg key enforcement on git (and general altered git config a bit alongside that) and somewhere in there GitHub Desktop entirely stopped hanging ever. It's now operating at full expected speed. I can't really say what exactly changed to resolve the issue.

  17. 109digital commented on Jul 4, 2018

    @109digital

    Please open fresh issues and include a timeline profile of the app if you identify slow parts of the app

    What are the odds anyone will actually look at the information provided? I've sent in several logs and tried to share access to a repo (at your request), but it proved to be a complete waste of time.

    This really sounds like something external is interfering with our spawning Git processes. Please have a read of #3724 which was traced to BitDefender interfering with our work, as I think you might be encountering something similar.

    I know third-party AV is the go to explanation, but he explicitly stated that the issue persisted with all anti-virus disabled. This is also the case with me.

  18. shiftkey commented on Jul 6, 2018

    @shiftkey
    Member

    @109digital I'm sorry that we didn't get to the bottom of the issue, and I'd love to have another shot at it if you're willing to open a fresh issue.

    The log files, while great for catching errors, aren't a great source for measuring performance and the environment that Desktop is running in, so there's some extra pieces I'd like to get from you to understand and work through this:

    • A snapshot of the machine details using msinfo32 /nfo %TEMP%\machine-output.nfo attached to the issue
    • A performance timeline of the application in action so I can understand what you're actually seeing

    I know third-party AV is the go to explanation, but he explicitly stated that the issue persisted with all anti-virus disabled.

    This wasn't the resolution of #3724. See this comment:

    OK, my bad. I turned off all functionality in BitDefender and indeed, the problem disappeared. So it's them. I will go and haunt their QA department now.

  19. 109digital commented on Jul 23, 2018

    @109digital

    Here is a profile of the following actions:

    • Refresh a repo (which only has the master branch and one commit)
    • Switch to another repo (a few branches, lengthy commit history)
    • Refresh that repo
    • Update branch from default (I noticed that the options for the "Branch" menu took several seconds to render)

    While these operations were quite slow, I did not get the same excessive CPU usage that often accompanies such operations.

    If this information is not sufficient, I can try to capture a profile when things really start going haywire - though getting the inspector and/or task manager to open in a timely manner is difficult at times when my system is completely overtaken by whatever operations GD is running.

    The profile generation instructions don't reflect the latest update to Chrome inspector, but I believe this is the information you're looking for.

    Profile-20180723T161536.zip

    machine-output.zip

  20. shiftkey commented on Jul 23, 2018

    @shiftkey
    Member

    @109digital please open a new issue so we can discuss things in a fresh issue

    EDIT: The profile generation instructions don't reflect the latest update to Chrome inspector, but I believe this is the information you're looking for.

    Thanks for the heads up, I'll make sure to refresh these (probably due to our upgrade to Electron 2.x recently). I looked at the archive and the included JSON file loads fine into the Dev Tools. Feel free to just cross-reference this comment rather than uploading it all again.

  21. locked as too heated and limited conversation to collaborators on Jul 23, 2018
  22. added and removed
    more-info-needed
    on Jul 23, 2018
  23. unlocked this conversation on Sep 27, 2018
  24. added
    performance
    on Sep 23, 2020
  25. platon9000 commented on Oct 12, 2021

    @platon9000
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

    performance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions