import error in DICOM module

Problem report for Slicer 4.10.2 win-amd64: [please describe expected and actual behavior]
Getting
0 New Patients, 0 New Studies
please help…here is my log files
thank you

As a first step, why not see if dcm2niix can handle these images.

  1. Choose View/ExtensionManager menu
  2. In “Install Extensions” tab, search for “Dcm2nii” - select the “SlicerDcm2nii” extension and install it.
  3. Now in the main Slicer window you can show “All modules” and select “Dcm2niixGUI”. This will allow you to select the input directory.

It is showing error.Here is the error log…
log

[INFO][Stream] 21.09.2019 15:38:33 [] (unknown:0) - ('running: ‘, [u’C:/Users/abhis/AppData/Roaming/NA-MIC/Extensions-28257/SlicerDcm2nii/lib/Slicer-4.10/qt-scripted-modules\\Resources\\bin\\dcm2niix’, ‘-1’, ‘-d’, ‘0’, ‘-f’, ‘tmpfxalef’, ‘-o’, ‘C:/Users/abhis/AppData/Local/Temp/Slicer/__SlicerTemp__’, ‘-e’, ‘y’, ‘-z’, ‘y’, ‘F:/rahuldce/DCEMRISERIES’])

[CRITICAL][Stream] 21.09.2019 15:38:33 [] (unknown:0) - Command ‘[u’C:/Users/abhis/AppData/Roaming/NA-MIC/Extensions-28257/SlicerDcm2nii/lib/Slicer-4.10/qt-scripted-modules\\Resources\\bin\\dcm2niix’, ‘-1’, ‘-d’, ‘0’, ‘-f’, ‘tmpfxalef’, ‘-o’, ‘C:/Users/abhis/AppData/Local/Temp/Slicer/__SlicerTemp__’, ‘-e’, ‘y’, ‘-z’, ‘y’, ‘F:/rahuldce/DCEMRISERIES’]’ returned non-zero exit status 2

@ljod do you have any thoughts on this? Has the SlicerDcm2nii extension been tested on Windows? Just looking at the output it looks like @rahulba is using Windows, and the output shows “\” and “/” where I would expect Windows to use just “”. I am not very familiar with Windows, but I wonder if this is causing issues.

@rahulba :

  1. are you able to share a sample dataset via box, dropbox or google drive?
  2. Do you have access to a MacOS or Linux computer to see if your issue is specific with Windows?

@rahulba did you try the suggestions in the FAQ?

https://www.slicer.org/wiki/Documentation/Nightly/FAQ/DICOM

Yes, it should work well on windows. [quote=“Chris_Rorden, post:4, topic:8511”]
output shows “\” and “/” where I would expect Windows to use just “”
[/quote]

Multi-platform applications usually don’t have problems with mixed path separators.

Is it possible that dcm2niix returns 2 as exit status and does not print any error messages? (I’m just trying to find out if dcm2niix is started successfully or the error occurred before that)

1 Like

@lassoan - good catch, Exit code 2 reports that no valid files were found. However, no error is reported as the client asked for zero search depth. In this case, the exit code is explicit that no files are found, and therefore dcm2niix does not see the need to report an error. A quirk of dcm2niix generates a text error to the console when search depth is greater than zero but not when it is zero. The rationale is that with search depth 0 the calling software is explicitly requesting one folder, and might be calling multiple instances of dcm2niix to convert different folders in parallel and asynchronously. The default behavior of dcm2niix is -d 5, which will search the specified folder and children 5 folders deep. This is useful if the user selects a parent DICOMDIR, or if a single series are spread across multiple child folders (e.g. some vendors limit a folder to 1000 2D DICOM images, so DWI and fMRI series are often stored in multiple folders). I can understand the Slicer developers may prefer to explicitly search only one folder, but they may want to provide some logic for the case where the user is intentionally selecting a root DICOM folder.

The source code is:

if (opts->dirSearchDepth > 0)
            	printError("Unable to find any DICOM images in %s (or subfolders %d deep)\n", indir, opts->dirSearchDepth);
            else //keep silent for dirSearchDepth = 0 - presumably searching multiple folders
            	{};

the dcm2niix error codes are:

EXIT_SUCCESS 0
EXIT_FAILURE 1 (GENERAL TYPE)
EXIT_NO_VALID_FILES_FOUND  2
EXIT_REPORT_VERSION  3
EXIT_CORRUPT_FILE_FOUND  4

However, it is unclear whether there are in fact no valid files in that folder or whether the folder is not being specified correctly.

@rahulba can you try running dcm2niix from the Windows command line: dcm2niix F:/rahuldce/DCEMRISERIES and tell us what error is reported? Are the DICOM files directly in this folder, or does this folder have a DICOMDIR with the actual DICOMs buried in a sub-folder?

yes i have read that and tried many things from that, nothing helped…thanks

i will share my data by google drive, please share your email…

My last name at sc.edu

You can also send private messages through discourse (click on the user’s name then in the displayed popup window click the message icon).