I played around with this some more. Looks like I *can* replicate it with RectGrid2.vtk

I'm using the regular Stream Tracer with a Point Source (not the Custom Source version with a Mask Points input), and changing the number of points to 10. Then applying a Contour filter on the Integration Time to generate particles.

This works fine for the default settings of the Stream Tracer. However, if I change the Maximum Error to 1e-10, it crashes (again, only when attached to a Contour Filter).

This is beginning to make some sense to me (I think). Because Runge-Kutta 4-5 is an adaptive integrator, the step size is decreased to match the error.

Something similar must have been happening with my other data set, but because the scale of the data was different, a different Maximum Error was causing the crash. I think the Contour Filter is having issues when individual points on the streamlines are too close together.

I've attached a python trace that works. However, changing the Maximum Error to 1e-10 causes a crash.

Here is the location in the ContourFilter that is causing problems:

#12 0x00007fffe7b66f93 in vtkContourFilter::RequestData (this=0x23f58e0, request=0x21ce010, inputVector=0x238cc90, outputVector=0x2387d60) at /home/borland/dev/ParaView-3.8.0-RC2/VTK/Graphics/vtkContourFilter.cxx:549
549         cellScalars->Delete();






Favre Jean wrote:
________________________________________
From: David Borland [[email protected]]
Sent: Monday, May 10, 2010 5:38 PM
To: Favre  Jean
Cc: Zhanping Liu; [email protected]
Subject: Re: [Paraview] Contours of streamlines crashing

Yes, looks like I can't replicate it with RectGrid.vtk either.  However
I have been able to replicate it with bluntfin.vts...
________________________________________

bluntfin.vts works just fine for me. So I can't help unless you tell us with a 
debugger, where you see a crash. Send your script using the bluntfin.vts file.

Jean
CSCS
try: paraview.simple
except: from paraview.simple import *

RenderView1 = CreateRenderView()
RenderView1.LightSpecularColor = [1.0, 1.0, 1.0]
RenderView1.UseLight = 1
RenderView1.CameraPosition = [-3.2065235290709602, -4.565219104964509, 3.087175448627677]
RenderView1.FillLightKFRatio = 3.0
RenderView1.Background2 = [1.0, 1.0, 1.0]
RenderView1.FillLightAzimuth = -10.0
RenderView1.LODResolution = 50
RenderView1.BackgroundTexture = []
RenderView1.KeyLightAzimuth = 10.0
RenderView1.LightIntensity = 1.0
RenderView1.CameraFocalPoint = [0.36363797371411538, 0.55933803911889179, 0.12688897916569253]
RenderView1.RenderInterruptsEnabled = 0
RenderView1.CameraParallelScale = 1.788857840667518
RenderView1.EyeAngle = 2.0
RenderView1.HeadLightKHRatio = 3.0
RenderView1.UseTriangleStrips = 0
RenderView1.StereoRender = 0
RenderView1.CameraViewAngle = 30.0
RenderView1.KeyLightIntensity = 0.75
RenderView1.BackLightAzimuth = 110.0
RenderView1.UseTexturedBackground = 0
RenderView1.Background = [0.0, 0.0, 0.0]
RenderView1.UseOffscreenRenderingForScreenshots = 0
RenderView1.CenterOfRotation = [-0.026040017604827881, 0.0, 0.44999998807907104]
RenderView1.CameraParallelProjection = 0
RenderView1.CameraViewUp = [0.21769499677299659, 0.37005329560960926, 0.90314420044003629]
RenderView1.HeadLightWarmth = 0.5
RenderView1.MaximumNumberOfPeels = 4
RenderView1.LightDiffuseColor = [1.0, 1.0, 1.0]
RenderView1.StereoType = 'Red-Blue'
RenderView1.DepthPeeling = 0
RenderView1.BackLightKBRatio = 3.5
RenderView1.UseImmediateMode = 1
RenderView1.LightAmbientColor = [1.0, 1.0, 1.0]
RenderView1.KeyLightElevation = 50.0
RenderView1.MaintainLuminance = 0
RenderView1.BackLightWarmth = 0.5
RenderView1.FillLightElevation = -75.0
RenderView1.FillLightWarmth = 0.40000000000000002
RenderView1.LightSwitch = 0
RenderView1.UseGradientBackground = 0
RenderView1.CameraClippingRange = [2.6363959942795665, 10.604070430090523]
RenderView1.BackLightElevation = 0.0
RenderView1.ViewTime = 0.0
RenderView1.LODThreshold = 1.0000000000000001e+299
RenderView1.KeyLightWarmth = 0.59999999999999998

RectGrid2_vtk = LegacyVTKReader( guiName="RectGrid2.vtk", FileNames=['/home/borland/data/ParaViewData-3.8.0-RC2/Data/RectGrid2.vtk'] )

StreamTracer1 = StreamTracer( guiName="StreamTracer1", SeedType="Point Source", IntegrationStepUnit='Cell Length', MaximumError=9.9999999999999995e-07, IntegratorType='Runge-Kutta 4-5', MaximumStepLength=0.5, InitialStepLength=0.20000000000000001, Vectors=['POINTS', 'vectors'], TerminalSpeed=9.9999999999999998e-13, IntegrationDirection='BOTH', MaximumSteps=2000, InterpolatorType='Interpolator with Point Locator', MinimumStepLength=0.01, MaximumStreamlineLength=2.5 )

Contour1 = Contour( guiName="Contour1", Isosurfaces=[3.2370521547272801], PointMergeMethod="Don't Merge Points", ComputeNormals=0, ComputeGradients=0, ComputeScalars=1, ContourBy=['POINTS', 'IntegrationTime'] )

a1_scalars_PiecewiseFunction = CreatePiecewiseFunction( Points=[0.0, 0.0, 1.0, 1.0] )

a1_scalars_PVLookupTable = GetLookupTableForArray( "scalars", 1, Discretize=1, RGBPoints=[0.025951767340302467, 0.23000000000000001, 0.29899999999999999, 0.754, 6.4481525421142578, 0.70599999999999996, 0.016, 0.14999999999999999], UseLogScale=0, VectorComponent=0, NumberOfTableValues=256, ColorSpace='Diverging', VectorMode='Magnitude', HSVWrap=0, ScalarRangeInitialized=1.0, LockScalarRange=0 )

