Operating system: Mac M1Pro macOS 12.3.1
Slicer version: 4.13.0-2022-04-12 (also tested on 2022-04-04)
Expected behaviour: Load DICOM segmentation
Actual behaviour: Unable to load - error message
I’m trying to load a DICOM segmentation. I looked through other similar posts, but they didn’t help me.
Unfortunately I cannot share the file. I think the main error is this but I couldn’t figure out what to do next:
Convert DICOM Segmentation Image into ITK image(s) standard error:
E: No conversion from RLE Lossless to uncompressed transfer syntax possible!
Here is the entire error log (with detailed logging for DICOM enabled):
Examine for import using DICOMEnhancedUSVolumePlugin
Examine for import using DICOMGeAbusPlugin
Examine for import using DICOMImageSequencePlugin
Examine for import using DICOMPETSUVPlugin
Examine for import using DICOMParametricMapPlugin
DICOMParametricMapPluginClass : Using cached files
DICOMParametricMapPluginClass : Using cached files
Examine for import using DICOMRWVMPlugin
Examine for import using DICOMScalarVolumePlugin
Examine for import using DICOMSegmentationPlugin
DICOMSegmentationPluginClass : Using cached files
Examine for import using DICOMSlicerDataBundlePlugin
Examine for import using DICOMTID1500Plugin
DICOMTID1500PluginClass : Using cached files
DICOMTID1500PluginClass : Using cached files
Examine for import using DICOMVolumeSequencePlugin
Examine for import using Dcm2niixPlugin
['/Applications/Slicer.app/Contents/Extensions-30779/SlicerDcm2nii/lib/Slicer-4.13/qt-scripted-modules/Resources/bin/dcm2niix', '-n', '-1', '-s', 'y', '-f', '%p_%t_%s', '-i', 'y', '-o', '/private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp0cbs01az', '/private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp0cbs01az/input-dicom-files.txt']
Error: Compressed image stored as 38 fragments: decompress with gdcmconv, Osirix, dcmdjpeg or dcmjp2k /Users/fryderykkogl/Data/DICOM from Brainlab/find_seg/34099514/52880560
Chris Rorden's dcm2niiX version v1.0.20220412 (JP2:OpenJPEG) (JP-LS:CharLS) Clang10.0.0 x86-64 (64-bit MacOS)
Found 1 files in '/private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp0cbs01az/input-dicom-files.txt'
Found 1 DICOM file(s)
Image Decompression is new: please validate conversions
No valid DICOM images were found
DICOM Plugin failed: 'CalledProcessError' object has no attribute 'message'
Traceback (most recent call last):
File "/Applications/Slicer.app/Contents/Extensions-30779/SlicerDcm2nii/lib/Slicer-4.13/qt-scripted-modules/Dcm2niixPlugin.py", line 119, in examineFiles
raise CalledProcessError(retcode, proc.args, output=proc.stdout, stderr=proc.stderr)
subprocess.CalledProcessError: Command '['/Applications/Slicer.app/Contents/Extensions-30779/SlicerDcm2nii/lib/Slicer-4.13/qt-scripted-modules/Resources/bin/dcm2niix', '-n', '-1', '-s', 'y', '-f', '%p_%t_%s', '-i', 'y', '-o', '/private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp0cbs01az', '/private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp0cbs01az/input-dicom-files.txt']' returned non-zero exit status 2.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Applications/Slicer.app/Contents/lib/Slicer-4.13/qt-scripted-modules/DICOMLib/DICOMUtils.py", line 748, in getLoadablesFromFileLists
loadablesByPlugin[plugin] = plugin.examine(fileLists)
File "/Applications/Slicer.app/Contents/Extensions-30779/SlicerDcm2nii/lib/Slicer-4.13/qt-scripted-modules/Dcm2niixPlugin.py", line 29, in examine
loadables += self.examineFiles(files)
File "/Applications/Slicer.app/Contents/Extensions-30779/SlicerDcm2nii/lib/Slicer-4.13/qt-scripted-modules/Dcm2niixPlugin.py", line 121, in examineFiles
logging.debug("Failed to examine files using dcm2niix: {0}".format(e.message))
AttributeError: 'CalledProcessError' object has no attribute 'message'
DICOM Plugin failed: 'CalledProcessError' object has no attribute 'message'
Examine for import using DicomRtImportExportPlugin
Examine for import using DicomSroImportExportPlugin
Examine for import using MultiVolumeImporterPlugin
MultiVolumeImporterPlugin: examine
MultiVolumeImporterPlugin: found 0 multivolumes!
MultiVolumeImporterPlugin: examineMultiseries
MultiVolumeImporterPlugin: found 0 multivolumes!
MultiVolumeImporterPlugin: found 0 loadables in 1 files in 0.0sec.
Examine for import using DICOMEnhancedUSVolumePlugin
Examine for import using DICOMGeAbusPlugin
Examine for import using DICOMImageSequencePlugin
Only one or few different trigger times found ({''}) - assuming this series is not a cine MRI
Examine for import using DICOMPETSUVPlugin
Examine for import using DICOMParametricMapPlugin
DICOMParametricMapPluginClass : Using cached files
DICOMParametricMapPluginClass : Using cached files
Examine for import using DICOMRWVMPlugin
Examine for import using DICOMScalarVolumePlugin
Examine for import using DICOMSegmentationPlugin
DICOMSegmentationPluginClass : Using cached files
DICOMSegmentationPluginClass : Using cached files
Examine for import using DICOMSlicerDataBundlePlugin
Examine for import using DICOMTID1500Plugin
DICOMTID1500PluginClass : Using cached files
DICOMTID1500PluginClass : Using cached files
Examine for import using DICOMVolumeSequencePlugin
Examine for import using Dcm2niixPlugin
['/Applications/Slicer.app/Contents/Extensions-30779/SlicerDcm2nii/lib/Slicer-4.13/qt-scripted-modules/Resources/bin/dcm2niix', '-n', '-1', '-s', 'y', '-f', '%p_%t_%s', '-i', 'y', '-o', '/private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp1o_j9tu0', '/private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp1o_j9tu0/input-dicom-files.txt']
Chris Rorden's dcm2niiX version v1.0.20220412 (JP2:OpenJPEG) (JP-LS:CharLS) Clang10.0.0 x86-64 (64-bit MacOS)
Found 192 files in '/private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp1o_j9tu0/input-dicom-files.txt'
Found 192 DICOM file(s)
Image Decompression is new: please validate conversions
1565661178 /private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/tmp1o_j9tu0/3D_AX_T1_Nav_20181204111057_18
/Users/fryderykkogl/Data/DICOM from Brainlab/find_seg/34099514/26278310
Conversion required 0.891678 seconds (0.891671 for core code).
Examine for import using DicomRtImportExportPlugin
Examine for import using DicomSroImportExportPlugin
Examine for import using MultiVolumeImporterPlugin
MultiVolumeImporterPlugin: examine
MultiVolumeImporterPlugin: found 1 multivolumes!
MultiVolumeImporterPlugin: examineMultiseries
MultiVolumeImporterPlugin: found 0 multivolumes!
MultiVolumeImporterPlugin: found 0 loadables in 192 files in 0.1sec.
DICOM SEG load()
in load(): uid = 1.2.276.0.20.1.4.35.923849970726.192.1544626175.288056.0
SEG2NRRD did not complete successfully, unable to load DICOM Segmentation
Cleaning up temporarily created directory /private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/QIICR/SEG/2022-04-13_152424/1.2.276.0.20.1.4.35.923849970726.192.1544626175.288056.0
Could not load: Objects as a DICOMSegmentation
Found CommandLine Module, target is /Applications/Slicer.app/Contents/Extensions-30779/DCMQI/lib/Slicer-4.13/cli-modules/segimage2itkimage
ModuleType: CommandLineModule
Convert DICOM Segmentation Image into ITK image(s) command line:
/Applications/Slicer.app/Contents/Extensions-30779/DCMQI/lib/Slicer-4.13/cli-modules/segimage2itkimage --inputDICOM /Users/fryderykkogl/Data/DICOM from Brainlab/find_seg/34099514/52880560 --outputDirectory /private/var/folders/sj/w4lgym6n0qx3j46fzwdrv3x80000gn/T/Slicer-fryderykkogl/QIICR/SEG/2022-04-13_152424/1.2.276.0.20.1.4.35.923849970726.192.1544626175.288056.0 --outputType nrrd
Convert DICOM Segmentation Image into ITK image(s) standard output:
dcmqi repository URL: https://github.com/QIICR/dcmqi.git revision: a3c9e4a tag: latest
Convert DICOM Segmentation Image into ITK image(s) standard error:
E: No conversion from RLE Lossless to uncompressed transfer syntax possible!
ERROR: Failed to load segmentation dataset! Cannot decompress
Fatal error encountered.
Convert DICOM Segmentation Image into ITK image(s) completed with errors
SEG2NRRD did not complete successfully, unable to load DICOM Segmentation
Could not load: Objects as a DICOMSegmentation```