MantisBT - VTK
View Issue Details
0006831VTK(No Category)public2008-04-16 14:262016-08-12 09:54
kentwilliams 
Kitware Robot 
normalcrashsometimes
closedmoved 
 
 
0006831: vtkContourWidgetRepresentation crashes when faced with unexpected contour points upon initialization.
This is outside the normal operation of the Contour Widget, understandably: In the process of debugging my program, I have called vtkContourRepresentation::Initialize with point data that lies entirely outside the view volume.

What happens then is the problem:

1. vtkContourRepresentation throws away all the points in the current polyline.
2. In vtkContourRepresentation::UpdateContour, there's a call to vtkContourRepresentation::UpdateLines:

    this->UpdateLine( this->Internal->Nodes.size()-1, 0);

Since the internal nodes are empty, this->Internal->Nodes.size() - 1 == -1. This causes a crash in UpdateLine, because it uses -1 as an index into this->Internal->Nodes ...
#0 0x078fa963 in vtkContourRepresentation::UpdateLine (this=0x2d975f70, idx1=-1, idx2=0) at /VTK/Widgets/vtkContourRepresentation.cxx:974
#1 0x078fab6b in vtkContourRepresentation::UpdateContour (this=0x2d975f70) at VTK/Widgets/vtkContourRepresentation.cxx:1018
#2 0x07944ada in vtkOrientedGlyphContourRepresentation::BuildRepresentation (this=0x2d975f70) at VTK/Widgets/vtkOrientedGlyphContourRepresentation.cxx:511
#3 0x078fa8d1 in vtkContourRepresentation::Initialize (this=0x2d975f70, pd=0x405c6860) at VTK/Widgets/vtkContourRepresentation.cxx:1108
#4 0x078fe369 in vtkContourWidget::Initialize (this=0x2d9958d0, pd=0x405c6860, state=1) at VTK/Widgets/vtkContourWidget.cxx:377

No tags attached.
Issue History
2008-04-16 14:26kentwilliamsNew Issue
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2016-08-12 09:54Kitware RobotNote Added: 0036968
2016-08-12 09:54Kitware RobotStatusexpired => closed
2016-08-12 09:54Kitware RobotResolutionopen => moved
2016-08-12 09:54Kitware RobotAssigned To => Kitware Robot

Notes
(0036968)
Kitware Robot   
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.