| Summary: | dbus_g_bus_get must be called before using specialized gtypes | ||
|---|---|---|---|
| Product: | dbus | Reporter: | Raphael Slinckx <raphael> |
| Component: | GLib | Assignee: | Rob Taylor <rob.taylor> |
| Status: | RESOLVED DUPLICATE | QA Contact: | John (J5) Palmieri <johnp> |
| Severity: | normal | ||
| Priority: | high | CC: | daniel.carvalho, ross, walters |
| Version: | unspecified | ||
| Hardware: | x86 (IA32) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| i915 platform: | i915 features: | ||
*** 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. |
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.
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.