Gajim doesn't reconnect to local-link (avahi) after a restart of NetworkManager

Bug #151568 reported by Id2ndR
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gajim (Ubuntu)
Fix Released
Medium
Nafallo Bjälevik

Bug Description

Binary package hint: gajim

Ubuntu gutsy

Steps to reproduce :
- Launch Gajim => local link work
- kill NetworkManager, and restart it (reason : a problem with rt2x00)
- Gajim connect to jabber accounts, but no with avahi. It seem connected but it doesn't show an other people using local-link messenging.

Errors :
$ gajim
Requires docutils 0.4 for set_classes to be available
Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/connection.py", line 559, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/share/gajim/src/common/zeroconf/zeroconf.py", line 147, in service_resolved_callback
    self.new_serviceCB(name)
  File "/usr/share/gajim/src/common/zeroconf/connection_zeroconf.py", line 187, in _on_new_service
    self.dispatch('NOTIFY', (jid, self.roster.getStatus(jid), self.roster.getMessage(jid), 'local', 0, None, 0))
  File "/usr/share/gajim/src/common/zeroconf/connection_zeroconf.py", line 127, in dispatch
    gajim.handlers[event](self.name, data)
  File "gajim.py", line 468, in handle_event_notify
    contact_nickname = array[7]
IndexError: tuple index out of range
Traceback (most recent call last):
  File "/usr/share/gajim/src/common/zeroconf/connection_zeroconf.py", line 179, in _on_resolve_timeout
    self.roster.getMessage(key), 'local', 0, None, 0))
  File "/usr/share/gajim/src/common/zeroconf/connection_zeroconf.py", line 127, in dispatch
    gajim.handlers[event](self.name, data)
  File "gajim.py", line 468, in handle_event_notify
    contact_nickname = array[7]
IndexError: tuple index out of range

Revision history for this message
Id2ndR (id2ndr) wrote :

iChat Presence of avahi is okay since it's seen with avahi-discover (for both local and remote computers).

Revision history for this message
Laurent Bigonville (bigon) wrote :

Same problem here

Changed in gajim:
status: New → Confirmed
Revision history for this message
Stefan Bethge (kjyv) wrote :

This is actually a bug I get without reconnecting, it always happens after the first connect and
makes link-local messaging non-functional for me.
The attached patch should fix it.

Changed in gajim:
assignee: nobody → nafallo
importance: Undecided → Medium
status: Confirmed → Fix Committed
Revision history for this message
Nafallo Bjälevik (nafallo) wrote :

gajim (0.11.3-0ubuntu1) hardy; urgency=low

  * New upstream release:
    - Fix bookmarks support detection
    - Improve file transfer on windows
    - Fix some zeroconf bugs
    - Fix focus bug in chat window
    - Fix nickname changement behaviour in groupchats
  * Merge our changes, patches and backports
  * po/de.po:
    - Removed the fuzzy and the dots for a translation (LP: #162584)

gajim (0.11.2-0ubuntu2) UNRELEASED; urgency=low

  * debian/control:
    - Change bazaar.launchpad.net to code.launchpad.net
    - Change the recommend on dbus-glib to python-dbus (LP: #152333)
  * src/common/zeroconf/connection_zeroconf.py:
    - Apply patch from Stefan Bethge to fix an IndexError (LP: #151568)

 -- Nafallo Bjaelevik <email address hidden> Sat, 17 Nov 2007 13:26:57 +0000

Changed in gajim:
status: Fix Committed → Fix Released
Revision history for this message
Das Auge (0815jo) wrote :

Problem persists in Gajim 0.11.4. Reopening the bug.

Error window: "Fehler beim hinzufügen des Dienstes.
org.freedesktop.Avahi.BadStateError: Bad state
Lokaler Nachrichtenversand funktioniert eventuell nicht richtig."

ubuntu@machine:~$ gajim
Requires docutils 0.4 for set_classes to be available

Revision history for this message
Das Auge (0815jo) wrote :

The bug seems to have reappeared in 0.11.4

Changed in gajim:
status: Fix Released → Confirmed
Revision history for this message
Das Auge (0815jo) wrote :

Laurent, has the bug gone?
I cannot test it, since I don't have anymore installed Avahi.

Revision history for this message
Laurent Bigonville (bigon) wrote :

Look fixed for me

Revision history for this message
Das Auge (0815jo) wrote :

So I set it to fixed.
I hope, i'm not doing anything wrong.

Changed in gajim (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.