Hi,<br><br>I filled a bug entry concerning volume rendering (<a href="http://public.kitware.com/Bug/view.php?id=12180">http://public.kitware.com/Bug/view.php?id=12180</a>) and I wish I could provide a python script that reproduces the bug. However, I went into a simple seg fault, without any additional error message (git-master). I tracked what would cause the crash by using python trace and commenting out the line one by one. The pipeline is a simple Wavelet source -> Volume rendering and python trace outputs the following script :<br>
<br>#### simple volume rendering from Trace<br>try: paraview.simple<br>except: from paraview.simple import *<br>paraview.simple._DisableFirstRenderCameraReset()<br><br>Wavelet2 = Wavelet()<br><br>RenderView1 = GetRenderView()<br>
DataRepresentation2 = Show()<br>DataRepresentation2.ScalarOpacityUnitDistance = 1.7320508075688779<br>DataRepresentation2.Representation = 'Outline'<br>DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
<br>a1_RTData_PVLookupTable = GetLookupTableForArray( "RTData", 1, NanColor=[1.0, 0.0, 0.0], RGBPoints=[37.35310363769531, 0.0, 0.0, 0.0, 276.8288269042969, 1.0, 1.0, 1.0], VectorMode='Magnitude', ColorSpace='RGB', ScalarRangeInitialized=1.0 )<br>
<br>a1_RTData_PiecewiseFunction = CreatePiecewiseFunction( Points=[37.35310363769531, 0.0, 276.8288269042969, 1.0] )<br><br>RenderView1.CameraClippingRange = [46.35209125603439, 92.97512386351]<br><br>DataRepresentation2.Representation = 'Volume'<br>
DataRepresentation2.ScalarOpacityFunction = a1_RTData_PiecewiseFunction<br>DataRepresentation2.ColorArrayName = 'RTData'<br>DataRepresentation2.LookupTable = a1_RTData_PVLookupTable<br><br>Render()<br>##########################################################<br>
<br>It turns out that commenting the line<br> DataRepresentation2.ColorArrayName = 'RTData'<br>effectively throws the segfault.<br>To confirm the fact, I simply entered the following command in the python shell:<br>
Wavelet()<br>rep = Show()<br>rep.Representation = 'Volume'<br><br>And it crashed. entering rep.ColorArrayName='RTData' before asking for Volume representation is the solution.<br>Furthermore, the step-by-step bug tracking showed me that the Lookup table bug (#12180) is reproducible when I comment out both ScalarOpacityFunction and LookupTable variable initialisation.<br>
<br>So, well... I don't know: Do I have to fill another bug entry on mantis focusing on Python, linked to the previous report ? Or is it better to add a note to the already reported bug ? I guess there was a "VTK default scalar name" bug reported months ago. it seems to be related to...<br>
<br>Jerome<br><br><br>