SetActiveSource(RectGrid2_vtk)
DataRepresentation1 = Show()
DataRepresentation1.CubeAxesZAxisVisibility = 1
DataRepresentation1.SelectionPointLabelColor = [1.0, 1.0, 1.0]
DataRepresentation1.SelectionPointFieldDataArrayName = ''
DataRepresentation1.SuppressLOD = 0
DataRepresentation1.CubeAxesXGridLines = 0
DataRepresentation1.CubeAxesYAxisTickVisibility = 1
DataRepresentation1.Position = [0.0, 0.0, 0.0]
DataRepresentation1.BackfaceRepresentation = 'Follow Frontface'
DataRepresentation1.SelectionOpacity = 1.0
DataRepresentation1.SelectionPointLabelShadow = 0
DataRepresentation1.CubeAxesYGridLines = 0
DataRepresentation1.Shading = 0
DataRepresentation1.Diffuse = 1.0
DataRepresentation1.Origin = [0.0, 0.0, 0.0]
DataRepresentation1.CubeAxesZTitle = 'Z-Axis'
DataRepresentation1.Specular = 0.10000000000000001
DataRepresentation1.SelectionVisibility = 1
DataRepresentation1.InterpolateScalarsBeforeMapping = 1
DataRepresentation1.CubeAxesZAxisTickVisibility = 1
DataRepresentation1.SelectionUseOutline = 0
DataRepresentation1.SelectionCellFieldDataArrayIndex = 0
DataRepresentation1.CubeAxesVisibility = 0
DataRepresentation1.Scale = [1.0, 1.0, 1.0]
DataRepresentation1.SelectionCellLabelJustification = 'Center'
DataRepresentation1.DiffuseColor = [1.0, 1.0, 1.0]
DataRepresentation1.SelectionCellLabelOpacity = 1.0
DataRepresentation1.Opacity = 1.0
DataRepresentation1.LineWidth = 1.0
DataRepresentation1.SelectionPointSize = 5.0
DataRepresentation1.Material = ''
DataRepresentation1.Visibility = 1
DataRepresentation1.SelectionCellLabelFontSize = 24
DataRepresentation1.CubeAxesCornerOffset = 0.0
DataRepresentation1.SelectionPointLabelJustification = 'Center'
DataRepresentation1.Ambient = 0.0
DataRepresentation1.CubeAxesTickLocation = 'Inside'
DataRepresentation1.BackfaceDiffuseColor = [1.0, 1.0, 1.0]
DataRepresentation1.CubeAxesYAxisVisibility = 1
DataRepresentation1.SelectionPointLabelFontFamily = 'Arial'
DataRepresentation1.CubeAxesFlyMode = 'Closest Triad'
DataRepresentation1.CubeAxesYTitle = 'Y-Axis'
DataRepresentation1.SelectionPointFieldDataArrayIndex = 0
DataRepresentation1.ColorAttributeType = 'CELL_DATA'
DataRepresentation1.SpecularPower = 100.0
DataRepresentation1.Texture = []
DataRepresentation1.SelectionCellLabelShadow = 0
DataRepresentation1.AmbientColor = [1.0, 1.0, 1.0]
DataRepresentation1.MapScalars = 1
DataRepresentation1.PointSize = 2.0
DataRepresentation1.StaticMode = 0
DataRepresentation1.SelectionCellLabelColor = [0.0, 1.0, 0.0]
DataRepresentation1.EdgeColor = [0.0, 0.0, 0.50000762951094835]
DataRepresentation1.CubeAxesXAxisTickVisibility = 1
DataRepresentation1.SelectionCellLabelVisibility = 0
DataRepresentation1.CubeAxesColor = [1.0, 1.0, 1.0]
DataRepresentation1.Representation = 'Outline'
DataRepresentation1.CubeAxesXAxisMinorTickVisibility = 1
DataRepresentation1.Orientation = [0.0, 0.0, 0.0]
DataRepresentation1.UseLookupTableScalarRange = 0
DataRepresentation1.CubeAxesXTitle = 'X-Axis'
DataRepresentation1.CubeAxesInertia = 1
DataRepresentation1.BackfaceOpacity = 1.0
DataRepresentation1.SelectionCellFieldDataArrayName = ''
DataRepresentation1.SelectionColor = [1.0, 0.0, 1.0]
DataRepresentation1.SelectionPointLabelVisibility = 0
DataRepresentation1.SelectionPointLabelFontSize = 18
DataRepresentation1.BackfaceAmbientColor = [1.0, 1.0, 1.0]
DataRepresentation1.SelectionLineWidth = 2.0
DataRepresentation1.CubeAxesZAxisMinorTickVisibility = 1
DataRepresentation1.CubeAxesXAxisVisibility = 1
DataRepresentation1.Interpolation = 'Gouraud'
DataRepresentation1.SelectionCellLabelFontFamily = 'Arial'
DataRepresentation1.SelectionCellLabelItalic = 0
DataRepresentation1.CubeAxesYAxisMinorTickVisibility = 1
DataRepresentation1.CubeAxesZGridLines = 0
DataRepresentation1.SelectionPointLabelOpacity = 1.0
DataRepresentation1.Pickable = 1
DataRepresentation1.SelectionRepresentation = 'Wireframe'
DataRepresentation1.ClippingPlanes = []
DataRepresentation1.SelectionPointLabelBold = 0
DataRepresentation1.NumberOfSubPieces = 1
DataRepresentation1.ColorArrayName = ''
DataRepresentation1.SelectionPointLabelItalic = 0
DataRepresentation1.SpecularColor = [1.0, 1.0, 1.0]
DataRepresentation1.LookupTable = []
DataRepresentation1.SelectionCellLabelBold = 0

SetActiveSource(StreamTracer1)
DataRepresentation2 = Show()
DataRepresentation2.CubeAxesZAxisVisibility = 1
DataRepresentation2.SelectionPointLabelColor = [1.0, 1.0, 1.0]
DataRepresentation2.SelectionPointFieldDataArrayName = ''
DataRepresentation2.SuppressLOD = 0
DataRepresentation2.CubeAxesXGridLines = 0
DataRepresentation2.CubeAxesYAxisTickVisibility = 1
DataRepresentation2.Position = [0.0, 0.0, 0.0]
DataRepresentation2.BackfaceRepresentation = 'Follow Frontface'
DataRepresentation2.SelectionOpacity = 1.0
DataRepresentation2.SelectionPointLabelShadow = 0
DataRepresentation2.CubeAxesYGridLines = 0
DataRepresentation2.Shading = 0
DataRepresentation2.Diffuse = 1.0
DataRepresentation2.Origin = [0.0, 0.0, 0.0]
DataRepresentation2.CubeAxesZTitle = 'Z-Axis'
DataRepresentation2.Specular = 0.10000000000000001
DataRepresentation2.SelectionVisibility = 1
DataRepresentation2.InterpolateScalarsBeforeMapping = 1
DataRepresentation2.CubeAxesZAxisTickVisibility = 1
DataRepresentation2.SelectionUseOutline = 0
DataRepresentation2.SelectionCellFieldDataArrayIndex = 0
DataRepresentation2.CubeAxesVisibility = 0
DataRepresentation2.Scale = [1.0, 1.0, 1.0]
DataRepresentation2.SelectionCellLabelJustification = 'Center'
DataRepresentation2.DiffuseColor = [1.0, 1.0, 1.0]
DataRepresentation2.SelectionCellLabelOpacity = 1.0
DataRepresentation2.Opacity = 1.0
DataRepresentation2.LineWidth = 1.0
DataRepresentation2.SelectionPointSize = 5.0
DataRepresentation2.Material = ''
DataRepresentation2.Visibility = 0
DataRepresentation2.SelectionCellLabelFontSize = 24
DataRepresentation2.CubeAxesCornerOffset = 0.0
DataRepresentation2.SelectionPointLabelJustification = 'Center'
DataRepresentation2.Ambient = 0.0
DataRepresentation2.CubeAxesTickLocation = 'Inside'
DataRepresentation2.BackfaceDiffuseColor = [1.0, 1.0, 1.0]
DataRepresentation2.CubeAxesYAxisVisibility = 1
DataRepresentation2.SelectionPointLabelFontFamily = 'Arial'
DataRepresentation2.CubeAxesFlyMode = 'Closest Triad'
DataRepresentation2.CubeAxesYTitle = 'Y-Axis'
DataRepresentation2.SelectionPointFieldDataArrayIndex = 0
DataRepresentation2.ColorAttributeType = 'POINT_DATA'
DataRepresentation2.SpecularPower = 100.0
DataRepresentation2.Texture = []
DataRepresentation2.SelectionCellLabelShadow = 0
DataRepresentation2.AmbientColor = [1.0, 1.0, 1.0]
DataRepresentation2.MapScalars = 1
DataRepresentation2.PointSize = 2.0
DataRepresentation2.StaticMode = 0
DataRepresentation2.SelectionCellLabelColor = [0.0, 1.0, 0.0]
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.50000762951094835]
DataRepresentation2.CubeAxesXAxisTickVisibility = 1
DataRepresentation2.SelectionCellLabelVisibility = 0
DataRepresentation2.CubeAxesColor = [1.0, 1.0, 1.0]
DataRepresentation2.Representation = 'Surface'
DataRepresentation2.CubeAxesXAxisMinorTickVisibility = 1
DataRepresentation2.Orientation = [0.0, 0.0, 0.0]
DataRepresentation2.UseLookupTableScalarRange = 0
DataRepresentation2.CubeAxesXTitle = 'X-Axis'
DataRepresentation2.CubeAxesInertia = 1
DataRepresentation2.BackfaceOpacity = 1.0
DataRepresentation2.SelectionCellFieldDataArrayName = ''
DataRepresentation2.SelectionColor = [1.0, 0.0, 1.0]
DataRepresentation2.SelectionPointLabelVisibility = 0
DataRepresentation2.SelectionPointLabelFontSize = 18
DataRepresentation2.BackfaceAmbientColor = [1.0, 1.0, 1.0]
DataRepresentation2.SelectionLineWidth = 2.0
DataRepresentation2.CubeAxesZAxisMinorTickVisibility = 1
DataRepresentation2.CubeAxesXAxisVisibility = 1
DataRepresentation2.Interpolation = 'Gouraud'
DataRepresentation2.SelectionCellLabelFontFamily = 'Arial'
DataRepresentation2.SelectionCellLabelItalic = 0
DataRepresentation2.CubeAxesYAxisMinorTickVisibility = 1
DataRepresentation2.CubeAxesZGridLines = 0
DataRepresentation2.SelectionPointLabelOpacity = 1.0
DataRepresentation2.Pickable = 1
DataRepresentation2.SelectionRepresentation = 'Wireframe'
DataRepresentation2.ClippingPlanes = []
DataRepresentation2.SelectionPointLabelBold = 0
DataRepresentation2.NumberOfSubPieces = 1
DataRepresentation2.ColorArrayName = 'scalars'
DataRepresentation2.SelectionPointLabelItalic = 0
DataRepresentation2.SpecularColor = [1.0, 1.0, 1.0]
DataRepresentation2.LookupTable = a1_scalars_PVLookupTable
DataRepresentation2.SelectionCellLabelBold = 0

