[vtkusers] wx python scripts segfault

Martin martin at vic.co.jp
Mon Jul 12 20:36:29 EDT 2010


I am getting this crash on CentOS 5.5 with VTK5.6 and wxPython 2.8 built from
source.
This solution worked well for me.
Edit the wxVTKRenderWindowInteractor.py and at line 392(Or there about) change
the line


if d:

to

if d and _self.__has_painted:


It seems the crash is caused by the self.Render() statement if
self._Iren.GetRenderWindow().SetDisplayId(d) is set on the first pass.


I did not have this problem in VTK5.4, but I have tried the patched
wxVTKRenderWindowInteractor with VTK5.4 as well, and it does not seem to have
any negative effect on 5.4 either.







More information about the vtkusers mailing list