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

From: Celso Pinto cpinto at yimports.com
Date: Wed Jan 4 16:36:22 EET 2006
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



More information about the maemo-developers mailing list