[Paraview] Python scripting : problem with Representation

Nicolas Richart nicolas.richart at epfl.ch
Mon Feb 15 04:27:53 EST 2010


I use pvpython.
I attached the backtrace that I got with gdb.

Thanks

Nicolas

On 12/02/2010 15:17, Utkarsh Ayachit wrote:
> Is this through python shell or pvpython? Can you attach a debugger
> and post the stack trace?
>
> Utkarsh
>
> On Fri, Feb 12, 2010 at 4:37 AM, Nicolas Richart
> <nicolas.richart at epfl.ch>  wrote:
>    
>> I tried with the cvs version and I still have the same problem
>>
>> Nicolas
>>
>>
>> On 10/02/2010 15:45, Utkarsh Ayachit wrote:
>>      
>>> Can you try updating to latest CVS and see? I just tried with the CVS
>>> head and couldn't reproduce the issue.
>>>
>>> Utkarsh
>>>
>>> On Wed, Feb 10, 2010 at 7:55 AM, Nicolas Richart
>>> <nicolas.richart at epfl.ch>    wrote:
>>>
>>>        
>>>> Hi,
>>>>
>>>> I try to modify representation properties in order to color my data with
>>>> the
>>>> values of an array
>>>> and I get a segmentation fault.
>>>>
>>>> So I try the example which is on the wiki on the Python Scripting page
>>>> And i also get a segmentation fault during the rendering
>>>>
>>>>
>>>>          
>>>>>>> from paraview.simple import *
>>>>>>>
>>>>>>>                
>>>> paraview version 3.7.0, Date: 2009-11-24
>>>>
>>>>          
>>>>>>> sph = Sphere()
>>>>>>> elev = Elevation(sph)
>>>>>>> Show(elev)
>>>>>>>
>>>>>>>                
>>>> vtkSphereSource : [ ...........]
>>>> vtkElevationFilter : [ ...........]
>>>> <paraview.servermanager.GeometryRepresentation object at 0x371b410>
>>>>
>>>>          
>>>>>>> Render()
>>>>>>>
>>>>>>>                
>>>> vtkPVGeometryFilter : [ ...........]
>>>> vtkPVCacheKeeper : [ ...........]
>>>> vtkPainterPolyDataMapper : [ ...........]
>>>> vtkPainterPolyDataMapper : [ ...........]
>>>> <paraview.servermanager.RenderView object at 0x23fbb10>
>>>>
>>>>          
>>>>>>> dp = GetDisplayProperties(elev)
>>>>>>> dp.Representation = 'Points'
>>>>>>> ai = elev.PointData[1]
>>>>>>> dp.LookupTable = MakeBlueToRedLT(0, 0.5)
>>>>>>> dp.ColorAttributeType = 'POINT_DATA'
>>>>>>> dp.ColorArrayName = 'Elevation' # color by Elevation
>>>>>>> Render()
>>>>>>>
>>>>>>>                
>>>> vtkPainterPolyDataMapper : [ ...........]
>>>> Segmentation fault
>>>>
>>>> I'm using paraview 3.7
>>>> Do you have an idea of what happens?
>>>>
>>>> Thanks in advance
>>>>
>>>> --
>>>> Nicolas Richart
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>>
>>>>          
>>
>>      

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pvpython_crash_bt
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100215/fc2c2a62/attachment.txt>


More information about the ParaView mailing list