[vtkusers] wx python scripts segfault

David Gobbi david.gobbi at gmail.com
Tue Aug 17 09:25:13 EDT 2010


Thanks. I've pushed this patch into the main VTK development branch.

   David


On Tue, Aug 17, 2010 at 7:04 AM, Paulo Henrique Junqueira Amorim
<paulojamorim at gmail.com> wrote:
> 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
>
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list