GNOME Bugzilla – Bug 688622
Evolution 3.6.0 hangs with a large number of unknown jobs
Last modified: 2013-01-30 19:48:02 UTC
Created attachment 229354 [details] Evolution backtrace After upgrading to Evo 3.6.0 I'm experiencing frequent hang-ups. The sequence of events is usually as follows: Evo starts normally (no errors etc). I'm able to use Evo without errors/warnings for anywhere between minutes and hours. Receiving/composing/sending emails is all ok. At some point (not clear what the trigger is) the message "Saving user interface state (cancelling)" appears in the status bar, usually accompanied by the message "Retrieving message '1338674962.4701_588.computer-name" in the message pane (the number varies of course). After 10-20 seconds an "Unknown background operation" job appears in the status bar, which is followed by many other such jobs (all with the "Unknown background operation" label). Evo CPU usage soon runs up to 100%. The jobs cant be canceled. Only way to quit Evo is to kill it. Backtrace attached.
Thanks for taking the time to report this bug. Does this still happen with 3.6.2? Unfortunately, that stack trace is missing some elements that will help a lot to solve the problem, so it will be hard for the developers to fix that crash. Can you get us a stack trace with debugging symbols? Please see http://live.gnome.org/GettingTraces for more information on how to do so and reopen this bug or report a new one. Thanks in advance!
I see from the backtrace that evolution doesn't do anything extra special, it's only waiting for a response from your addressbook, when searching for a sender's photo and checks its address for image loading. That's what most threads do in the backtrace. The main thread is trying to delete temporary auto-save file from composer, thus I suppose you just closed it before you grabbed the backtrace. I would like to know what the addressbook factory does, you can get a backtrace of it like this: $ gdb --batch --ex "t a a bt" -pid=PID &>bt.txt where PID is a process ID of running evolution-addressbook-factory (ps ax | grep evolution). Please install debug info packages for evolution-data-server too, without it the backtrace will be useless. Thanks in advance. As a workaround, you can disable addressbook lookups in: a) Edit->Preferences->Mail Preferences->HTML Messages tab, section Loading Images, to not have chosen there "Load images only in messages from contacts" b) Edit->Preferences->Mail Preferences->Headers tab, section Sender Photograph, uncheck "Show the photograph of sender in the message preview"
I was getting this too on 3.6.0. So I updated to 3.6.2, and it's still there, although I now (at least this one time) do not see the "Saving user interface" or "Unknown ...", but only "Updating search folders". Haven't tried the workarounds yet. I did notice I have one email address twice in my accounts (one is a duplicate I added through Gnome GMail integration somehow). More soon.
Could it be related to gnome-online-accounts and gnome-contacts. On my cinnamon system gnome-contacts won't even launch properly by itself. And gnome-online-accounts was the cause of that duplicate email address (gmail with address book too). I had no choice but to edit ~/.config/goa-1.0/accounts.conf manually to remove the duplicate.
Created attachment 232575 [details] Evolution backtrace #2
Created attachment 232576 [details] Evo addressbook factory backtrace
(In reply to comment #2) > I see from the backtrace that evolution doesn't do anything extra special, it's > only waiting for a response from your addressbook, when searching for a > sender's photo and checks its address for image loading. > > I would like to know what the addressbook factory does, you can get a backtrace > of it like this: > $ gdb --batch --ex "t a a bt" -pid=PID &>bt.txt > where PID is a process ID of running evolution-addressbook-factory > (ps ax | grep evolution). I attached a backtrace of evolution-addressbook-factory > Please install debug info packages for evolution-data-server too, without it > the backtrace will be useless. Thanks in advance. I attached a new backtrace of Evo (labeled #2). > As a workaround, you can disable addressbook lookups in: > a) Edit->Preferences->Mail Preferences->HTML Messages tab, section Loading > Images, to not have chosen there "Load images only in messages from > contacts" > b) Edit->Preferences->Mail Preferences->Headers tab, section Sender > Photograph, uncheck "Show the photograph of sender in the message preview" I did these two changes. It seems to have made an effect. I've been running Evo now for about a week, without any of the frequent hang-ups reported earlier. I'll mark the bug as resolved/fixed for now as the bug appears reported elsewhere and is fixed in later versions. https://bugzilla.gnome.org/show_bug.cgi?id=682295
Let it be "fixed" for now. The deduplication of my account didn't solve everything. Iwas still getting the "Updating search folders" hang. But now I notice that I didn't upgrade everything to 3.6.2, namely stuff about evolution-data-server. Since that is significant, I've now updated half a dozen more packages and I'll check if that fixes it for me, as Per expects/suggests above.
I've created some stack traces: psx | grep evo 17606 ? Sl 0:51 | \_ evolution 17614 ? SLl 0:00 evolution-sourc 17631 ? Sl 0:00 evolution-alarm 17637 ? Sl 0:00 evolution-calen 17797 ? Sl 0:03 evolution-addre It's the evolution process that I have to really kill with "kill -KILL". Again, this is on 3.6.2 from https://launchpad.net/ubuntu/raring/amd64/evolution/3.6.2-0ubuntu2. Evolution backtrace pjv: sudo gdb --batch --ex "t a a bt" -pid=17606 &>evolution_bug688622_evolution_stacktrace1.txt Evo addressbook factory backtrace pjv: sudo gdb --batch --ex "t a a bt" -pid=17797 &>evolution_bug688622_addressbookfactory_stacktrace1.txt Doesn't seem all that useful to me. Please reopen the bug.
Created attachment 232880 [details] Evolution backtrace pjv
Created attachment 232881 [details] Evo addressbook factory backtrace pjv
My previous stack traces were from a "Updating search folders" situation, where Evolution is just open and I can't access my mail. I have one more. Here I've ordered to close Evolution, but right before I did that it seems to have checked for new mail, as I'm getting "Updating folder '...'" in the status bar. It has been in this grey closing state for over 10 minutes. Note that the "evolution-addressbook" process is already gone?! Please see the attached stack trace. psx | grep evo 19272 ? Rl 16:28 | \_ evolution 18413 ? SLl 0:00 evolution-sourc 18429 ? Sl 0:00 evolution-alarm 18435 ? Sl 0:00 evolution-calen Evolution backtrace pjv #2: sudo gdb --batch --ex "t a a bt" -pid=19272 &>evolution_bug688622_evolution_stacktrace2.txt
Created attachment 232884 [details] Evolution backtrace pjv #2
(In reply to comment #10) > Created an attachment (id=232880) [details] > Evolution backtrace pjv (In reply to comment #11) > Created an attachment (id=232881) [details] > Evo addressbook factory backtrace pjv Please install debug packages. See https://live.gnome.org/GettingTraces
André, I already had the two evolution dbg packages installed when making those stack traces. Which, so you want me to add; these?: - libglib2.0-0-dbg - libgtk-3-0-dbg - libdconf-dbg - libjavascriptcoregtk-3.0-0-dbg - libwebkitgtk-3.0-0-dbg - libxcb1-dbg - libcairo2-dbg - libpango1.0-0-dbg I couldn't find debug packages for: - libgio - libgobject - libgdk-3 - libpangoft2 Thanks for the assistance.
(In reply to comment #8) > Let it be "fixed" for now. > > The deduplication of my account didn't solve everything. Iwas still getting the > "Updating search folders" hang. But now I notice that I didn't upgrade > everything to 3.6.2, namely stuff about evolution-data-server. Since that is > significant, I've now updated half a dozen more packages and I'll check if that > fixes it for me, as Per expects/suggests above. Have you tried the fix suggested by Milan Crha? That is what fixed the problem for me (I did not have to update any packages etc).
(In reply to comment #15) > André, I already had the two evolution dbg packages installed I don't know what "the two evolution dbg packages" are. > Which, so you want me to add; these?: Adding them would be a good start.
(In reply to comment #16) > Have you tried the fix suggested by Milan Crha? That is what fixed the problem > for me (I did not have to update any packages etc). It's rather a workaround, than a fix, but I agree it's mentioned in various bugs, the addressbook lookup code is still not the best here. The pjv's backtraces seem to have installed debuginfo for eds and evo, which is enough for me. The comment #11 shows an idle book factory, and the comment #10 busy evolution, but with drawing. Can it be an issue with spinner animation (bug #684639), blocking evolution from its usual job (bug #683867)? Note your comment #10 backtrace doesn't show any photo lookup thread, thus I guess you did do the workaround and disabled photo lookup. The comment #13 is similar to comment #10, idle evolution, only busy main thread with redrawing the window. I would try either update or downgrade your gtk3, based on your version. The 3.6.3 is too much, the 3.6.0 is too low :)
Milan, yes, I was going to try out your workaround later. I checked now. I already had the two settings set like the workaround (but didn't do it for this bug). It's growing apparent to me that Per's and my bug may not be entirely the same. Sorry about that. Your judgement seems correct. It is after all the main evolution task that I need to kill. I am seeing 100% CPU on one core. In that view, I think #683867 sounds like a good possibility. As you know, I have at least 3 different status bar messages with which I noticed this bug. My gtk3 version is 3.6.0-0ubuntu3.2. I'll try and see if I can find updates, but I have no idea how to safely manage it with synaptic. Thanks
I've updated only gtk3 to unstable 3.6.2-0ubuntu1. Let's wait till Evolution locks up again.
*** Bug 691372 has been marked as a duplicate of this bug. ***
Another occurrence: I closed Evolution, but a few minutes later I noticed it hadn't closed yet. It's similar to my comment #12, but the status bar text is "Filtering new messages in 'INBOX'". psx | grep evo 4263 ? Sl 13:23 | \_ evolution 2419 ? Sl 0:00 \_ evolution-alarm 2427 ? SLl 0:02 evolution-sourc 2451 ? Sl 0:00 evolution-calen 4439 ? Sl 0:10 evolution-addre sudo gdb --batch --ex "t a a bt" -pid=4263 &>evolution_bug688622_evolution_stacktrace3.tx Stack trace attached. Again, this is with gtk3 3.6.2. Though I have a certain feeling about it, I think it is too soon to say anything about how often (and more, or less) something like this occurs.
Created attachment 233264 [details] Evolution backtrace pjv #3
I see. Thread 3 is doing a book lookup, similar like the photo lookup, only here for junk check during filtering. These lookups are influenced by Edit->Preferences->Mail Preferences->tab Junk, option "Do not mark messages as junk if sender is in my address book". Uncheck it, to let it stop doing addresbook lookups. A related bug report to this lost response (I do not know what exactly causes this issue) is in bug #691276.
I haven't seen this in a while, actually as of my last stack trace above, if I recall correctly. I was then also going to say that it seemed to occur less.