Skip to content

Stuck on "Fetching origin", high CPU #15990

Closed

Description

@preciselytom

The problem

The application gets stuck showing Fetching origin, Hang on... several times per week, usually after the laptop has been sleeping. The GitHub Desktop Helper (GPU) and GitHub Desktop Helper (Renderer) consume about 50% CPU together, and WindowServer another 40%. I have no other heavy applications running.

The application is still responsive; I can switch to a different repo and then the CPU drops and the button works. Switching back to this particular repo (which is my main one), the button shows the spinner again and the CPU usage is back up.

Quitting and starting the application again fixes the problem temporarily.

Please let me know if I can help debug this.

Release version

Version 3.1.4 (arm64)

Operating system

macOS Ventura 13.1 (22C65)

Steps to reproduce the behavior

It happens randomly for a particular repository (which is private), usually after the laptop has been sleeping.

Log files

2023-01-24.desktop.production.log

Screenshots

Screenshot 2023-01-24 at 11 49 22

Additional context

No response

Activity

  1. changed the title [-]Stuck on "Fetching origin", 50% CPU[/-] [+]Stuck on "Fetching origin", high CPU[/+] on Jan 24, 2023
  2. steveward commented on Jan 24, 2023

    @steveward
    Contributor

    Thanks for the report @preciselytom. Is this a large repository with a large number of branches? Is interesting to see that it's hanging up on one specific repository. I can see that the refresh is taking a while here:

    2023-01-24T10:46:18.606Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 10 repositories took 3.9s of which 347.8s paused, total 351.6s
    

    Can you try disabling the background fetching that GitHub Desktop does to see if that helps with performance? You can do that by going to GitHub Desktop > Preferences > Advanced and disabling 'Periodically fetch and refresh status of all repositories.'

    Let me know if that helps with this issue.

  3. added
    more-info-needed
    on Jan 24, 2023
  4. preciselytom commented on Jan 25, 2023

    @preciselytom
    Author

    Thanks for the tip! I have disabled the background fetching and will let you know whether that makes a difference.

    The repository has 7000 commits and 140 (mostly stale) branches, so it's busy but not enormous.

    When the application is not stuck, the "Fetch origin" button only takes ~5 seconds when pressed, but when stuck it can run for hours.

  5. removed
    more-info-needed
    on Jan 25, 2023
  6. steveward commented on Jan 25, 2023

    @steveward
    Contributor

    In the interest of keeping our issue tracker manageable I'm going to close this out, but let us know how that works out. We also have a broader issue for tracking performance at #10625 where I'll add this.

  7. preciselytom commented on Jan 25, 2023

    @preciselytom
    Author

    It did actually not help. Periodically fetch and refresh status of all repositories has been turned off the whole day, but the application is nonetheless stuck spinning with Fetching origin and hogging CPU when I open the laptop.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions