# Error VTK Input port 0 of algorithm vtkTubeFilter has 0 connections but is not optional

**URL:** https://discourse.slicer.org/t/error-vtk-input-port-0-of-algorithm-vtktubefilter-has-0-connections-but-is-not-optional/22153
**Category:** Support
**Tags:** vtk, markups-fiducials
**Created:** [February 24, 2022, 10:00am UTC](https://discourse.slicer.org/t/error-vtk-input-port-0-of-algorithm-vtktubefilter-has-0-connections-but-is-not-optional/22153 "2022-02-24T10:00:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![steffen-o](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/steffen-o/32/2660_2.png) [@steffen-o](https://discourse.slicer.org/u/steffen-o)
#### Post date: [February 24, 2022, 10:00am UTC](https://discourse.slicer.org/t/error-vtk-input-port-0-of-algorithm-vtktubefilter-has-0-connections-but-is-not-optional/22153/1 "2022-02-24T10:00:19Z")

</div>

Hi,

Slicer version: 4.13.0

I’m using 3D Slicer for segmentation and landmarking of micro CT data for quite a while now and I like it very much!  
The new Markup functionality (Landmark templates,skipping Landmarks, editing misplaced landmarks, …) in v4.13 is helping me a lot. I use some Python code snippets to create markup planes and set views.  
But i am getting a lot of errors in the log.

> Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.

The error doesn’t seem to do much (except flooding the error log).  
Has anybody encountered this error before? What did I do wrong?

I hope you can help me, thank you in advance!

Here is my Log:

> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Session start time …: 2022-02-24 09:46:31  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Slicer version …: 4.13.0-2022-02-23 (revision 30641 / 7da0024) win-amd64 - installed release  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Operating system …: Windows / Professional / (Build 17763, Code Page 1252) - 64-bit  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Memory …: 130982 MB physical, 150438 MB virtual  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - CPU …: GenuineIntel , 12 cores, 12 logical processors  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - VTK configuration …: OpenGL2 rendering, TBB threading  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Qt configuration …: version 5.15.2, with SSL, requested OpenGL 3.2 (compatibility profile)  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Internationalization …: disabled, language=  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Developer mode …: enabled  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Application path …: C:/ProgramData/NA-MIC/Slicer 4.13.0-2022-02-23/bin  
> [DEBUG][Qt] 24.02.2022 09:46:31 (unknown:0) - Additional module paths …: (none)  
> [DEBUG][Python] 24.02.2022 09:46:36 [Python] (C:\ProgramData\NA-MIC\Slicer 4.13.0-2022-02-23\lib\Slicer-4.13\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations  
> [DEBUG][Python] 24.02.2022 09:46:37 [Python] (C:\ProgramData\NA-MIC\Slicer 4.13.0-2022-02-23\lib\Slicer-4.13\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor  
> [DEBUG][Python] 24.02.2022 09:46:37 [Python] (C:\ProgramData\NA-MIC\Slicer 4.13.0-2022-02-23\lib\Slicer-4.13\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics  
> [DEBUG][Qt] 24.02.2022 09:46:37 (unknown:0) - Switch to module: “Welcome”  
> [INFO][Stream] 24.02.2022 09:46:38 (unknown:0) - Loading Slicer RC file [C:/Users/User1/.slicerrc.py]  
> [INFO][VTK] 24.02.2022 09:47:14 [vtkMRMLVolumeArchetypeStorageNode (000002A7B62A1E70)] (D:\D\P\Slicer-0\Libs\MRML\Core\vtkMRMLVolumeArchetypeStorageNode.cxx:513) - Loaded volume from file: G:/student/Prep1/Prep1\_8bit\_3px3dmed.nrrd. Dimensions: 2048x2048x1484. Number of components: 1. Pixel type: unsigned char.  
> [INFO][VTK] 24.02.2022 09:47:17 [vtkMRMLVolumeArchetypeStorageNode (000002A7B62A1A70)] (D:\D\P\Slicer-0\Libs\MRML\Core\vtkMRMLVolumeArchetypeStorageNode.cxx:513) - Loaded volume from file: G:/student/Prep1/Prep1\_8bit\_3px3dmed cropped.nrrd. Dimensions: 785x869x670. Number of components: 1. Pixel type: unsigned char.  
> [INFO][VTK] 24.02.2022 09:47:28 [vtkMRMLVolumeArchetypeStorageNode (000002A7B62A0670)] (D:\D\P\Slicer-0\Libs\MRML\Core\vtkMRMLVolumeArchetypeStorageNode.cxx:513) - Loaded volume from file: G:/student/Prep1/Prep1\_8bit\_3px3dmed\_bin2.nrrd. Dimensions: 1024x1024x742. Number of components: 1. Pixel type: unsigned char.  
> [INFO][VTK] 24.02.2022 09:47:51 [vtkMRMLVolumeArchetypeStorageNode (000002A7B62A0870)] (D:\D\P\Slicer-0\Libs\MRML\Core\vtkMRMLVolumeArchetypeStorageNode.cxx:513) - Loaded volume from file: G:/student/Prep1/Cropped volume\_ss2.nrrd. Dimensions: 1573x1740x1342. Number of components: 1. Pixel type: unsigned char.  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D22710)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D22710)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D21D10)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D21D10)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D52550)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D52550)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D12B30)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D12B30)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D22710)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D22710)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D21D10)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D21D10)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D52550)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D52550)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D12B30)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [ERROR][VTK] 24.02.2022 09:48:07 [vtkMRMLMarkupsDisplayableManagerHelper (000002A7B6D12B30)] (D:\D\P\Slicer-0\Modules\Loadable\Markups\MRMLDM\vtkMRMLMarkupsDisplayableManagerHelper.cxx:297) - vtkMRMLMarkupsDisplayableManager2D: Failed to create widget  
> [DEBUG][Qt] 24.02.2022 09:48:07 (unknown:0) - “MRML Scene” Reader has successfully read the file “G:/student/Prep1/2019-11-05-Scene.mrml” “[57.97s]”  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F11FF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F134F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F1AEF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F1BBF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F261F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F24BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C3418AF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C34353F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C34352F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F0B5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F047F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F377F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F36BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C342D9F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C342D7F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F2F5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F2C2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C343B4F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C343B2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F11FF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F134F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F1AEF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F1BBF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F261F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F24BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C3418AF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C34353F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C34352F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F0B5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F047F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F377F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F36BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C342D9F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C342D7F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F2F5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F2C2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C343B4F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C343B2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F11FF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F134F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F1AEF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F1BBF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F261F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F24BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C3418AF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C34353F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C34352F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F0B5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F047F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F377F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F36BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C342D9F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C342D7F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F2F5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F2C2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C343B4F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C343B2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F11FF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F134F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F1AEF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F1BBF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F261F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F24BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C3418AF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C34353F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C34352F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F0B5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F047F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F377F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F36BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C342D9F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C342D7F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F2F5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F2C2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C343B4F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C343B2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F11FF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F134F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F1AEF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F1BBF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F261F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F24BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C3418AF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C34353F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C34352F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F0B5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F047F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F377F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F36BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C342D9F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C342D7F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F2F5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F2C2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C343B4F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C343B2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F11FF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F134F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F1AEF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F1BBF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F261F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F24BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C3418AF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C34353F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C34352F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F0B5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F047F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F377F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F36BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C342D9F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C342D7F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F2F5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F2C2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C343B4F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C343B2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F11FF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F134F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F1AEF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F1BBF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F261F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F24BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C3418AF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C34353F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C34352F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F0B5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F047F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F377F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F36BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C342D9F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C342D7F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F2F5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F2C2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C343B4F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C343B2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F11FF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F134F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F1AEF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F1BBF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F261F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F24BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C3418AF0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C3419DF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C34353F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C34352F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F0B5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F047F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F377F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F36BF0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C342D9F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C342D7F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C1F2F5F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C1F2C2F0) has 0 connections but is not optional.  
> [ERROR][VTK] 24.02.2022 09:48:09 [vtkCompositeDataPipeline (000002A9C343B4F0)] (D:\D\P\Slicer-0-build\VTK\Common\ExecutionModel\vtkDemandDrivenPipeline.cxx:668) - Input port 0 of algorithm vtkTubeFilter(000002A9C343B2F0) has 0 connections but is not optional.

