View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012371ParaView(No Category)public2011-07-15 12:512016-08-12 09:58
ReporterSven Buijssen 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version3.10.1 
Target VersionFixed in Version 
Summary0012371: Programmable Filter: segfault on python code invalid for selected output data set type
DescriptionSources - Time Source - Apply
Filters - Programmable Filter
    Script:
        out = self.GetOutput()
        
        newPoint = vtk.vtkPoints()
        newPoint.InsertPoint(0, 0,0,0)
        out.SetPoints(newPoint)
        
        newCell = vtk.vtkCellArray()
        vertex = vtk.vtkVertex()
        vertex.GetPointIds().SetId(0,0)
        newCell.InsertNextCell(vertex)
        out.SetVerts(newCell)
    Apply

=> An error is raised "AttributeError: SetVerts" and subsequently ParaView segfaults:

Program received signal SIGSEGV, Segmentation fault.
0x00007fffdf13a87e in vtkDataSetSurfaceFilter::InsertQuadInHash (this=0x33d42a0, a=2, b=6, c=7, d=3, sourceId=0)
    at ParaView.git/VTK/Graphics/vtkDataSetSurfaceFilter.cxx:1644
1644 if (quad->numPts == 4 && c == quad->ptArray[2])

Admittedly, the user is at fault by not changing "Output Data Set Type" to "vtkPolyData" prior to hitting Apply, but ParaView should not segfault for "Same as Input"/"vtkUnstructuredGrid". Indeed, ParaView does handle the related case properly: run the same script as ProgrammableSource and select "vtkUnstructuredGrid" as "Output Data Set Type". Above's error message is raised, but no segfault is caused.

Tested with ParaView 3.10.1 official binary release for Linux 64bit and own Linux 64bit build of git master branch as of now.
TagsNo tags attached.
ProjectTBD
Topic Name
Typecrash
Attached Files

 Relationships

  Notes
(0038008)
Kitware Robot (administrator)
2016-08-12 09:58

Resolving issue as `moved`.

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

 Issue History
Date Modified Username Field Change
2011-07-15 12:51 Sven Buijssen New Issue
2016-08-12 09:58 Kitware Robot Note Added: 0038008
2016-08-12 09:58 Kitware Robot Status backlog => closed
2016-08-12 09:58 Kitware Robot Resolution open => moved
2016-08-12 09:58 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team