TractSeg icon indicating copy to clipboard operation
TractSeg copied to clipboard

zsh: segmentation fault

Open giovannividetta opened this issue 1 year ago • 2 comments

Hello, everyone!

I am trying to apply TractSeg on my diffusion MRI data. In order to understand the algorithm, I am running TractSeg on the example data provided by @wasserth in his GitHub repository. Launching on terminal TractSeg -i Diffusion.nii.gz --raw_diffusion_input, a segfault error appears as following:

Creating brain mask... Warning: An input intended to be a single 3D volume has multiple timepoints. Input will be truncated to first volume, but this functionality is deprecated and will be removed in a future release. Creating peaks (1 of 3)... Creating peaks (2 of 3)... Creating peaks (3 of 3)... Loading weights from: /Users/brainmilab/.tractseg/pretrained_weights_tract_segmentation_v3.npz Processing direction (1 of 3) zsh: segmentation fault TractSeg -i Diffusion.nii.gz --raw_diffusion_input

I looked for a solution on websites and forums, but I did not find any of relevant. I downloaded pretrained_weights_tract_segmentation_v3.npz manually from zenodo (https://zenodo.org/records/5052821) because I thought that file was corrupted when it was automatically downloaded by TractSeg. However, the segfault error persisted. I do not know if it would be a problem concerning memory access. I am using Python 3.9.13, FSL 6.0.6.2, pytorch 1.13.1, numpy 1.21.5, and MacOs 13.6.6.

Thank you for your support!

giovannividetta avatar Apr 16 '24 07:04 giovannividetta