1. call dbus_g_type_specialized_init() 2. call type = dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_VALUE); 3. call dbus_g_bus_get() you get at the console ** (process:19756): CRITICAL **: lookup_or_register_specialized: assertion `klass != NULL' failed if you do 3. 1. 2. it's working fine, i have been told by Colin Walters this is a bug.
*** Bug 7826 has been marked as a duplicate of this bug. ***
I'm not entirely sure this is a bug. Something needs to install the default dbus gtypes. Maybe we could expose _dbus_g_value_types_init () as public api? ideas?
If you use a peer connection its impossible to do this in the reverse order as you'll never call dbus_g_bus_get(). I worked around this by adding the init call to dbus_connection_setup_with_g_main() and dbus_server_setup_with_g_main(), but making the init function public might be a safer solution.
Moving to a dup of 13908 as that has a proposed patch. *** This bug has been marked as a duplicate of bug 13908 ***
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.