Skip to content

Even minimized and with no data loaded CPU is constantly being used on windows #1641

Open

Description

@wchristian

Description

As the title says. It is minimized, has no data loaded, yet constantly uses CPU. To be clear on no data loaded, this was directly after install, with only the login being provided.

image

image

Note that the usage must be multiplied by 4 to get the load on a single CPU core, as i have 4 cores. Also note that this kind of usage is significant as it prevents the CPU from settling in a low power state.

Version

GitHub Desktop version: 0.5.5

OS version: Microsoft Windows [Version 10.0.15063]

Steps to Reproduce

  1. Install Github Desktop
  2. Start Github Desktop
  3. Log in
  4. Minimize
  5. Observe CPU usage with Technet Process Explorer

Expected behaviour: All of the Github Desktop processes should read a usage of 0 for at least a minute between usage spikes

Actual behaviour: Github Desktop is constantly using CPU

Reproduces how often: 100%

Activity

  1. LeoNatan commented on May 19, 2017

    @LeoNatan

    Why does a git UI application need to have 4 processes running, each taking 25-55MB of RAM at least?

    Ah, the wonders of Electron "development". Good stuff, "native" "developers".

  2. shiftkey commented on May 20, 2017

    @shiftkey
    Member

    @LeoNatan the reasons for this are explained in the Multi-process Architecture documentation on the Chromium project - the "browser" and "renderer" separations here flow through to the various Electron APIs.

  3. shiftkey commented on May 20, 2017

    @shiftkey
    Member

    Yep, it'd be nice to dig into this and see what things we can do in-app, versus working more closely with the Electron core team if it's outside our control.

    cc @desktop/electron for feels

  4. lee-dohm commented on May 20, 2017

    @lee-dohm
    Contributor

    @LeoNatan your comment was deleted as a violation of the Desktop Code of Conduct as is insulting or derogatory. You may consider this an official warning.

  5. wchristian commented on May 23, 2017

    @wchristian
    Author

    @shiftkey I suspect there are at least some things you could do. I've observed VS Code, while not being a good citizen either, being a better citizen.

  6. added
    windows
    on May 26, 2017
  7. Duncan-Brain commented on Jul 11, 2017

    @Duncan-Brain

    I had this same issue when I first installed, even after closing the desktop application on Windows 7 I had processes running up the CPU. At the same time a process called Update.exe was being suspicious. I found reopening Github Desktop, and going File > Close -- vs the usual red [X] -- got rid of both problems. Could be a coincidence.

    image

  8. stale commented on Oct 16, 2017

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

  9. wchristian commented on Oct 16, 2017

    @wchristian
    Author

    Still happens.

  10. shiftkey commented on Oct 16, 2017

    @shiftkey
    Member

    @wchristian I had an initial look at this a few months ago - it basically needs you to have a debug version of Electron and then know how to profile external processes in Visual Studio, but I got stuck at having to also provide a debug version of Node (where there was some interesting activity but lacked the symbols to correlate).

    What I did find when the app was minimized and in the background was a bunch of message pump activity, which was to be expected. So yeah, more research needed. I'll see if I can write up the process I went through to get to that point - maybe someone else is keen to get involved here.

  11. wchristian commented on Oct 16, 2017

    @wchristian
    Author

    @shiftkey Just documenting that sounds like an excellent step! I don't know if what i'm seeing is easily reproducable on other machines, so if you give me a build i can provide profiling data with i'd happily do that.

  12. added
    bug
    on Oct 23, 2017
  13. added
    priority-3
    on Oct 10, 2018
  14. added
    performance
    on Sep 23, 2020
  15. hulk0815 commented on Jan 21, 2021

    @hulk0815

    Description

    As the title says. It is minimized, has no data loaded, yet constantly uses CPU. To be clear on no data loaded, this was directly after install, with only the login being provided.

    image

    image

    Note that the usage must be multiplied by 4 to get the load on a single CPU core, as i have 4 cores. Also note that this kind of usage is significant as it prevents the CPU from settling in a low power state.

    Version

    GitHub Desktop version: 0.5.5

    OS version: Microsoft Windows [Version 10.0.15063]

    Steps to Reproduce

    1. Install Github Desktop
    2. Start Github Desktop
    3. Log in
    4. Minimize
    5. Observe CPU usage with Technet Process Explorer

    Expected behaviour: All of the Github Desktop processes should read a usage of 0 for at least a minute between usage spikes

    Actual behaviour: Github Desktop is constantly using CPU

    Reproduces how often: 100%

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

    bugperformancepriority-3windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions