# Tensor2metric - Segmentation Fault

**URL:** <https://community.mrtrix.org/t/tensor2metric-segmentation-fault/2494>\
**Category:** Uncategorized\
**Created:** [May 1, 2019, 10:04am UTC](https://community.mrtrix.org/t/tensor2metric-segmentation-fault/2494 "2019-05-01T10:04:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kierenpinto](https://community.mrtrix.org/user_avatar/community.mrtrix.org/kierenpinto/32/1801_2.png) [@kierenpinto](https://community.mrtrix.org/u/kierenpinto)\
**Post date:** [May 1, 2019, 10:04am UTC](https://community.mrtrix.org/t/tensor2metric-segmentation-fault/2494/1 "2019-05-01T10:04:24Z")

</div>

Hi,  
I am using Ubuntu 16.04 and am trying to run the tensor2metric command. However, it is giving me a segmentation fault. I have pulled and built the most up to date version of mrtrix3 from GitHub. This is the error I get:

 ![image](https://community.mrtrix.org/uploads/default/original/2X/a/a9d418120781ce1cc6a37e821ae3973545ce1214.png)  
Please help!  
Thanks

---

<div class="post-metadata">

**Author:** ![bjeurissen](https://community.mrtrix.org/user_avatar/community.mrtrix.org/bjeurissen/32/28_2.png) [@bjeurissen](https://community.mrtrix.org/u/bjeurissen)\
**Post date:** [May 1, 2019, 11:14am UTC](https://community.mrtrix.org/t/tensor2metric-segmentation-fault/2494/2 "2019-05-01T11:14:11Z")

</div>

I suspect `bias_correct.mif` is not a tensor file but a ‘raw’ DWI file. You can verify this by running:

```auto
mrinfo bias_correct.mif

```

If it is a tensor file, the dimensions should be i × j × k × 6. Otherwise you are probably feeding `tensor2metric` the raw DW images, which will not work (it should not produce a segmentation fault though, so if this is the case, this is something that we have to fix).

Instead what you should do is:

```auto
dwi2tensor bias_correct.mif dt.mif
tensor2metric dt.mif -fa fa.mif

```

Let us know if that works!

---

<div class="post-metadata">

**Author:** ![kierenpinto](https://community.mrtrix.org/user_avatar/community.mrtrix.org/kierenpinto/32/1801_2.png) [@kierenpinto](https://community.mrtrix.org/u/kierenpinto)\
**Post date:** [May 1, 2019, 11:37am UTC](https://community.mrtrix.org/t/tensor2metric-segmentation-fault/2494/3 "2019-05-01T11:37:03Z")

</div>

Yes that works, thanks so much. Am super new to this software, so appreciate your support!
