Async methods linger if daemon fails to start

Bug #986230 reported by Michal Hruby on 2012-04-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libzeitgeist
Medium
Siegfried Gevatter

Bug Description

If the daemon fails to start (it is installed, but running it returns an error), the dbus proxy inside libzeitgeist will remain to be NULL, so all async calls will be queued and they'll never return.

A similar issue was fixed some time ago, but in that case zeitgeist wasn't installed at all and therefore the proxy was set to a non-NULL object, so the calls properly fail in that case.

Related branches

Siegfried Gevatter (rainct) wrote :

HOW TO REPRODUCE
1. Run ./examples/find-events from the libzeitgeist source directory and see it return a list of URIs.
2. Open /usr/share/dbus-1/services/org.gnome.zeitgeist.service and change the Exec= line to some nonsense.
3. Stop the Zeitgeist daemon with "zeitgeist-daemon -q".
4. Run ./examples/find-events again. It'll show a LibZeitgeist error an hang on idefinitely (instead of aborting).

Changed in libzeitgeist:
assignee: nobody → Siegfried Gevatter (rainct)
importance: Undecided → Medium
status: New → In Progress
Michal Hruby (mhr3) on 2012-04-27
Changed in libzeitgeist:
status: In Progress → Fix Committed
milestone: none → 0.3.20
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers