-
Notifications
You must be signed in to change notification settings - Fork 15.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Heavy CPU usage with tray.setImage #26603
Comments
Thanks for reporting this and helping to make Electron better! Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use. Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests. I'm adding the Thanks in advance! Your help is appreciated. |
Would checking out the repository provided above work as well? |
Might also be an issue of the appindicator extension: |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
bump |
Checking out the pasted repo would require us to debug into the repo's code, which our team does not have time to do. If you could reproduce the problem with some simple code like below it would be much more practical for us to look into it, otherwise we have to close this issue as most of other Electron apps do not have this issue. const {app, Tray} = require('electron')
let tray
app.once('ready', () => {
tray = new Tray('/path/to-icon')
}) |
This should reproduce the issue.
|
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
I ran the testcase @ #26603 (comment) with Electron v23.2.0 on Ubuntu 22.04.02 and saw only minimal CPU use, so apparently this was fixed sometime in the interim between Electron 10 and 23 💫 If anyone is still experiencing this issue on a supported version of Electron, please file a new issue for that version of Electron. Thanks! |
Issue Details
Several of my users seem to experience heavy CPU usage with the tray icon:
johannesjo/super-productivity#675
The text was updated successfully, but these errors were encountered: