MantisBT - VTK | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0006831 | VTK | (No Category) | public | 2008-04-16 14:26 | 2016-08-12 09:54 |
Reporter | kentwilliams | ||||
Assigned To | Kitware Robot | ||||
Priority | normal | Severity | crash | Reproducibility | sometimes |
Status | closed | Resolution | moved | ||
Platform | OS | OS Version | |||
Product Version | |||||
Target Version | Fixed in Version | ||||
Project | |||||
Type | |||||
Summary | 0006831: vtkContourWidgetRepresentation crashes when faced with unexpected contour points upon initialization. | ||||
Description | 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 ... | ||||
Steps To Reproduce | |||||
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 | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
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 |
Notes | |||||
|
|||||
|
|