[vtkusers] wx python scripts segfault

Paulo Henrique Junqueira Amorim paulojamorim at gmail.com
Tue Aug 17 09:04:37 EDT 2010


Hi,

We tested this change indicated by Martin and it worked. Also tested it on
Ubuntu, Mandriva and Windows.

Attached is the patch based on version 5.6.0 for download [1].

[1] - http://www.vtk.org/files/release/5.6/vtk-5.6.0.zip

Good Luck!
Paulo Amorim




On 12 July 2010 21:36, Martin <martin at vic.co.jp> wrote:

>
> 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.
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100817/6a7a5e7a/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtk_wxpython.patch
Type: application/octet-stream
Size: 562 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100817/6a7a5e7a/attachment.obj>


More information about the vtkusers mailing list