View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0006831VTK(No Category)public2008-04-16 14:262016-08-12 09:54
Reporterkentwilliams 
Assigned ToKitware Robot 
PrioritynormalSeveritycrashReproducibilitysometimes
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0006831: vtkContourWidgetRepresentation crashes when faced with unexpected contour points upon initialization.
DescriptionThis 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 ...
Additional Information#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

TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0036968)
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
2008-04-16 14:26 kentwilliams New Issue
2011-06-16 13:11 Zack Galbreath Category => (No Category)
2016-08-12 09:54 Kitware Robot Note Added: 0036968
2016-08-12 09:54 Kitware Robot Status expired => closed
2016-08-12 09:54 Kitware Robot Resolution open => moved
2016-08-12 09:54 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team