service-discovery-applet crashes when Avahi daemon stops

Bug #85063 reported by Nafallo Bjälevik
2
Affects Status Importance Assigned to Milestone
service-discovery-applet (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: service-discovery-applet

Have a network that claimes to have a .local SOA start automatically with sda on the panel. Reproducable every time on my parents wireless.

ProblemType: Crash
Date: Wed Feb 14 11:56:03 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/service-discovery-applet
InterpreterPath: /usr/bin/python2.5
Package: service-discovery-applet 0.4.3-3build1
ProcCmdline: /usr/bin/python /usr/bin/service-discovery-applet --oaf-activate-iid=OAFIID:GNOME_ServiceDiscoveryApplet_Factory --oaf-ior-fd=26
ProcCwd: /
ProcEnviron:
 LANG=sv_SE.UTF-8
 LANGUAGE=sv_SE:sv:en_GB:en
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/games
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/service-discovery-applet', '--oaf-activate-iid=OAFIID:GNOME_ServiceDiscoveryApplet_Factory', '--oaf-ior-fd=26']
SourcePackage: service-discovery-applet
Uname: Linux darkelf 2.6.20-8-generic #2 SMP Tue Feb 13 01:14:41 UTC 2007 x86_64 GNU/Linux

Revision history for this message
Nafallo Bjälevik (nafallo) wrote :
Revision history for this message
Martin Pitt (pitti) wrote :

Indeed, s-d-a should gracefully handle the case when Avahi is stopped (be that manually, due to a dist-upgrade, or due to an appearing unicast .local domain).

Changed in service-discovery-applet:
status: Unconfirmed → Confirmed
Revision history for this message
Sebastien Estienne (sebest) wrote :

i worked on these issues should be fixed in the upcoming release.
i handle avahi restart, but handling dbus restart is quite different.

I'm not sure how this should be done, maybe retrying to connect in a loop...

Revision history for this message
Martin Pitt (pitti) wrote :

Sebastien, great! However, I wouldn't worry too much about dbus restarts. We do not do them in Ubuntu on package upgrades because most dbus client packages don't get along with that at all. We tried in the past to add 'reconnect on dbus restart' patches, but as the number of client applications grows and upstream is against the idea as well, we just gave up.

The only thing that it should handle more gracefully is the case that there's no dbus when s-d-a is started (an error message and quitting).

Revision history for this message
Sebastien Estienne (sebest) wrote :

avahi restart, and displaying a graphical error message on issues with dbus is implemented in the upcoming release.

It seems that most of the crash that were reported in launchpad were related to the session bus not being available. in s-d-a the session bus was used for notifications, i moved on using python-notify instead of the dbus api. And when something goes wrong with the notification deamon, i disable notification instead of crashing :)

Revision history for this message
Sebastien Estienne (sebest) wrote :

i think we could close this one too.

Martin Pitt (pitti)
Changed in service-discovery-applet:
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.