unexpected segfault animating element

Bug #120243 reported by Victor Chahuneau
4
Affects Status Importance Assigned to Milestone
pygoocanvas
Invalid
Undecided
Unassigned

Bug Description

The following animation types don't seem to work:
goocanvas.ANIMATE_RESET
goocanvas.ANIMATE_FREEZE

They produce a segmentation error

Sample code:

class IntCircle:
 def __init__(self, cx = 0, cy = 0, r = 0):
  self.e = goocanvas.Ellipse(center_x=cx, center_y=cy, radius_x=r, radius_y=r, stroke_color="orange", fill_color_rgba=0x002FA799)
  self.e.connect("enter-notify-event", self.enter)
 def enter(self,w,t,e):
  w.animate(0,0,2,0,False,1000,10,goocanvas.ANIMATE_RESET)

Remark: there remain many other segfaults in pygoocanvas, but I don't remember them, so I will notice them later if I encounter them again (I only remember the problem of adding a child before the canvas has been painted, which is a known bug of goocanvas)

Revision history for this message
Gian Mario Tagliaretti (gianmt) wrote :

Hi sorry for the delay,

I just tried with the latest goocanvas and pygoocanvas and I don't have any problem in running the code with goocanvas.ANIMATE_FREEZE or goocanvas.ANIMATE_RESET, it works as expected.

For the other crash you mentioned, we would like to have them filed here, except of course for the known bug (realized not painted).

thanks

Changed in pygoocanvas:
status: Unconfirmed → Rejected
Revision history for this message
Gian Mario Tagliaretti (gianmt) wrote :

Hi Victor, any news on this? Does it work for you now?

Revision history for this message
Victor Chahuneau (vchahun) wrote :

My version of goocanvas/pygoocanvas (0.8.0) has not changed so I keep having this bug (I did not mention that goocanvas.ANIMATE_BOUNCE and goocanvas.ANIMATE_RESTART worked and that the segfault occured at the end of the movement), but maybe it is fixed in the latest developpement version which I have no time to test at this time ...
I will keep you informed if this improves !

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.