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 675160 - empathy-chat consistently uses 9-10 % CPU
empathy-chat consistently uses 9-10 % CPU
Status: RESOLVED NOTGNOME
Product: empathy
Classification: Core
Component: Chat
3.4.x
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2012-04-30 14:31 UTC by Bilal Shahid
Modified: 2012-10-24 07:57 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
debug output (83.42 KB, text/plain)
2012-04-30 15:49 UTC, Lorem
Details
gdb log (8.26 KB, text/plain)
2012-05-01 10:32 UTC, Lorem
Details
gdb empathy-chat (11.97 KB, text/plain)
2012-05-01 10:42 UTC, Lorem
Details

Description Bilal Shahid 2012-04-30 14:31:43 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
Comment 1 Guillaume Desmottes 2012-04-30 14:56:13 UTC
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?
Comment 2 Michael T 2012-04-30 15:30:00 UTC
No, only occasional debug messages which look like they are supposed to be there (would you like more details?)
Comment 3 Lorem 2012-04-30 15:49:43 UTC
Created attachment 213112 [details]
debug output
Comment 4 Lorem 2012-04-30 15:50:41 UTC
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
Comment 5 Guillaume Desmottes 2012-05-01 08:06:35 UTC
(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.
Comment 6 Lorem 2012-05-01 10:32:19 UTC
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
Comment 7 Lorem 2012-05-01 10:42:05 UTC
Created attachment 213189 [details]
gdb empathy-chat
Comment 8 Guillaume Desmottes 2012-05-03 12:15:37 UTC
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?
Comment 9 Lorem 2012-05-03 13:11:51 UTC
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 :)
Comment 10 Bilal Shahid 2012-05-03 13:43:51 UTC
lorem no need to file the another bug just wait for the reply from the developer
Comment 11 Guillaume Desmottes 2012-05-03 13:47:05 UTC
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.
Comment 12 Guillaume Desmottes 2012-10-24 07:57:06 UTC
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