Gustavo Sverzut Barbieri a écrit :
> Also, we need to review this in whole Elementary... it was complicate
> to get right for evas/edje/ecore, but they are correct now... you need
> to check them or ask me, if we start to spread minor errors like this
> then we'll have hard time tracking these beasts after some time.
> 

on a totally unrelated note, coincidentally,
Today i discovered a crash in my python-elementary application
 related to callbacks : randomly, i would get uncaught exceptions
(like TypeError: 'edje.c_edje.Edje' object is not callable)
and/or segfaults in the _hoversel_callback function which is similar
to this _list_callback.

After adding some print-debugging, i found out there must be a problems
with the callback system : The objects that i get from the self.cbs object
are completely changed and unrelated to the original.
I get string and objects that are used somewhere else, or strange tuples of
null objects from hell.
Some examples :

cbt is ((<NULL>, <NULL>, <NULL>, <NULL>), 'p', <Direction left object>, 'o')
Traceback (most recent call last):
  File "elementary.c_elementary_hoversel.pxi", line 29, in
elementary.c_elementary._hoversel_callback 
(elementary/elementary.c_elementary.c:14693)
TypeError: 'str' object is not callable
Segmentation Fault

printing the id of the objects (only two items on this hoversel)

cbt : 159092164 (159122508, 159089004, 159284544, 159110764)
cbt : 159092244 (159122508, 159092204, 159284736, 159110732)

and when crashing, it is :

cbt : 159092244 (159092164, 3077584800, 159114892, 3077688544)

so the cbt seems to have it's objects overwritten.

this crash can be triggered by adding a callback in hoversel's test,
launching it, using lots of other test, then using the hoversel test.

i'm out of idea on this one. maybe it's just my system (using debian sid
and python 2.5.4).

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to