After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 785212 - Quit with a large vFolder causes load of each message info
Quit with a large vFolder causes load of each message info
Status: RESOLVED FIXED
Product: evolution-data-server
Classification: Platform
Component: general
3.22.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: Evolution Shell Maintainers Team
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2017-07-21 08:51 UTC by Paul Menzel
Modified: 2017-07-24 17:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Three backtraces captured in GDB with `t a a bt` (73.02 KB, text/plain)
2017-07-21 08:51 UTC, Paul Menzel
Details

Description Paul Menzel 2017-07-21 08:51:09 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
Comment 1 Milan Crha 2017-07-24 14:17:32 UTC
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.
Comment 2 Milan Crha 2017-07-24 17:33:12 UTC
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+)