unity places race with gdbus to register objects on startup

Bug #710560 reported by Mikkel Kamstrup Erlandsen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Fix Released
Critical
Mikkel Kamstrup Erlandsen
unity-lens-applications
Fix Released
Critical
Mikkel Kamstrup Erlandsen
unity-lens-files
Fix Released
Critical
Mikkel Kamstrup Erlandsen
unity (Ubuntu)
Fix Released
Undecided
Unassigned
unity-place-applications (Ubuntu)
Fix Released
Undecided
Unassigned
unity-place-files (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

See https://bugzilla.gnome.org/show_bug.cgi?id=640714.

In a nutshell: The Unity places are using g_application_register() on startup. This call does a sync DBus call to own the app name on the bus. The problem is that this is broken by design because GDBus will start processing messages before you've returned to the call site of register(). This makes the caller race to register object paths before incoming methods are dispatched.

The (normal) solution would be to always register the objects before calling app.register() but we don't want to do that because our objects can be very expensive to set up.

Revision history for this message
Mikkel Kamstrup Erlandsen (kamstrup) wrote :

Fixed in unity-place-files 0.5.36

Changed in unity-place-files:
assignee: nobody → Mikkel Kamstrup Erlandsen (kamstrup)
importance: Undecided → Critical
status: New → Fix Released
Changed in unity-place-applications:
status: New → Fix Released
Changed in unity:
assignee: nobody → Mikkel Kamstrup Erlandsen (kamstrup)
status: New → Fix Released
milestone: none → 3.4
importance: Undecided → Critical
Changed in unity-place-applications:
assignee: nobody → Mikkel Kamstrup Erlandsen (kamstrup)
importance: Undecided → Critical
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-place-files - 0.5.36-0ubuntu1

---------------
unity-place-files (0.5.36-0ubuntu1) natty; urgency=low

  * New upstream release:
    - Workaround unity places race with gdbus to register objects on startup
      (LP: #710560)
 -- Didier Roche <email address hidden> Mon, 31 Jan 2011 12:41:47 +0100

Changed in unity-place-files (Ubuntu):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-place-applications - 0.2.30-0ubuntu1

---------------
unity-place-applications (0.2.30-0ubuntu1) natty; urgency=low

  * New upstream release:
    - Workaround unity places race with gdbus to register objects on startup
      (LP: #710560)
 -- Didier Roche <email address hidden> Mon, 31 Jan 2011 12:41:56 +0100

Changed in unity-place-applications (Ubuntu):
status: New → Fix Released
Changed in unity (Ubuntu):
status: New → 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.