---

<div class="post-metadata">

### Author: ![ebrahim](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ebrahim/32/13403_2.png) [@ebrahim](https://discourse.slicer.org/u/ebrahim)
#### Post date: [February 24, 2022, 12:04pm UTC](https://discourse.slicer.org/t/error-vtk-input-port-0-of-algorithm-vtktubefilter-has-0-connections-but-is-not-optional/22153/2 "2022-02-24T12:04:32Z")

</div>

I wonder if it’s connected to this: [Adding volume by class name produces warnings · Issue #6098 · Slicer/Slicer · GitHub](https://github.com/Slicer/Slicer/issues/6098)

---

<div class="post-metadata">

### Author: ![steffen-o](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/steffen-o/32/2660_2.png) [@steffen-o](https://discourse.slicer.org/u/steffen-o)
#### Post date: [March 2, 2022, 9:33am UTC](https://discourse.slicer.org/t/error-vtk-input-port-0-of-algorithm-vtktubefilter-has-0-connections-but-is-not-optional/22153/3 "2022-03-02T09:33:09Z")

</div>

The strange part of this error is: it only appears after reloading the saved scene.  
I could narrow the error down to this part of my Python code:

```auto
segmentationNodes= list(slicer.mrmlScene.GetNodesByClass("vtkMRMLSegmentationNode"))

# segmentationNode = getNode("Segmentation")
for segNode in segmentationNodes:
  shNode = slicer.mrmlScene.GetSubjectHierarchyNode()
  exportFolderItemId = shNode.CreateFolderItem(shNode.GetSceneItemID(), segNode.GetName()+"_models")
  slicer.modules.segmentations.logic().ExportAllSegmentsToModels(segNode, exportFolderItemId)

```

This part should make models of all the segmentations and put them in a folder for easier handling of the visibility.  
If i only have one Segmentation there is no error…

I hope someone could help me to correct this code snippet

---

<div class="post-metadata">

### Author: ![steffen-o](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/steffen-o/32/2660_2.png) [@steffen-o](https://discourse.slicer.org/u/steffen-o)
#### Post date: [March 2, 2022, 10:22am UTC](https://discourse.slicer.org/t/error-vtk-input-port-0-of-algorithm-vtktubefilter-has-0-connections-but-is-not-optional/22153/4 "2022-03-02T10:22:14Z")

</div>

I think i found my mistake 🤦‍♂️

I forgot to include these two lines ([Script repository — 3D Slicer documentation](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#export-model-nodes-from-segmentation-node)):

```auto
segmentModels = vtk.vtkCollection()
shNode.GetDataNodesInBranch(exportFolderItemId, segmentModels)

```
