High (100%), continuous CPU use
This is a meta-issue for anyone experiencing high CPU use when running Geary. If you are affected by this, please read through the following to ensure what you are seeing is actually a bug, and what to do if that is the case.
Always ensure you are running the latest version of Geary. If you are running an older version, the issue you are seeing may already be fixed.
If this is happening after you have first installed and run Geary, high CPU use is to be expected as Geary will be downloading your email in the background and indexing it for its full-text search engine. This can take hours for people with slow network connections, if you have added multiple accounts, or if you have have large amount of email to download, but will eventually stop. Keep your eye on the spinner at the bottom of the main window.
If you have a very large folder (> 50,000 messages), then these can take some time to sync flags like unread status when you select the folder in the app, but will also eventually stop depending on the speed of your internet connection, remote server, etc. Again, keep your eye on the spinner at the bottom of the main window.
If this is still happening even after Geary has downloaded all of your email and is not related to folder sync after selecting it, please try running Geary from a terminal using the following commands:
For Flatpak installations:
flatpak run org.gnome.Geary -d --log-periodic | tee geary.txt
Or for other installations:
geary -d --log-periodic | tee geary.txt
When you notice Geary consuming 100% of your CPU for more than ~1 minute, quit the app, open the
geary.txt file in a text editor and redact any private information, then attach it here.
- Run Geary under Sysprof or another profiling tool such as gprof, and then when you notice Geary consuming 100% of your CPU for more than ~1 minute, save the profiling data and attach it here.