Bug 649986 - Gajim consumes 100% CPU
Summary: Gajim consumes 100% CPU
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gajim
Version: 14
Hardware: i686
OS: Linux
low
medium
Target Milestone: ---
Assignee: Michal Schmidt
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-11-04 22:33 UTC by Johan Vromans
Modified: 2010-11-19 22:33 UTC (History)
1 user (show)

Fixed In Version: gajim-0.14.1-3.fc14
Clone Of:
Environment:
Last Closed: 2010-11-19 22:33:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Johan Vromans 2010-11-04 22:33:28 UTC
Description of problem:

After upgrading F13 to F14, gajim consistently consumes 100% CPU.
I have a simple configuration consisting of a single jabber account with a few contacts.

Version-Release number of selected component (if applicable):

gajim-0.14-4.fc14

How reproducible:

Always.

Steps to Reproduce:
1. Start gajim
2. Start 'top'
  
Actual results:

Fans start blowing and top shows a CPU usage for gajim between 99-101%.

Expected results:

A neglectible CPU usage, as it was with F13.

Additional info:

It makes no difference whether I use my existing config, or remove .config/gajim/config, start gajim and re-connect to my jabber account from scratch.

Comment 1 Michal Schmidt 2010-11-05 14:47:44 UTC
I am not seeing this problem on my F14 systems.
Apart from the high CPU usage, is the program otherwise usable?
I wonder if the bug is triggered by something specific in your Jabber account. Could you test it with another Jabber account?
Also try running Gajim from a terminal window with debugging output:
  gajim --verbose
Hopefully it will show a hint.

Comment 2 Johan Vromans 2010-11-05 16:04:39 UTC
I tried this on another F14 system and it shows the same behaviour.

I ran gajim --verbose on F13 and F14. The main difference is that after setting up, F13 sits waiting quietly for messages while F14 starts looping:

  16:27:10 (I) gajim.c.x.idlequeue read timeout removed for fd 30

(the fd may vary between sessions). This loop consumes the CPU time.
When I set the account Offline, and then Available, gajim behaves like it should (and did on F13). So the looping only occurs when gajim is started and automatically connects the account.

I can send you the F13 and F14 logs but I'm hesitant to upload them here since they may contain sensitive information.

Comment 3 Michal Schmidt 2010-11-05 19:39:47 UTC
This may be the same bug: http://trac.gajim.org/ticket/5991
Can you check with the XML console what the server tells you in the "<streamhost ...>" data?
I made a scratch build of Gajim with the patch from the upstream bug applied:
http://koji.fedoraproject.org/koji/taskinfo?taskID=2580521
Let me know if it fixes the bug for you.

Comment 4 Johan Vromans 2010-11-05 20:52:06 UTC
The streamhost info from my jabber server is, indeed:
<streamhost jid="proxy.jabber.xs4all.nl" host="127.0.1.1" port="7777"/>

Gajim with the patch from the upstream bug applies behaves normally.

Thanks a lot!

Should I inform the jabber server people that they send the wrong info?

Comment 5 Fedora Update System 2010-11-05 21:54:26 UTC
gajim-0.14.1-2.fc14 has been submitted as an update for Fedora 14.
https://admin.fedoraproject.org/updates/gajim-0.14.1-2.fc14

Comment 6 Michal Schmidt 2010-11-05 21:58:57 UTC
(In reply to comment #4)
> Should I inform the jabber server people that they send the wrong info?

Yes, please.

Comment 7 Fedora Update System 2010-11-06 23:43:26 UTC
gajim-0.14.1-2.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gajim'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/gajim-0.14.1-2.fc14

Comment 8 Michal Schmidt 2010-11-15 22:21:38 UTC
The original fix in gajim-0.14.1-2.fc14 caused a regression for a gmail.com user.
I applied another patch in 0.14.1-3. Could you please verify that gajim-0.14.1-3.fc14 still works fine for you?
https://admin.fedoraproject.org/updates/gajim-0.14.1-3.fc14

Comment 9 Johan Vromans 2010-11-16 07:04:02 UTC
Confirmed. Thanks.

Comment 10 Fedora Update System 2010-11-16 23:14:07 UTC
gajim-0.14.1-3.fc14 has been pushed to the Fedora 14 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update gajim'.  You can provide feedback for this update here: https://admin.fedoraproject.org/updates/gajim-0.14.1-3.fc14

Comment 11 Fedora Update System 2010-11-19 22:33:22 UTC
gajim-0.14.1-3.fc14 has been pushed to the Fedora 14 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.