View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0007511VTK(No Category)public2008-08-20 10:352008-09-12 11:17
ReporterVince Magnotta 
Assigned ToKarthik Krishnan 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0007511: vtkSmoothPolyDataFilter Segfault
DescriptionI am working on an application that uses the vtkSmoothPolyDataFilter and a dataset that was recently given to me has illuminated a bug in vtkSmoothPolyDataFilter. We are smoothing a surface representation that is constrained to a second surface using the SetSource() method. I was getting a segmentation fault in vtkSmoothPolyDataFilter. After running a test case through valgrind I tracked down the problem to incorrect allocation of the weights array, w.

Line 531 should be
  w = new double[source->GetMaxCellSize()];
It had previously referenced used input->GetMaxCellSize()

Following the code through this section, the cell variable is associated with the source dataset and thus the weights array needs to be to of the appropriate length.

This bug will only appear if you use the SetSource method and have datasets that are of different types such as an input of triangles and the source defined by triangle strips.
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0013431)
Karthik Krishnan (reporter)
2008-09-11 12:31

< w = new double[input->GetMaxCellSize()];
---
> w = new double[source->GetMaxCellSize()];

/cvsroot/VTK/VTK/Graphics/vtkSmoothPolyDataFilter.cxx,v <-- vtkSmoothPolyDataFilter.cxx
new revision: 1.43; previous revision: 1.42
(0013432)
Karthik Krishnan (reporter)
2008-09-11 12:32

/cvsroot/VTK/VTK/Graphics/vtkSmoothPolyDataFilter.cxx,v <-- vtkSmoothPolyDataFilter.cxx
new revision: 1.43; previous revision: 1.42
(0013449)
David Cole (developer)
2008-09-12 11:17

Fix also merged to the VTK-5-2 branch:

    /cvsroot/VTK/VTK/Graphics/vtkSmoothPolyDataFilter.cxx,v <-- Graphics/vtkSmoothPolyDataFilter.cxx
    new revision: 1.42.66.1; previous revision: 1.42

 Issue History
Date Modified Username Field Change
2008-08-20 10:35 Vince Magnotta New Issue
2008-09-11 12:31 Karthik Krishnan Note Added: 0013431
2008-09-11 12:32 Karthik Krishnan Assigned To => Karthik Krishnan
2008-09-11 12:32 Karthik Krishnan Status backlog => tabled
2008-09-11 12:32 Karthik Krishnan Resolution open => fixed
2008-09-11 12:32 Karthik Krishnan Status tabled => @80@
2008-09-11 12:32 Karthik Krishnan Note Added: 0013432
2008-09-12 11:17 David Cole Status @80@ => closed
2008-09-12 11:17 David Cole Note Added: 0013449
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team