[vtkusers] wx python scripts segfault

David Doria daviddoria+vtk at gmail.com
Sun Feb 28 09:14:37 EST 2010


On Sun, Feb 28, 2010 at 9:04 AM, Charl Botha <cpbotha at medvis.org> wrote:

> On 28 February 2010 01:10, David Gobbi <david.gobbi at gmail.com> wrote:
> > On Sat, Feb 27, 2010 at 10:34 AM, David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>>
> wrote:
> >>
> >> Thanks for looking at this. You are right that wxVTKRenderWindow doesn't
> >> crash. You didn't say explicitly - did wxVTKRenderWindowInteractor crash
> on
> >> your system, too?
> >
> > Yes, it does crash.
>
> Strange.  The Linux binaries of DeVIDE use wxVTKRenderWindowInteractor
> quite extensively and were built on Ubuntu 8.04 (both 32 and 64 bit).
> They don't usually crash.
>
> David D, will you try running wxVTKRenderWindowInteractor itself?
> Looking at your example http://www.rpi.edu/~doriad/wxPython/david.py
> you're for example currently not adding a renderer to the RWI's
> renderwindow.  The example right at the bottom of
> wxVTKRenderWindowInteractor shows the correct sequence of calls you
> need to make.
>
> Now that I'm here in anycase, I would of course recommend that you use
> the DeVIDE Runtime Environment to run your Python+wxPython examples.
> There are binaries for 64 and 32 bit linux, and after unpacking the
> tarball you can run your example with:
> unpacked-dir/dre david.py
> (no environment or any other setup required)
>
> See here: http://code.google.com/p/devide/wiki/Downloads?tm=2
>

Charl,

I only didn't add the renderer because I was trying to get the minimal
script that would crash. Running wxVTKRenderWindowInteractor directly also
crashes:

[doriad at davedesktop wx]$ pwd
/home/doriad/src/VTK/Wrapping/Python/vtk/wx
[doriad at davedesktop wx]$ python wxVTKRenderWindowInteractor.py
Segmentation fault

Any thoughts on what to try next?

Thanks,

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20100228/32b9a5fe/attachment.htm>


More information about the vtkusers mailing list