[vtkusers] QVTK and libvtkRendering.so crashing on Linux only

HamidG listboss at gmail.com
Wed Jan 18 16:27:14 EST 2012


Hello

I can successfully compile VTK and run the Python scripts in Tutorial folder
on my Linux box (with an nvidia card).

However, when using QVTK in a Python script:

self.vtkw=QVTKRenderWindowInteractor(self)
self.ren = vtk.vtkRenderer()
self.vtkw.GetRenderWindow().AddRenderer(self.ren)
self.ren.AddVolume(self.volume)

libvtkRendering crashes. This only happens when the script is run under
Linux OS (Windows and Mac work fine).

This is the outout of gdb's backtrace:

#0  0x00007fffecaa4fb0 in ?? () from /usr/lib/nvidia-current/libGL.so.1
#1  0x00007fffeca9cd9b in glXCreateContext () from
/usr/lib/nvidia-current/libGL.so.1
#2  0x00007fffee848976 in vtkXOpenGLRenderWindow::CreateAWindow() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#3  0x00007fffee847d72 in vtkXOpenGLRenderWindow::WindowInitialize() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#4  0x00007fffee84660d in vtkXOpenGLRenderWindow::Start() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#5  0x00007fffee765686 in vtkRenderWindow::DoStereoRender() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#6  0x00007fffee765ae1 in vtkRenderWindow::DoFDRender() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#7  0x00007fffee767001 in vtkRenderWindow::DoAARender() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#8  0x00007fffee765beb in vtkRenderWindow::Render() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#9  0x00007fffee846bc0 in vtkXOpenGLRenderWindow::Render() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#10 0x00007fffee768e59 in vtkRenderWindowInteractor::Render() () from
/local/VTK/5.9.0/lib/vtk-5.9/libvtkRendering.so.5.9
#11 0x00007fffeed37cc9 in PyvtkRenderWindowInteractor_Initialize(_object*,
_object*) ()
   from /local/VTK/5.9.0/lib/vtk-5.9/libvtkRenderingPythonD.so.5.9

I am using the Qt provided by Ubuntu.
Any input and hint is really appreciated as this's been bugging me for last
2 days.

thanks in advance

--
View this message in context: http://vtk.1045678.n5.nabble.com/QVTK-and-libvtkRendering-so-crashing-on-Linux-only-tp5155955p5155955.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list