[maemo-developers] [maemo-developers] Could not initialize osso

From: Kimmo.Hamalainen at nokia.com Kimmo.Hamalainen at nokia.com
Date: Mon Jun 27 10:00:11 EEST 2005
Make sure that both D-BUS busses are running and that DBUS_SESSION_BUS_ADDRESS
is defined for the program.

BR; Kimmo

> -----Original Message-----
> From: maemo-developers-bounces at maemo.org
> [mailto:maemo-developers-bounces at maemo.org]On Behalf Of ext Gergely
> Buday
> Sent: 23 June, 2005 18:39
> To: maemo-developers at maemo.org
> Subject: [maemo-developers] Could not initialize osso
> 
> 
> Hi,
> 
> when typing af-sb-init.sh, I get the following error message:
> 
> ** (hildon-input-method:14020): WARNING **: Could not initialize osso
> from hildon-input-method
> 14020: arguments to dbus_connection_get_data() were incorrect,
> assertion "connection != NULL" failed in file dbus-connection.c line
> 3633.
> This is normally a bug in some application using the D-BUS library.
> 14020: arguments to dbus_connection_set_watch_functions() were
> incorrect, assertion "connection != NULL" failed in file
> dbus-connection.c line 2958.
> This is normally a bug in some application using the D-BUS library.
> 
> My code is the following:
> 
> #include <hildon-widgets/hildon-app.h>
> #include <hildon-widgets/hildon-appview.h>
> #include <gtk/gtk.h>
> #include <libosso.h>
> 
> int main(int argc, char** argv)
> {
>         HildonApp* app;
>         HildonAppView* appview;
> 
>         gtk_init(&argc, &argv);
> 
>         osso_initialize("helloWorld", "0.1", TRUE, NULL);
>         app = HILDON_APP(hildon_app_new());
>         hildon_app_set_title(app, ("My Title"));
>         hildon_app_set_two_part_title(app, TRUE);
> 
>         appview = HILDON_APPVIEW(hildon_appview_new("AppView Title"));
>         hildon_app_set_appview(app, appview);
> 
>         gtk_container_add(GTK_CONTAINER(appview),
>            gtk_label_new("HildonAppView Example"));
> 
> 
>         gtk_widget_show_all(GTK_WIDGET(app));
>         gtk_main();
> 
>         return 0;
> }
> 
> Or should I look for the mistake somewhere else?
> 
> - Gergely
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers
> 

More information about the maemo-developers mailing list