SetActiveSource(Contour1)
DataRepresentation3 = Show()
DataRepresentation3.CubeAxesZAxisVisibility = 1
DataRepresentation3.SelectionPointLabelColor = [1.0, 1.0, 1.0]
DataRepresentation3.SelectionPointFieldDataArrayName = ''
DataRepresentation3.SuppressLOD = 0
DataRepresentation3.CubeAxesXGridLines = 0
DataRepresentation3.CubeAxesYAxisTickVisibility = 1
DataRepresentation3.Position = [0.0, 0.0, 0.0]
DataRepresentation3.BackfaceRepresentation = 'Follow Frontface'
DataRepresentation3.SelectionOpacity = 1.0
DataRepresentation3.SelectionPointLabelShadow = 0
DataRepresentation3.CubeAxesYGridLines = 0
DataRepresentation3.Shading = 0
DataRepresentation3.Diffuse = 1.0
DataRepresentation3.Origin = [0.0, 0.0, 0.0]
DataRepresentation3.CubeAxesZTitle = 'Z-Axis'
DataRepresentation3.Specular = 0.10000000000000001
DataRepresentation3.SelectionVisibility = 1
DataRepresentation3.InterpolateScalarsBeforeMapping = 1
DataRepresentation3.CubeAxesZAxisTickVisibility = 1
DataRepresentation3.SelectionUseOutline = 0
DataRepresentation3.SelectionCellFieldDataArrayIndex = 0
DataRepresentation3.CubeAxesVisibility = 0
DataRepresentation3.Scale = [1.0, 1.0, 1.0]
DataRepresentation3.SelectionCellLabelJustification = 'Center'
DataRepresentation3.DiffuseColor = [1.0, 1.0, 1.0]
DataRepresentation3.SelectionCellLabelOpacity = 1.0
DataRepresentation3.Opacity = 1.0
DataRepresentation3.LineWidth = 1.0
DataRepresentation3.SelectionPointSize = 5.0
DataRepresentation3.Material = ''
DataRepresentation3.Visibility = 1
DataRepresentation3.SelectionCellLabelFontSize = 24
DataRepresentation3.CubeAxesCornerOffset = 0.0
DataRepresentation3.SelectionPointLabelJustification = 'Center'
DataRepresentation3.Ambient = 0.0
DataRepresentation3.CubeAxesTickLocation = 'Inside'
DataRepresentation3.BackfaceDiffuseColor = [1.0, 1.0, 1.0]
DataRepresentation3.CubeAxesYAxisVisibility = 1
DataRepresentation3.SelectionPointLabelFontFamily = 'Arial'
DataRepresentation3.CubeAxesFlyMode = 'Closest Triad'
DataRepresentation3.CubeAxesYTitle = 'Y-Axis'
DataRepresentation3.SelectionPointFieldDataArrayIndex = 0
DataRepresentation3.ColorAttributeType = 'POINT_DATA'
DataRepresentation3.SpecularPower = 100.0
DataRepresentation3.Texture = []
DataRepresentation3.SelectionCellLabelShadow = 0
DataRepresentation3.AmbientColor = [1.0, 1.0, 1.0]
DataRepresentation3.MapScalars = 1
DataRepresentation3.PointSize = 2.0
DataRepresentation3.StaticMode = 0
DataRepresentation3.SelectionCellLabelColor = [0.0, 1.0, 0.0]
DataRepresentation3.EdgeColor = [0.0, 0.0, 0.50000762951094835]
DataRepresentation3.CubeAxesXAxisTickVisibility = 1
DataRepresentation3.SelectionCellLabelVisibility = 0
DataRepresentation3.CubeAxesColor = [1.0, 1.0, 1.0]
DataRepresentation3.Representation = 'Surface'
DataRepresentation3.CubeAxesXAxisMinorTickVisibility = 1
DataRepresentation3.Orientation = [0.0, 0.0, 0.0]
DataRepresentation3.UseLookupTableScalarRange = 0
DataRepresentation3.CubeAxesXTitle = 'X-Axis'
DataRepresentation3.CubeAxesInertia = 1
DataRepresentation3.BackfaceOpacity = 1.0
DataRepresentation3.SelectionCellFieldDataArrayName = ''
DataRepresentation3.SelectionColor = [1.0, 0.0, 1.0]
DataRepresentation3.SelectionPointLabelVisibility = 0
DataRepresentation3.SelectionPointLabelFontSize = 18
DataRepresentation3.BackfaceAmbientColor = [1.0, 1.0, 1.0]
DataRepresentation3.SelectionLineWidth = 2.0
DataRepresentation3.CubeAxesZAxisMinorTickVisibility = 1
DataRepresentation3.CubeAxesXAxisVisibility = 1
DataRepresentation3.Interpolation = 'Gouraud'
DataRepresentation3.SelectionCellLabelFontFamily = 'Arial'
DataRepresentation3.SelectionCellLabelItalic = 0
DataRepresentation3.CubeAxesYAxisMinorTickVisibility = 1
DataRepresentation3.CubeAxesZGridLines = 0
DataRepresentation3.SelectionPointLabelOpacity = 1.0
DataRepresentation3.Pickable = 1
DataRepresentation3.SelectionRepresentation = 'Wireframe'
DataRepresentation3.ClippingPlanes = []
DataRepresentation3.SelectionPointLabelBold = 0
DataRepresentation3.NumberOfSubPieces = 1
DataRepresentation3.ColorArrayName = 'scalars'
DataRepresentation3.SelectionPointLabelItalic = 0
DataRepresentation3.SpecularColor = [1.0, 1.0, 1.0]
DataRepresentation3.LookupTable = a1_scalars_PVLookupTable
DataRepresentation3.SelectionCellLabelBold = 0

StreamTracer1.SeedType.Radius = 0.25
StreamTracer1.SeedType.Center = [-0.026040017604827881, 0.0, 0.44999998807907104]
StreamTracer1.SeedType.NumberOfPoints = 10

Contour1.PointMergeMethod.Divisions = [50, 50, 50]
Contour1.PointMergeMethod.Numberofpointsperbucket = 8

Render()
_______________________________________________
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

Reply via email to