Bug 7826

Summary: Must call dbus_g_bus_get() before any dbus_g_object_register_marshaller()
Product: dbus Reporter: Daniel d'Andrada TenĂ³rio de Carvalho <daniel.carvalho>
Component: GLibAssignee: Robert McQueen <robert>
Status: RESOLVED DUPLICATE QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: high    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Daniel d'Andrada TenĂ³rio de Carvalho 2006-08-09 14:32:57 UTC
All dbus_g_object_register_marshaller() calls made before the first
dbus_g_bus_get() call will generate debug warnings and won't work properly
(i.e., some marshallers won't be found).

Looks like some stuff needed by dbus_g_object_register_marshaller() function
only gets initialized/set when you call dbus_g_bus_get(), which is obviously a
wrong behaviour.
Comment 1 John (J5) Palmieri 2006-08-09 15:11:36 UTC
This is because dbus_g_bus_get() initalized the D-Bus GLib's special types. 
Solution would be to add a dbus_g_init function that does the init.
Comment 2 Rob Taylor 2006-10-25 13:15:56 UTC

*** This bug has been marked as a duplicate of 3999 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.