GNOME Bugzilla – Bug 667875
Connections should be stopped when computer is offline
Last modified: 2012-07-01 08:34:13 UTC
I noticed that sometimes, when the system goes offline for some reason, e.g. you shut down the WiFi, Evo doesn't kill all IMAP (via imapx) connections. This means you can have spinning operations in the status bar that will never succeed, while NetworkManager correctly reports no connection is alive. It can be a problem if you go back online not too long after disconnecting: the old connections are still hanging, and prevent the new ones from succeeding. I'm not sure how to reproduce it as it doesn't happen all the time. I suspect that when the ping to the IMAP server is failing (not sure why), then it will not be stopped even when going offline. I can investigate more if you can give me directions. This is with Evo 3.2.2 on Fedora 16.
The real problem is Camel doesn't always respond to the cancellation requests Evolution passes down to it via GCancellable.
Downstream bug report about the same from 3.4.0: https://bugzilla.redhat.com/show_bug.cgi?id=812511 I found a way to reproduce this bug at will: 1) Run evolution and test that it works normally 2) Kill the network (I'm using RFKILL switch) 3) Click "Send / Recieve" when network is down
+ Trace 230072
Thread 5 (Thread 0x7f24caffd700 (LWP 21751))
Thread 4 (Thread 0x7f24f3df6700 (LWP 21775))
Thread 3 (Thread 0x7f24cb7fe700 (LWP 21790))
Thread 2 (Thread 0x7f24dadf6700 (LWP 21791))
A similar issue with offline state is in bug #646801, while about imapx not stopping correctly is addressed within bug #664639, which may or may not address this issue too.
In 3.4, a terrible regression has appeared with respect to this: now, if network is disconnected, Evo only half-detects it, and will hang *forever* trying to fetch IMAPX mail. More precisely, this happens when I use both the WiFi killswitch or the network indicator; it also happens when returning from suspend, which is very annoying since xkill is then the only way to stop Evolution (!). The "Network outage" banner is shown, but the icon at the bottom-left corner says Evo is online, and the File menu has a "Go offline" item. A few seconds after going offline or returning from suspend, Evo fetches mail automatically, and the operation cannot be stopped. Do you think this is related to bug #664639 mentioned above?
(In reply to comment #4) > Do you think this is related to bug #664639 mentioned above? It may depend on the actual backtrace, but I guess it's related. At least your first paragraph sounds like the exactly same thing.
OK, this must have been related, since it's fixed in 3.4.3. Thanks!