View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0002912VTK(No Category)public2006-02-25 12:402016-08-12 09:54
ReporterPrabhu Ramachandran 
Assigned ToWill Schroeder 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0002912: VRML segfaults when PROTO is used
DescriptionAttached 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
TagsNo tags attached.
Project
Type
Attached Files? file icon mayavi-crash.wrl [^] (282 bytes) 1969-12-31 19:00

 Relationships

  Notes
(0003818)
Drew Parsons (reporter)
2006-03-01 09:01

I filed the original bug. I can also get a segfault now without PROTO, for instance with a simple DEF:

#VRML V2.0 utf8
DEF medColour Material { emissiveColor 0 1 0 }

(that's it, but I can add a shape too if you like :) )

The backtrace on Prabhu's script, segfaulting at i.Read(), is similar to his, ending at
#0 0xb619fab6 in vtkVRMLImporter::exitField () from /usr/lib/libvtkHybrid.so.4
#1 0xb61a53e9 in yyparse () from /usr/lib/libvtkHybrid.so.4
#2 0xb61a57eb in vtkVRMLImporter::ImportBegin ()
   from /usr/lib/libvtkHybrid.so.4
#3 0xb65ef658 in vtkImporter::Read () from /usr/lib/libvtkRendering.so.4
#4 0xb67d9aee in PyVTKClass_vtkImagingFactoryNew ()
   from /usr/lib/python2.3/site-packages/vtk_python/libvtkRenderingPython.so

Drew
(0036835)
Kitware Robot (administrator)
2016-08-12 09:54

Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.

 Issue History
Date Modified Username Field Change
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036835
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved


Copyright © 2000 - 2018 MantisBT Team