MantisBT - VTK
View Issue Details
0008659VTK(No Category)public2009-03-03 10:122013-04-05 19:57
Robert Haines 
François Bertel 
normalcrashalways
closedfixed 
 
 
0008659: vtkQuadricLODActor can cause SEGV if no properties set/changed
When using vtkQuadricLODActor it will cause a segmentation fault if no properties are set on it. This is because its reimplementation of vtkActor::RenderOpaqueGeometry misses a test for a valid vtkProperty instance before calling vtkActor::GetIsOpaque whose first line is this:
int result=this->Property->GetOpacity() >= 1.0;

Property is NULL, so SEGV.

I have attached the obvious trival fix to check for a valid vtkProperty instance and create one if necessary, as vtkActor does.
No tags attached.
patch vtkQuadricLODActor.patch (772) 2009-03-03 10:12
https://www.vtk.org/Bug/file/7089/vtkQuadricLODActor.patch
Issue History
2009-03-03 10:12Robert HainesNew Issue
2009-03-03 10:12Robert HainesFile Added: vtkQuadricLODActor.patch
2009-03-03 10:16Robert HainesNote Added: 0015512
2009-03-03 12:46François BertelStatusbacklog => tabled
2009-03-03 12:46François BertelAssigned To => François Bertel
2009-03-03 12:47François BertelNote Added: 0015517
2009-03-03 12:48François BertelNote Added: 0015518
2009-03-03 12:48François BertelStatustabled => @80@
2009-03-03 12:48François BertelResolutionopen => fixed
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-04-05 19:57Berk GeveciStatuscustomer review => closed

Notes
(0015512)
Robert Haines   
2009-03-03 10:16   
Also meant to say that the test for vtkQuadricLODActor passes because it sets properties before being activated. I've tested this patch against the provided test and also without any properties being set.
(0015517)
François Bertel   
2009-03-03 12:47   
I fixed vtkActor::GetIsOpaque() instead.

Commit to directory "ParaView3/VTK/Rendering" lies in external project VTK
/cvsroot/ParaView3/ParaView3/VTK/Rendering/vtkActor.cxx,v <-- vtkActor.cxx
new revision: 1.140; previous revision: 1.139
(0015518)
François Bertel   
2009-03-03 12:48   
See rev 1.140 of VTK/Rendering/vtkActor.cxx