[vtkusers] wxVTKRenderWindowInteractor segfaults

Dominik Szczerba dominik at itis.ethz.ch
Wed Aug 24 17:43:12 EDT 2011


And the backtrace:

#0  0x00007ffff0ba63a0 in XChangeWindowAttributes () from
/usr/lib/x86_64-linux-gnu/libX11.so.6
#1  0x00007fffe6be6f09 in vtkXOpenGLRenderWindow::CreateAWindow
(this=0x15baba0) at
/home/dsz/pack/vtk-5.6.1/Rendering/vtkXOpenGLRenderWindow.cxx:587
#2  0x00007fffe6be6be2 in vtkXOpenGLRenderWindow::WindowInitialize
(this=0x15baba0) at
/home/dsz/pack/vtk-5.6.1/Rendering/vtkXOpenGLRenderWindow.cxx:1030
#3  0x00007fffe6be58cd in vtkXOpenGLRenderWindow::Start
(this=0x15baba0) at
/home/dsz/pack/vtk-5.6.1/Rendering/vtkXOpenGLRenderWindow.cxx:1185
#4  0x00007fffe6afeb70 in vtkRenderWindow::DoStereoRender
(this=0x15baba0) at
/home/dsz/pack/vtk-5.6.1/Rendering/vtkRenderWindow.cxx:687
#5  0x00007fffe6afefd3 in vtkRenderWindow::DoFDRender (this=0x15baba0)
at /home/dsz/pack/vtk-5.6.1/Rendering/vtkRenderWindow.cxx:676
#6  0x00007fffe6affa82 in vtkRenderWindow::DoAARender (this=0x15baba0)
at /home/dsz/pack/vtk-5.6.1/Rendering/vtkRenderWindow.cxx:563
#7  0x00007fffe6aff0f9 in vtkRenderWindow::Render (this=0x15baba0) at
/home/dsz/pack/vtk-5.6.1/Rendering/vtkRenderWindow.cxx:376
#8  0x00007fffe6be5e90 in vtkXOpenGLRenderWindow::Render
(this=0x15baba0) at
/home/dsz/pack/vtk-5.6.1/Rendering/vtkXOpenGLRenderWindow.cxx:1845
#9  0x00007fffe70ef52a in PyvtkXOpenGLRenderWindow_Render
(self=0x13bb5a0, args=<value optimized out>) at
/home/dsz/build/vtk-5.6.1/Rendering/vtkXOpenGLRenderWindowPython.cxx:1166
#10 0x00000000004965f1 in PyEval_EvalFrameEx ()
#11 0x0000000000496dbf in PyEval_EvalFrameEx ()
#12 0x000000000049d325 in PyEval_EvalCodeEx ()
#13 0x00000000004c4526 in ?? ()
#14 0x000000000045d864 in PyObject_Call ()
#15 0x000000000045f43f in ?? ()
#16 0x000000000045d864 in PyObject_Call ()
#17 0x0000000000495d46 in PyEval_CallObjectWithKeywords ()
#18 0x00007ffff60fd4f6 in wxPyCallback::EventThunker(wxEvent&) () from
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core_.so
#19 0x00007ffff4498ad5 in
wxEvtHandler::ProcessEventIfMatches(wxEventTableEntryBase const&,
wxEvtHandler*, wxEvent&) () from /usr/lib/libwx_baseu-2.8.so.0
#20 0x00007ffff4498ebf in
wxEvtHandler::SearchDynamicEventTable(wxEvent&) () from
/usr/lib/libwx_baseu-2.8.so.0
#21 0x00007ffff4498f72 in wxEvtHandler::ProcessEvent(wxEvent&) () from
/usr/lib/libwx_baseu-2.8.so.0
#22 0x00007fffdd75290a in wxGLCanvas::OnInternalIdle() () from
/usr/lib/libwx_gtk2u_gl-2.8.so.0
#23 0x00007ffff4d8a0bf in wxAppBase::SendIdleEvents(wxWindow*,
wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#24 0x00007ffff4d8a0f4 in wxAppBase::SendIdleEvents(wxWindow*,
wxIdleEvent&) () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#25 0x00007ffff4d8a614 in wxAppBase::ProcessIdle() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#26 0x00007ffff4cf8f8e in ?? () from /usr/lib/libwx_gtk2u_core-2.8.so.0
#27 0x00007ffff19edbcd in g_main_context_dispatch () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#28 0x00007ffff19ee3a8 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#29 0x00007ffff19ee9f2 in g_main_loop_run () from
/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007ffff3995af7 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#31 0x00007ffff4d0d578 in wxEventLoop::Run() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#32 0x00007ffff4d8a3eb in wxAppBase::MainLoop() () from
/usr/lib/libwx_gtk2u_core-2.8.so.0
#33 0x00007ffff60fa077 in wxPyApp::MainLoop() () from
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core_.so
#34 0x00007ffff6174333 in ?? () from
/usr/lib/python2.7/dist-packages/wx-2.8-gtk2-unicode/wx/_core_.so
#35 0x000000000049a54e in PyEval_EvalFrameEx ()
#36 0x000000000049d325 in PyEval_EvalCodeEx ()
#37 0x00000000004c4526 in ?? ()
#38 0x000000000045d864 in PyObject_Call ()
#39 0x000000000045f43f in ?? ()
#40 0x000000000045d864 in PyObject_Call ()
#41 0x0000000000496c4e in PyEval_EvalFrameEx ()
#42 0x0000000000496dbf in PyEval_EvalFrameEx ()
#43 0x000000000049d325 in PyEval_EvalCodeEx ()
#44 0x00000000004ecb02 in PyEval_EvalCode ()
#45 0x00000000004fdc74 in ?? ()
#46 0x000000000042c182 in PyRun_FileExFlags ()
#47 0x000000000042cb4a in PyRun_SimpleFileExFlags ()
#48 0x0000000000418c9e in Py_Main ()
#49 0x00007ffff69c2eff in __libc_start_main (main=0x417f80 <main>,
argc=2, ubp_av=0x7fffffffdf68, init=<value optimized out>, fini=<value
optimized out>, rtld_fini=<value optimized out>,
stack_end=0x7fffffffdf58) at libc-start.c:226
#50 0x00000000004c62b1 in _start ()


On Wed, Aug 24, 2011 at 11:31 PM, Dominik Szczerba <dominik at itis.ethz.ch> wrote:
> I am doing something as simple as:
>
> class MyFrame(wx.Frame):
>
>    def __init__(self, parent, title):
>        wx.Frame.__init__(self, parent, -1, title,
>                          size=wx.Size(400,400))
> #        self.widget = wxVTKRenderWindowInteractor(self, -1)
>
> class App(wx.App):
>
>    def OnInit(self):
>        self.frame1 = MyFrame(None,'test1')
>        self.frame1.Show()
>        return True
>
> if __name__ == '__main__':
>    app = App(0)
>    app.MainLoop()
>
>
> The moment I uncomment the line with wxVTKRenderWindowInteractor I get
> a crash. Ubuntu 11.04 64bit vtk 5.6.1. Any ideas?
>
> Dominik
>



More information about the vtkusers mailing list