GNOME Bugzilla – Bug 675160
empathy-chat consistently uses 9-10 % CPU
Last modified: 2012-10-24 07:57:06 UTC
Originally reported at: https://bugs.launchpad.net/bugs/959084 This may have started since I upgraded my system to 12.04, it was certainly a recent development at around that time. I am using empathy for IRC only, connected to four channels on two servers, though even disabling all accounts does not change this. The empathy-chat process is very consistently at 9% CPU, with spikes at 10% or higher from time to time. I have tested this on mobile broadband, wifi and ethernet. i have also tested it with DistroRelease: Ubuntu 12.04 Package: empathy 3.3.91-0ubuntu3 and tested with 3.4.1 as well ProcVersionSignature: Ubuntu 3.2.0-19.30-generic 3.2.11
before starting any conversation, start empathy-chat manually using: EMPATHY_PERSIST=1 EMPATHY_DEBUG=all FOLKS_DEBUG=all G_MESSAGES_DEBUG=all /usr/lib/empathy/empathy-chat After the initial flood of debug output, are you observing any debug output loop while empathy-chat is eating the cpu?
No, only occasional debug messages which look like they are supposed to be there (would you like more details?)
Created attachment 213112 [details] debug output
In attachment the output messages for: EMPATHY_PERSIST=1 EMPATHY_DEBUG=all FOLKS_DEBUG=all G_MESSAGES_DEBUG=all /usr/lib/empathy/empathy-chat regards
(empathy-chat:11795): tp-glib/handles-DEBUG: connection_requested_handles: 1 handles of type 1 failed: tp_errors 6: JID XXX_40gmail_2ecom0 is invalid or has no node part is weird but I doubt it's the reason of all this CPU being used. Could you tell me more about this contact? Is he an invalid JID? Can you see him in your contact list? Running empathy-chat in gdb and interrupting it when it's using a lot of CPU to check what is doing may be helpful as well. You may have to install empathy debug symbols first.
Created attachment 213187 [details] gdb log Yes, i presume all my contacts are valid Jabber ID (i use Empathy for Gtalk). I can see all of them, and in general Empathy works fine
Created attachment 213189 [details] gdb empathy-chat
Humm nothing really interesting there. :\ How many IM accounts do you have? Does disabling one of them help? I see one thread is doing js stuff. Could you try changing your theme to a not Adium one (like 'Classic') and see if that helps?
I've tried several time, and yes, changing the default chat theme brings cpu around 0/1% :) Now, what's the next step? should we file another bug on launchpad or what? anyway, thank you Guillaume :)
lorem no need to file the another bug just wait for the reply from the developer
I guess you are using the Ubuntu chat theme? So yeah, report it on it on launchpad. Note that way be a WebKit bug as well.
I commented on the downstream bug about some suggestion on how to start debugging this: https://bugs.launchpad.net/ubuntu/+source/empathy/+bug/959084/comments/18