[maemo-developers] [maemo-developers] Problem with Home plugin

From: Vladislav Vasiliev vlad at gas.by
Date: Mon Dec 18 13:53:55 EET 2006
Hello All,

Could you please help me with the issue I have with Maemo?

When I update my omweather home plugin package
https://garage.maemo.org/projects/omweather/ on Nokia 770 I have to reboot 
the device because plugin isn't unloaded from the memory. Switching plugin off doesn't help.
The same thing happens with any home plugin.

The lsof output clearly shows that plugin's stay in memory even when they're 
switched off. Here is example output of lsof when plugin iphome is switched off:
Nokia770-39:~# lsof|grep iphome

> > maemo-lau  856       user  mem    REG       31,4   11692      40758
> > /usr/lib/hildon-home/libiphome.so
> > Nokia770-39:~#
>   

In this tutorial 
http://maemo.org/platform/docs/howtos/maemo-plugin-tutorial.html#home-plugins
I found that hildon_home_applet_lib_deinitialize should do the job:

> > /**
> > * @hildon_home_applet_lib_deinitialize
> > *
> > * @param applet_data Applet data as returned by applet_initialize.
> > *
> > * Called when Home unloads the applet from memory.
> > * Applet should deallocate all the resources needed.
> > *   
> > */
> > 
> > void hildon_home_applet_lib_deinitialize(void *applet_data);
> > 
> > This very function when switching off the plugin is not called. Is this
> > a bug? May be I miss understand the problem?
> > 
>   
However it seems that this function isn't called when switching off
plugins or just doesn't unload plugins from memory. Is this a bug or
have I missed something? How should it be done properly?

Thank you.

Vlad Vasiliev



More information about the maemo-developers mailing list