VRML segfaults when PROTO is used
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Attached is a VRML file and a Python script that crashes when run. The Python script that causes the crash is as follows:
#---------------------------- import vtk ren = vtk.vtkRenderer() rw = vtk.vtkRenderWindow() rw.AddRenderer(ren) i = vtk.vtkVRMLImporter() i.SetFileName('mayavi-crash.wrl') i.SetRenderWindow(rw) i.Read() rw.Render() #----------------------------
Drew Parsons <dparsons@users.sourceforge.net> submitted this error report against mayavi on the Debian bug tracker.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=346182
I get the following backtrace with VTK-5.0.
#0 0x4310e2fc in vtkVRMLImporter::exitField (this=0x813b0b0) at vtkPoints.h:114 114 double *GetPoint(vtkIdType id) { return this->Data->GetTuple(id);}; (gdb) bt #0 0x4310e2fc in vtkVRMLImporter::exitField (this=0x813b0b0) at vtkPoints.h:114 #1 0x43107e1c in yyparse (self=0x813b0b0) at /skratch/prabhu/vtk/5.0/VTK/Hybrid/vtkVRMLImporter.cxx:1355 #2 0x4310ac7b in vtkVRMLImporter::ImportBegin (this=0x813b0b0) at /skratch/prabhu/vtk/5.0/VTK/Hybrid/vtkVRMLImporter.cxx:5484 #3 0x41e6d8ae in vtkImporter::Read (this=0x813b0b0) at /skratch/prabhu/vtk/5.0/VTK/Rendering/vtkImporter.cxx:76 #4 0x41c8af8e in PyvtkImporter_Read (self=0x4019b668, args=0x0) at /skratch/prabhu/vtk/vtk5.0/Rendering/vtkImporterPython.cxx:188 #5 0x080fde6a in PyCFunction_Call ()
cheers, prabhu