GNOME Bugzilla – Bug 600860
Opening IMAP message with large attachment blocks UI
Last modified: 2012-04-13 14:21:54 UTC
Opening a message from imap account with large attachement(5M), block whole evolution application, not only message window until it download all attachments This make Evolution almost unusable with imap and attachments
I forget version 2.28.1 , ubuntu 9.10 package
*** Bug 618076 has been marked as a duplicate of this bug. ***
For IMAP, attachments are downloaded when you first try to open them, and not when the message is retrieved. The solution is to check "Copy folder content locally for offline operation" in the inbox properties.
*** Bug 635868 has been marked as a duplicate of this bug. ***
*** Bug 665675 has been marked as a duplicate of this bug. ***
(In reply to comment #3) > For IMAP, attachments are downloaded when you first try to open them, and not > when the message is retrieved. Yes, this is correct. > The solution is to check "Copy folder content > locally for offline operation" in the inbox properties. Actually, this is not the "right" solution, it would only cover the symptom. Evolution should download attachments asynchronously, e.g. in a separate background thread that doesn't block the whole UI. Like the original reported said, the problem is that downloading a large attachment doesn't only block the current message's window but the whole Evolution. Also, an indication of the download's progress should be displayed to prevent the user from thinking the whole application just froze.
Created attachment 211975 [details] backtrace of evo during temporary freeze
Created attachment 211976 [details] backtrace of e-d-s during temporary freeze both taken on 2.28
(In reply to comment #7) > Created an attachment (id=211975) [details] > backtrace of evo during temporary freeze The interesting part about backtrace is below (notice the e_attachment_load_async and network I/O in the main thread *the backtrace is from the main thread)):
+ Trace 230055
Created attachment 211998 [details] [review] evo patch for evolution; In time of 2.29.5 had been done 6a72dacb7db5, which workarounded the issue by removing code which cased the freeze on message show in a preview panel. This didn't help much, because it moved the issue only slightly later, on time when user clicked the attachment button to access its context menu, like to save it. Then the UI was frozen again. This patch (it's for 3.4.0) fixes both issues, and makes load of mime part attachments really asynchronous.
Created commit 7c1a7df in evo master (3.5.1+) Created commit 5cba797 in evo gnome-3-4 (3.4.1+)
There is a little typo in the patch, in "attachemnt-load-context-data", which I fixed before committing. It doesn't have any impact on the patch functionality.