GNOME Bugzilla – Bug 785212
Quit with a large vFolder causes load of each message info
Last modified: 2017-07-24 17:33:12 UTC
Created attachment 356095 [details] Three backtraces captured in GDB with `t a a bt` With Debian Sid/unstable and Evolution 3.22.6, quitting Evolution, it takes several minutes, until it eventually closes [1]. Tracing Evolution while closing, I see a lot of the messages below. ``` 2290 stat64("/home/joey/.local/share/evolution/mail/local/folders.db-journal", 0xbfbd552c) = -1 ENOENT (No such file or directory) 2290 stat64("/home/joey/.local/share/evolution/mail/local/folders.db-wal", 0xbfbd552c) = -1 ENOENT (No such file or directory) ``` ``` $ grep -c "No such file or" 20170715-evolution-term-strace.txt 429316 ``` I was asked to capture some backtrace with GDB. Please find three of them attached in one file. [1] https://mail.gnome.org/archives/evolution-list/2017-July/msg00035.html
Thanks for a bug report. It looks like it happens due to some messages being "moved" to the Unmatched Search Folder, even though it is done on quit. The search folder also seems to cover messages under On This Computer, or any custom Maildir account.
I noticed also some other ineffective work with the vFolders with respect of preloading items into the memory, thus I change that as well. The patch is not fully applicable to the 3.22.x, due to API changes in Camel which happened for 3.24, but at least changes which involve camel_application_is_exiting should be possible to apply and these will make some difference on quit on their own too. Created commit 666be62 in eds master (3.25.90+) Created commit 58da08f in eds gnome-3-24 (3.24.5+)