[vtkusers] vtkTrivialProducer strange behavior

Carlos Scheidegger cscheid at sci.utah.edu
Mon Mar 6 16:03:14 EST 2006


Hi,

I'm trying to use vtkTrivialProducer in one application and I'm getting 
unexpected behavior. Apparently, there cannot be more than one 
vtkTrivialProducer pointing to the same vtkDataObject? I'm attaching a 
python script that exercises the path. This is what happens when I run it:

[cscheid at frodo]$ ./test_trivial_producer_crash.py 
/scratch/cscheid/data/VTKData/Data/fran_cut.vtk 1
vtk version 5.1.0, vtk source $Revision: 1.2266 $, $Date: 2005/11/17 
10:24:41 $ (GMT)
[cscheid at frodo]$ ./test_trivial_producer_crash.py 
/scratch/cscheid/data/VTKData/Data/fran_cut.vtk 2
vtk version 5.1.0, vtk source $Revision: 1.2266 $, $Date: 2005/11/17 
10:24:41 $ (GMT)
[cscheid at frodo]$ ./test_trivial_producer_crash.py 
/scratch/cscheid/data/VTKData/Data/fran_cut.vtk 1 producer
vtk version 5.1.0, vtk source $Revision: 1.2266 $, $Date: 2005/11/17 
10:24:41 $ (GMT)
[cscheid at frodo]$ ./test_trivial_producer_crash.py 
/scratch/cscheid/data/VTKData/Data/fran_cut.vtk 2 producer
vtk version 5.1.0, vtk source $Revision: 1.2266 $, $Date: 2005/11/17 
10:24:41 $ (GMT)
ERROR: In 
/scratch/cscheid/code/VTK/Filtering/vtkDemandDrivenPipeline.cxx, line 654
vtkStreamingDemandDrivenPipeline (0x81bb890): Algorithm 
vtkTrivialProducer(0x81bb298) did not create output for port 0 when 
asked by REQUEST_DATA_OBJECT and does not specify any DATA_TYPE_NAME.

ERROR: In 
/scratch/cscheid/code/VTK/Filtering/vtkDemandDrivenPipeline.cxx, line 654
vtkStreamingDemandDrivenPipeline (0x81bb890): Algorithm 
vtkTrivialProducer(0x81bb298) did not create output for port 0 when 
asked by REQUEST_DATA_OBJECT and does not specify any DATA_TYPE_NAME.

ERROR: In 
/scratch/cscheid/code/VTK/Filtering/vtkDemandDrivenPipeline.cxx, line 654
vtkStreamingDemandDrivenPipeline (0x81bb890): Algorithm 
vtkTrivialProducer(0x81bb298) did not create output for port 0 when 
asked by REQUEST_DATA_OBJECT and does not specify any DATA_TYPE_NAME.

Segmentation fault
[cscheid at frodo]$

The code will try to create two renderers and show the same dataset in 
both, using vtkTrivialProducers to feed the mapper. Is this the expected 
behavior? I can work around it, but I'm just wondering whether it's a 
bug or not. (I guess it's high time I learned some serious VTK internals)

Thank you in advance,
Carlos Scheidegger, on behalf of the VisTrails dev team


-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_trivial_producer_crash.py
Type: text/x-python
Size: 1845 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20060306/b137d9c7/attachment.py>


More information about the vtkusers mailing list