SlicerRT ERROR No image data in input volume #0

Greetings everyone!
image
Trying to calculate dose, error appears.
ERROR: No image data in nput volume #0
What is volume #0?
Thank you!

The error message means that the dose volume for the beam was not calculated.

Probably this is because there was an error when running Dosxyznrc. Could you upload the log file? It should contain more info that describes the what went wrong.

[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Session start time …: 2020-06-10 03:43:05
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Slicer version …: 4.11.0-2020-06-08 (revision 29117 / 6256f99) win-amd64 - installed release
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Operating system …: Windows / Professional / (Build 17763, Code Page 1251) - 64-bit
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Memory …: 16316 MB physical, 28092 MB virtual
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - CPU …: AuthenticAMD AMD Ryzen 7 2700 Eight-Core Processor , 16 cores, 16 logical processors
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - VTK configuration …: OpenGL2 rendering, TBB threading
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Qt configuration …: version 5.15.0, with SSL, requested OpenGL 3.2 (compatibility profile)
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Developer mode enabled …: no
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Prefer executable CLI …: yes
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Application path …: C:/ProgramData/NA-MIC/Slicer 4.11.0-2020-06-08/bin
[DEBUG][Qt] 10.06.2020 03:43:05 [] (unknown:0) - Additional module paths …: C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/MarkupsToModel/lib/Slicer-4.11/qt-loadable-modules, C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SegmentationWizard/lib/Slicer-4.11/qt-scripted-modules, C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SegmentEditorExtraEffects/lib/Slicer-4.11/qt-scripted-modules, C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/cli-modules, C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-loadable-modules, C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-scripted-modules
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - Traceback (most recent call last):
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 1, in
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “C:\ProgramData\NA-MIC\Slicer 4.11.0-2020-06-08\lib\Python\Lib\imp.py”, line 170, in load_source
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - module = _exec(spec, sys.modules[name])
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 618, in _exec
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 674, in exec_module
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 781, in get_code
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 741, in source_to_code
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 219, in _call_with_frames_removed
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SegmentationWizard/lib/Slicer-4.11/qt-scripted-modules/SegmentationWizard.py”, line 290
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - except Exception, e:
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - ^
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - SyntaxError: invalid syntax
[CRITICAL][Qt] 10.06.2020 03:43:07 [] (unknown:0) - loadSourceAsModule - Failed to load file “C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SegmentationWizard/lib/Slicer-4.11/qt-scripted-modules/SegmentationWizard.py” as module “SegmentationWizard” !
[CRITICAL][Qt] 10.06.2020 03:43:07 [] (unknown:0) - Fail to instantiate module “SegmentationWizard”
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - Traceback (most recent call last):
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 1, in
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “C:\ProgramData\NA-MIC\Slicer 4.11.0-2020-06-08\lib\Python\Lib\imp.py”, line 170, in load_source
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - module = _exec(spec, sys.modules[name])
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 618, in _exec
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 674, in exec_module
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 781, in get_code
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 741, in source_to_code
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “”, line 219, in _call_with_frames_removed
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - File “C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SegmentationWizard/lib/Slicer-4.11/qt-scripted-modules/SegmentationWizardSelfTest.py”, line 227
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - except Exception, e:
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - ^
[CRITICAL][Stream] 10.06.2020 03:43:07 [] (unknown:0) - SyntaxError: invalid syntax
[CRITICAL][Qt] 10.06.2020 03:43:07 [] (unknown:0) - loadSourceAsModule - Failed to load file “C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SegmentationWizard/lib/Slicer-4.11/qt-scripted-modules/SegmentationWizardSelfTest.py” as module “SegmentationWizardSelfTest” !
[CRITICAL][Qt] 10.06.2020 03:43:07 [] (unknown:0) - Fail to instantiate module “SegmentationWizardSelfTest”
[CRITICAL][Qt] 10.06.2020 03:43:07 [] (unknown:0) - The following modules failed to be instantiated:
[CRITICAL][Qt] 10.06.2020 03:43:07 [] (unknown:0) - SegmentationWizardSelfTest
[CRITICAL][Qt] 10.06.2020 03:43:07 [] (unknown:0) - SegmentationWizard
[DEBUG][Python] 10.06.2020 03:43:08 [Python] (C:\ProgramData\NA-MIC\Slicer 4.11.0-2020-06-08\lib\Slicer-4.11\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: Annotations
[DEBUG][Python] 10.06.2020 03:43:09 [Python] (C:\ProgramData\NA-MIC\Slicer 4.11.0-2020-06-08\lib\Slicer-4.11\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentEditor
[DEBUG][Python] 10.06.2020 03:43:09 [Python] (C:\ProgramData\NA-MIC\Slicer 4.11.0-2020-06-08\lib\Slicer-4.11\qt-scripted-modules\SubjectHierarchyPlugins\AbstractScriptedSubjectHierarchyPlugin.py:36) - Scripted subject hierarchy plugin registered: SegmentStatistics
[DEBUG][Qt] 10.06.2020 03:43:09 [] (unknown:0) - Switch to module: “Welcome”
[INFO][VTK] 10.06.2020 03:43:27 [vtkMRMLVolumeArchetypeStorageNode (0000014296378820)] (D:\D\P\Slicer-0\Libs\MRML\Core\vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: D:/Stepan/PhantomHollowNRRDFull/3 Head 1.0.nrrd. Dimensions: 512x512x616. Number of components: 1. Pixel type: short.
[DEBUG][Qt] 10.06.2020 03:43:27 [] (unknown:0) - “Volume” Reader has successfully read the file “D:/Stepan/PhantomHollowNRRDFull/3 Head 1.0.nrrd” “[1.35s]”
[INFO][VTK] 10.06.2020 03:43:28 [vtkMRMLVolumeArchetypeStorageNode (0000014296379990)] (D:\D\P\Slicer-0\Libs\MRML\Core\vtkMRMLVolumeArchetypeStorageNode.cxx:470) - Loaded volume from file: D:/Stepan/PhantomHollowNRRDFull/3 Head 1.0.nrrd. Dimensions: 512x512x616. Number of components: 1. Pixel type: short.
[DEBUG][Qt] 10.06.2020 03:43:28 [] (unknown:0) - “MRML Scene” Reader has successfully read the file “D:/Stepan/PhantomHollowNRRDFull/2020-06-10-Scene.mrml” “[1.89s]”
[DEBUG][Qt] 10.06.2020 03:43:29 [] (unknown:0) - “Segmentation” Reader has successfully read the file “D:/Stepan/PhantomHollowNRRDFull/Segmentation.seg.nrrd” “[0.55s]”
[DEBUG][Qt] 10.06.2020 03:43:31 [] (unknown:0) - Switch to module: “Data”
[DEBUG][Qt] 10.06.2020 03:43:48 [] (unknown:0) - Switch to module: “ExternalBeamPlanning”
[DEBUG][Qt] 10.06.2020 03:43:50 [] (unknown:0) - class QColor __cdecl qSlicerSubjectHierarchyMarkupsPlugin::getDisplayColor(__int64,class QMap<int,class QVariant> &) const : No display node
[DEBUG][Qt] 10.06.2020 03:43:50 [] (unknown:0) - Dose engine selection changed to “Mock random”
[DEBUG][Qt] 10.06.2020 03:44:25 [] (unknown:0) - Dose engine selection changed to “Orthovoltage”
[DEBUG][Qt] 10.06.2020 03:44:29 [] (unknown:0) - Switch to module: “Beams”
[DEBUG][Qt] 10.06.2020 03:45:02 [] (unknown:0) - Switch to module: “ExternalBeamPlanning”
[INFO][Python] 10.06.2020 03:45:22 [Python] (C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/DoseEngines/OrthovoltageDoseEngine.py:203) - Isocenter (cm): [0.29, -0.533, -103.719]
[ERROR][Python] 10.06.2020 03:45:22 [Python] (C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/DoseEngines/OrthovoltageDoseEngine.py:222) - Unable to get ROI by name R
[INFO][Python] 10.06.2020 03:45:22 [Python] (C:\Users\svm18\AppData\Roaming\NA-MIC\Extensions-29117\SlicerRT\lib\Slicer-4.11\qt-scripted-modules\DoseEngines\EGSnrcUtil.py:50) - Run ctcreate: D:\Research\VoxelBased_radiotherapy\EGSnrc\HEN_HOUSE\bin\win3264\ctcreate.exe D:\Stepan\OrthoOutput\Beam1_HollowPhantom\ctcreate.inp
[DEBUG][Python] 10.06.2020 03:45:22 [Python] (C:\Users\svm18\AppData\Roaming\NA-MIC\Extensions-29117\SlicerRT\lib\Slicer-4.11\qt-scripted-modules\DoseEngines\EGSnrcUtil.py:57) - -----------------------------
[DEBUG][Python] 10.06.2020 03:45:22 [Python] (C:\Users\svm18\AppData\Roaming\NA-MIC\Extensions-29117\SlicerRT\lib\Slicer-4.11\qt-scripted-modules\DoseEngines\EGSnrcUtil.py:58) - ctcreate output:
b’’
[INFO][Python] 10.06.2020 03:45:22 [Python] (C:\Users\svm18\AppData\Roaming\NA-MIC\Extensions-29117\SlicerRT\lib\Slicer-4.11\qt-scripted-modules\DoseEngines\EGSnrcUtil.py:62) - ctcreate output (last paragraph):

[DEBUG][Python] 10.06.2020 03:45:22 [Python] (C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/DoseEngines/OrthovoltageDoseEngine.py:375) - -----------------------------
[DEBUG][Python] 10.06.2020 03:45:22 [Python] (C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/DoseEngines/OrthovoltageDoseEngine.py:376) - DOSXYZ output:
b’’
[INFO][Python] 10.06.2020 03:45:22 [Python] (C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/DoseEngines/OrthovoltageDoseEngine.py:380) - DOSXYZ output (last paragraph):

[INFO][Stream] 10.06.2020 03:45:22 [] (unknown:0) - Isocenter (cm): [0.29, -0.533, -103.719]
[CRITICAL][Qt] 10.06.2020 03:45:22 [] (unknown:0) - class QString __cdecl qSlicerAbstractDoseEngine::parameter(class vtkMRMLRTBeamNode *,class QString) : Parameter named “VolumeName” cannot be found for beam NewBeam_1
[CRITICAL][Stream] 10.06.2020 03:45:22 [] (unknown:0) - Unable to get ROI by name R
[INFO][Stream] 10.06.2020 03:45:22 [] (unknown:0) - Run ctcreate: D:\Research\VoxelBased_radiotherapy\EGSnrc\HEN_HOUSE\bin\win3264\ctcreate.exe D:\Stepan\OrthoOutput\Beam1_HollowPhantom\ctcreate.inp
[INFO][Stream] 10.06.2020 03:45:22 [] (unknown:0) - ctcreate output (last paragraph):
[INFO][Stream] 10.06.2020 03:45:22 [] (unknown:0) - ’
[INFO][Stream] 10.06.2020 03:45:22 [] (unknown:0) - DOSXYZ output (last paragraph):
[INFO][Stream] 10.06.2020 03:45:22 [] (unknown:0) - ’
[CRITICAL][Stream] 10.06.2020 03:45:22 [] (unknown:0) - Traceback (most recent call last):
[CRITICAL][Stream] 10.06.2020 03:45:22 [] (unknown:0) - File “C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/DoseEngines/OrthovoltageDoseEngine.py”, line 388, in calculateDoseUsingEngine
[CRITICAL][Stream] 10.06.2020 03:45:22 [] (unknown:0) - loadedVolumeNode = slicer.util.loadNodeFromFile(dosXyznrcOutputFilePath, ‘DosxyzNrc3dDoseFile’, {})
[CRITICAL][Stream] 10.06.2020 03:45:22 [] (unknown:0) - File “C:\ProgramData\NA-MIC\Slicer 4.11.0-2020-06-08\bin\Python\slicer\util.py”, line 472, in loadNodeFromFile
[CRITICAL][Stream] 10.06.2020 03:45:22 [] (unknown:0) - raise RuntimeError(errorMessage)
[CRITICAL][Stream] 10.06.2020 03:45:22 [] (unknown:0) - RuntimeError: Failed to load node from file: D:\Research\VoxelBased_radiotherapy\EGSnrc\EGS_HOME\dosxyznrc\20200610_034522_dosxyznrc.3ddose
[CRITICAL][Qt] 10.06.2020 03:45:22 [] (unknown:0) - “C:/Users/svm18/AppData/Roaming/NA-MIC/Extensions-29117/SlicerRT/lib/Slicer-4.11/qt-scripted-modules/DoseEngines/OrthovoltageDoseEngine.py” : clone: Failed to call mandatory calculateDoseUsingEngine method! If it is implemented, please see python output for errors.
[WARNING][Qt] 10.06.2020 03:45:22 [] (unknown:0) - void __cdecl qSlicerAbstractDoseEngine::addResultDose(class vtkMRMLScalarVolumeNode *,class vtkMRMLRTBeamNode *,bool) : Unable to find study item that contains the plan! Creating a study item and adding the reference dose and the plan under it is necessary in order for dose evaluation steps to work properly
[ERROR][VTK] 10.06.2020 03:45:22 [vtkSlicerDoseAccumulationModuleLogic (0000014298A38D90)] (D:\D\P\S-0-E-b\SlicerRT\DoseAccumulation\Logic\vtkSlicerDoseAccumulationModuleLogic.cxx:218) - AccumulateDoseVolumes: No image data in input volume #0
[CRITICAL][Qt] 10.06.2020 03:45:22 [] (unknown:0) - class QString __cdecl qSlicerDoseEngineLogic::calculateDose(class vtkMRMLRTPlanNode *) : “No image data in input volume #0
[CRITICAL][Qt] 10.06.2020 03:45:22 [] (unknown:0) - void __cdecl qSlicerExternalBeamPlanningModuleWidget::calculateDoseClicked(void) : “ERROR: No image data in input volume #0

I have seen the same error recently, when the lab where it was originally developed picked up the project again, and the person who started working on it asked me. I developed the Slicer part of this dose engine, but unfortunately I don’t have the capacity to work on it anymore. I will tell the medical physics student about this forum topic, maybe you could team up.

The Dosxyznrc output doesn’t seem to be complete in the log.
If the executable was found, the log should contain something like this:

b"================================================================================
EGSnrc version 4 for win3264                           Tue Jun  2 15:17:15 2020
================================================================================

I helped the student that @cpinter mentioned fix their issue, so maybe the same problem is happening here.
The Orthovoltage dose engine is harded-coded to use AIR512ICRU and WATER512ICRU mediums. If you are using the 521icru.pegs4dat or 700icru.pegs4dat that comes with EGSnrc, then the dose calculation will fail. You could test this by changing/adding the air and water values in the pegs4dat file to AIR512ICRU and WATER512ICRU, or by using a pegs4dat file that has them already defined.

Thank you a lot! But how can I fix these pegs4dat icru files or find correct icru file?

This is not a permanent solution, just trying to determine if this is what’s causing the problem.

If you open the pegs4dat file that you specified in the orthovoltage config, look for the AIR medium (search for MEDIUM=AIR), and replace both MEDIUM and STERNCID values with AIR512ICRU.

As Kyle said, EGSnrc comes with pegs data that use high energy cut offs (ECUT and PCUT) that do not work for lower energies such as that of orthovoltage. So you need to create your pegs based on the materials of your simulation and photon energies. Refer to egs manual pirs 701 on how to create pegs.

Hi, I have this problem too, I just can’t seem to get the Orthovoltage system working. Here is my first error in log
“ctcreate output (last paragraph):
Input the x,y,z dimensions (cm) of the dosxyznrc voxelson one line
(min= 0.42969 x 0.42969 x 0.26953 cm)
: 0.10742 0.10742 0.25000
Dimensions in at least one direction < min allowed. Either increase
dimension(s) or go into dosxyznrc_user_macros.mortran and increase IMAX,
JMAX and/or KMAX”

I have changed these numbers as suggested by little endian but it never seems to register the change. Do I have to recompile the ctcreate data files?I tried that and was given an error, 1d etc etc… :exploding_head:

haha, if anyone can offer suggestions that be be fantastic.