[maemo-developers] Debugging applet causing hildon-home crash

From: Anderson Lizardo anderson.lizardo at openbossa.org
Date: Thu Jan 7 17:48:34 EET 2010
2010/1/7 Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>:
> On Wed, 2010-01-06 at 22:46 +0100, ext Graham Cobb wrote:
>> In Fremantle, the GPE Summary applet causes hildon-home to crash if it is
>> removed and then re-added.  I have not been able to work out what the problem
>> is.
>
> We had several of this kind of crashes that happen when you remove and
> add it back. Usually the problem was in the Glib types that the applet
> uses: if it tries to register new types that are already there, or
> something similar.  I guess Glib should print out some warnings for you?
> (notice that hildon-home probably closes stdout by default)

As a side note, python-hildon suffered from these issues because the
latest hildon-home (or hildon-desktop?) versions seemed to incorporate
some gtype registration functions which were missing before (i.e. ones
usually generated by glib-mkenums). The python bindings tried to
register the same types again, which caused problems (the errors shown
on console gave a hint about this).

The fix consisted on not running glib-mkenums for hildon types. Maybe
not related to this problem, but anyway.

>> Any hints on how best to debug this hildon-home crash?
>
> It could help to disable all other plugins than the one that you are
> debugging and using gdb or good old printfs I guess.

I usually also debug on scratchbox/x86 , where I can kill hildon-home
and restart it again with

hildon-home &

which then shows debug messages on the console.

Regards,
-- 
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
More information about the maemo-developers mailing list