Skip to content

DWIConvert gets segmentation fault when converting Nrrd image to Nifti image #370

@gbuntu127

Description

@gbuntu127

I am trying to convert a DTIPrep's output back to Nifti format, and the DWIConvert tool threw a segmentation fault error.

Here are details:

  1. Convert original Nifti to Nrrd, DTIPrep only supports Nrrd. This step is successful.
DWIConvert \
    --inputVolume dwi.nii \
    --inputBVectors bvec.txt \
    --inputBValues bval.txt \
    --conversionMode FSLToNrrd \
    -o dwi.nrrd
  1. I tested DTIPrep for quality check with the following command. This step is successful.
DTIPrep \
    --echo \
    --check \
    --default \
    --xmlProtocol test.xml \
    --DWINrrdFile dwi.nrrd
  1. convert the output (Nrrd format) of DTIPrep back to Nifty format.
DWIConvert \
    --allowLossyConversion \
    --inputVolume dwi_QCed.nrrd \
    --outputVolume dwi_QCed.nii.gz \
    --outputBVectors dwi_QCed.bvec \
    --outputBValues dwi_QCed.bval \
    --conversionMode NrrdToFSL

The output of DTIPrep has "unsigned short", "allowLossyConversion" option is added. The error is:

======= DWI Convert Public Lib Ctest =========
INPUT VOLUME: dwi_QCed.nrrd
Segmentation fault

Some information:

$ Slicer --version
4.8.1

$ DWIConvert --version
DWIConvert  version: 4.8.0

$ uname -mrsn
Linux 2.6.32-696.18.7.el6.x86_64 x86_64

I upload the problematic nrrd file here. Please help check it. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions