[vtk-developers] [vtkusers] Removal of vtkImageSource causing problems for vtkITKArchetypeImageSeriesReader

Berk Geveci berk.geveci at kitware.com
Thu Apr 18 11:55:34 EDT 2013

Hi Kent,

Can you share the piece of the code that is leading to this error? The
easiest thing would be to run this in a debugger and set a breakpoint
in vtkDemandDrivenPipeline.cxx:715.
It looks like someone is calling SetInputConnection() or one of the related
functions on the reader. Also, if you could post the old and the new
versions of the reader, I might have some more specific suggestions on the


On Thu, Apr 18, 2013 at 11:44 AM, Kent Williams
<nkwmailinglists at gmail.com>wrote:

> I have spent several hours puzzling over this.
> There is a class vtkITKArchetypeImageSeriesReader that is part of Slicer.
> In the process of converting BRAINSTools to be compatible with VTK6, I ran
> into this issue: vtkImageSource is gone, and
> vtkITKArchetypeImageSeriesReader derives from it.
> As far as I can tell from reading the Pipeline migration guide, things
> that were once derived from vtkSource are now supposed to be derived from
> vtkAlgorithm.
> So I changed the superclass for vtkITKArchetypeImageSeriesReader to
> vtkImageAlgorithm.
> This compiles OK but at runtime it has this error message:
> 118: ERROR: In
> /scratch/kent/BRAINSTools/build/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx,
> line 715
> 118: vtkCompositeDataPipeline (0x7f946c916190): Input port 0 of algorithm
> vtkITKArchetypeImageSeriesScalarReader(0x7f946c914990) has 0 connections
> but is not optional.
> Now something that is a source, doesn't need any inputs -- the input in
> this case is the name of the file or files to read to generate an image.
> I don't understand the VTK pipeline in general, or this problem
> specifically, and frankly I was trying to do this conversion on a 'need to
> know' basis -- only learn what I need to know in order to get the
> conversion done.
> So the question is -- if something was working fine before derived from
> vtkImageSource, what is the least-effort path to getting it functional in
> VTK6?
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20130418/4c9b9e2a/attachment.html>

More information about the vtk-developers mailing list