[pygtk] [pymaemo] Seg. fault
Frédéric
frederic.mantegazza at gbiloba.org
Thu Jan 8 16:07:00 WST 2009
On mardi 06 janvier 2009, Frédéric wrote:
> On dimanche 04 janvier 2009, Frédéric wrote:
> > /usr/lib/python2.5/site-packages/papywizard/controller/abstractControl
> >ler.py:120: Warning: g_object_get_qdata: assertion `G_IS_OBJECT
> > (object)' failed self.wTree.signal_autoconnect(self._signalDict)
> > /usr/lib/python2.5/site-packages/papywizard/controller/abstractControl
> >ler.py:120: Warning: g_type_get_qdata: assertion `node != NULL' failed
> > self.wTree.signal_autoconnect(self._signalDict)
>
> Does anyone have an idea of the warnings reported here? What do they
> mean? I only get them on maemo OS 2008 on Nokia N800, not under other
> plateforms (maemo OS 2007, linux, windows)...
I think I found the issue. In my main dialog, which is build from a glade
xml file, I defined these signals:
on_dialog_key_press_event
on_dialog_key_release_event
Then, in my code, I build a dict with all signals, including these ones:
signalDict = "on_dialog_key_press_event": self.__onKeyPressed,
"on_dialog_key_release_event": self.__onKeyReleased,
...
Doing this crashes the application on maemo OS2008 (but works on OS2007!).
If I add the code:
self.dialog.connect("key-press-event", self.__onKeyPressed)
self.dialog.connect("key-release-event", self.__onKeyReleased)
then it works in any case.
BUT... the first config (definig signaks in the dict), which crashes my
main dialog, is also used in a secondary dialog, and works fine there!
I think there is a problem in the xml glade file, as I often (but not
always) have a nasty bug: just opening the File menu crashes the
application (on all maemo OS).
I'm puzzled. It seems there is several issues, and I can't find any infos
about all that. And I don't even know how to debug such problem...
Thanks for any idea.
PS: the code is here:
http://trac.gbiloba.org/papywizard/browser/trunk/
--
Frédéric
http://www.gbiloba.org
More information about the pygtk
mailing list