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

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.

I wonder if it’s connected to this: Adding volume by class name produces warnings · Issue #6098 · Slicer/Slicer · GitHub

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:

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

I think i found my mistake :man_facepalming:

I forgot to include these two lines (Script repository — 3D Slicer documentation):

segmentModels = vtk.vtkCollection()
shNode.GetDataNodesInBranch(exportFolderItemId, segmentModels)
1 Like