You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Even minimized and with no data loaded CPU is constantly being used on windows #1641
bugConfirmed bugs or reports that are very likely to be bugsperformanceRelating to things affecting performancepriority-3Bugs that affect small number of users and/or relatively cosmetic in naturewindowsIssues specific Desktop usage on Windows
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.
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]
@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.
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.
@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.
Reacted by Joshua Harms, Jonathon Toon and norlando
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.
@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.
@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.
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.
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]
bugConfirmed bugs or reports that are very likely to be bugsperformanceRelating to things affecting performancepriority-3Bugs that affect small number of users and/or relatively cosmetic in naturewindowsIssues specific Desktop usage on Windows
Activity
LeoNatan commentedon May 19, 2017
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".
shiftkey commentedon May 20, 2017
@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.
shiftkey commentedon May 20, 2017
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
lee-dohm commentedon May 20, 2017
@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.
wchristian commentedon May 23, 2017
@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.
Duncan-Brain commentedon Jul 11, 2017
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.
stale commentedon Oct 16, 2017
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
wchristian commentedon Oct 16, 2017
Still happens.
shiftkey commentedon Oct 16, 2017
@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.
wchristian commentedon Oct 16, 2017
@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.
hulk0815 commentedon Jan 21, 2021