[maemo-developers] [maemo-developers] Application receives SIGKILL if executed through the menu

From: Kimmo Hämäläinen kimmo.hamalainen at nokia.com
Date: Wed Jan 4 16:55:21 EET 2006
Hi,

Are you sure the osso_initialize() is compiled in when you start the
program from the menu? Because if osso_initialize() is not called, DBus
kills the program because it was started by the DBus daemon but never
registered to the bus (done in osso_initialize).

BR, Kimmo

On Wed, 2006-01-04 at 16:36, ext Celso Pinto wrote:
> Hi everyone,
> 
> I installed a small application I'm developing on the 770 and noticed
> that it crashed a lot so the next thing I did was to install it as well
> in the (x86) SDK and run it there. I noticed that the application also
> crashed but only when I run it by using the menu entry. 
> 
> If I run the application from the command line using run-standalone.sh
> it doesn't crash. So I installed xterm in the 770 and also ran the
> application from the command line and the results are the same: the
> application doesn't crash if started on the command line.
> 
> Debugging the application in the SDK, the gdb results are:
> Program terminated with signal SIGKILL, Killed.
> The program no longer exists.
> 
> Any ideas about why does this happen?
> 
> I think that this may be related to OSSO initialization, so here's how I
> initialize the application:
> 
> int
> main(int argc, char **argv)
> {
>   AppData appData;
>   gtk_init(&argc,&argv);
> 
> #ifdef MAEMO
>   ossoCtx = osso_initialize(PACKAGE,
>                             PACKAGE_VERSION,
>                             FALSE,
>                             NULL);
> 
>   if (ossoCtx == NULL)
>     return OSSO_ERROR;
> #endif
> 
>   load_resources();
>   create_gui(&appData);
>   gtk_main();
>   return 0;
> }
> 
> Any comments are welcome.
> 
> Cheers,
> Celso
> 
> 
> _______________________________________________
> maemo-developers mailing list
> maemo-developers at maemo.org
> https://maemo.org/mailman/listinfo/maemo-developers

More information about the maemo-developers mailing list