[vtk-developers] Patch for vtkPythonUtil.cxx
Prabhu Ramachandran
prabhu at aero.iitb.ac.in
Tue Aug 5 03:23:08 EDT 2008
Charl Botha wrote:
> 2008/8/3 Prabhu Ramachandran <prabhu at aero.iitb.ac.in>:
>>> I ran into a bug that causes a crash on some VTK-Python apps at exit. It
>>> is hard to reproduce with a small test case but reproducible in some TVTK
>>> scripts I have. Basically, what seems to happen is that if there is a VTK
>>> object on which you have a Python callback via an event notification, say
>>> "ModifiedEvent" or "DeleteEvent", then it is possible (with VTK 5.2/5.3) for
>>> the callback to be called *after* PyFinalize is called. This will cause a
>>> segfault. The patch just checks to see if the interpreter is initialized
>>> and if not return. This avoids the problem.
>
> Funny coincidence. I just ran into this with a vtkProgrammableFilter.
> :) Thanks for fixing.
No problem. If possible could you please share a small example (like
the one Chris sent) that demonstrates this particular bug so we have a
test case we can check in? Thanks!
cheers,
prabhu
More information about the vtk-developers
mailing list