-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
High CPU usage with new design #1542
Comments
Hi! Thanks for reporting this. We're already overflow with issues so we bight not be able to get to this right away. I'd still like to know as much as I can about this issue.
Anyway, this is unusual behaviour for Caprine (I'm running v2.52 on Fedora with relatively low CPU usage) so we'll see what is going on. If there were no such problems before this, it might be related to Messenger website since there were very little changes in the Electron code (mostly if statements to check if something should be done for the new or old ui). |
Thanks and no worries if it takes some time.
I guess CPU usage increases a bit then and that's to be expected. Even with no GIFs/videos/very active chats, I get this issue
I just checked now and indeed brave has significantly lower CPU usage with messenger.com open (and focused).
I usually fully restart my system once or twice per week. I haven't noticed any patterns with the uptime of Caprine. Indeed, fully quitting and restarting Caprine does not resolve the issue.
I suspect that the new messenger UI is the issue. I should add that I also had this issue with the new messenger UI on older Caprine versions (e.g. v2.51.2) so I don't think #1514 is the issue. I just tried removing and reinstalling Caprine but that did not resolve the issue either. I also tried the snap package (though I am generally not a fan of snaps) and the CPU usage seemed to fluctuate more here (though I only tested this briefly). If it's helpful this is the output of
|
After reading this issue, I checked my cpu usage and found it to be much higher than expected as well.
This is the .deb install on Debian-based MX while sitting idle with no active message threads selected. I usually leave it on the "New Message" block when idle. With this new information, I will be going back to running Messenger in a browser window or tab until this issue and the "Block Seen Indicator" have been resolved. |
Thanks for all the info! Seems like the Caprine renderer process is what is causing the high CPU usage. That is the process that handles the UI for the website (generates what you see on the app). Indeed, regular web browser (chromium based) doesn't have that problem. This could be either related to Electron (however I've tried multiple different versions and I've got the same result) or it could be related to the new ui. Since I don't have that problem with the new ui in the browser, this is probably due to some code for old ui doing something on the new ui which is causing the high cpu usage. Caprine is basically looking for elements on the website which don't exist and it might be doing some bad stuff along the way which is causing the cpu usage that we see. We'll see what changes when we fix all of the Caprines codebase to work on the new design. I hope this is not causing too much trouble (clogging your system) but the only way I can see we make any progress right now is by fixing current issues caused by redesign. |
Yeah, I guess we'll have to see when other features are fixed with the new UI but I suspect you're right that it's looking for elements that don't exist with it. |
I briefly tried 2.52.1 and still had the same issue. |
No VA-API no party XD |
Closing, as it will probably be fixed in the next release. |
Ever since the messenger.com update which broke lots of features (some of which were fixed in #1514), I have noticed CPU usage is much higher than it used to be. When my computer is [pretty much] idling, caprine is, more often than not, the process with the highest CPU usage (usually >50% as reported by
top
orhtop
) and almost always even more than my web browser (brave) with many open tabs. I am using:I am very unfamiliar with electron development but would be happy to help resolve this in any way I can.
The text was updated successfully, but these errors were encountered: