[Paraview] vtkVolumeRayCastSpaceLeapingImageFilter segfault

Robert Michael O'Bara bob.obara at kitware.com
Mon Jan 9 13:43:47 EST 2012


Hi Burlen,

I fixed this problem and it should now be in the ParaView Master branch (and the related VTK branch).  This fix has been in the repo for a couple weeks.  Please let me know if it doesn't fix your issue.

Bob

Robert M. O'Bara, MEng.
Technical Leader

Kitware Inc.
28 Corporate Drive
Suite 101
Clifton Park, NY 12065

On Jan 5, 2012, at 7:47 PM, Burlen Loring wrote:

> Hi,
> 
> In 3.12 when volume rendering on image data I'm experiencing segfaults in vtkVolumeRayCastSpaceLeapingImageFilter in vtkVolumeRayCastSpaceLeapingImageFilterMinMaxExecute. The issue seems to be that vtkImageData::ComputeIncrements relies on active scalars being set. However, for use with ParaView I don't think this can be guaranteed. for instance how would an object that produces multiple arrays, eg a reader, correctly set active scalars?
> 
> A quick fix is below, the real fix probably is quite a bit more involved.
> 
> bug filed http://www.paraview.org/Bug/view.php?id=12842
> 
> --- ParaView-3.12.0-base/VTK/VolumeRendering/vtkVolumeRayCastSpaceLeapingImageFilter.cxx        2011-11-08 12:56:45.000000000 -0800
> +++ ParaView-3.12.0/VTK/VolumeRendering/vtkVolumeRayCastSpaceLeapingImageFilter.cxx     2012-01-05 16:34:06.217415840 -0800
> @@ -801,6 +801,10 @@
>     return;
>     }
> 
> +  // FIXME --- this keeps things running smoothly when active scalars
> +  // are not set but modifies the input
> +  inData[0][0]->GetPointData()->SetScalars(this->GetCurrentScalars())
> +
>   const int components = this->GetCurrentScalars()->GetNumberOfComponents();
>   const unsigned int nComponents = (this->GetIndependentComponents()) ? components : 1;
> 
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview



More information about the ParaView mailing list