Hi Danilo,<div><br></div><div>Sounds to me like your diffusion encoding file is causing trouble. Given your strace output, it looks like the values in the first line of that file are separated by tabs ('\t'), with rows delimited by carriage returns ('\r'). The tabs shouldn't be a problem, but using carriage returns for newlines is unusual. Try replacing these by standard Unix line feeds ('\n'), or DOS-style newline sequences (carriage return + line feed, '\r\n'). </div>
<div><br></div><div>Hope that sorts out the problem...</div><div>Cheers,</div><div><br></div><div>Donald.</div><div><br></div><div><br><div class="gmail_quote">On 15 December 2011 02:19, Danilo Scelfo <span dir="ltr"><<a href="mailto:dscelfo@inpe.unipi.it">dscelfo@inpe.unipi.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Donald, hi everyone,<br>
<br>
I'm running a standard DTI-based tractography on a few subjects but I'm<br>
getting a segmentation fault error with streamtrack. The same command,<br>
however, is correctly running on other subjects.<br>
Below is the output of the command run a) with gdb and the -debug option<br>
and b) with the strace command, but I'm not able to see the cause of the<br>
error.<br>
<br>
Could you give me some hints on how to solve this issue?<br>
If needed, I'm running mrtrix-0.2.1 on a Ubuntu 10.04 64bit VM on a Mac<br>
10.6.5 host machine.<br>
<br>
Thanks in advance.<br>
<br>
Danilo<br>
<br>
<br>
subject/procdata/DWI/MRtrix$ gdb --args streamtrack DT_STREAM DWIecc.nii<br>
-grad /path/to/encoding30dir.b1000.v9.0.txt -number 10000 -seed<br>
nodif_brain_mask.nii -debug tract_DT.tck<br>
<br>
GNU gdb (GDB) 7.1-ubuntu<br>
Copyright (C) 2010 Free Software Foundation, Inc.<br>
License GPLv3+: GNU GPL version 3 or later <<a href="http://gnu.org/licenses/gpl.html" target="_blank">http://gnu.org/licenses/gpl.html</a>><br>
This is free software: you are free to change and redistribute it.<br>
There is NO WARRANTY, to the extent permitted by law. Type "show copying"<br>
and "show warranty" for details.<br>
This GDB was configured as "x86_64-linux-gnu".<br>
For bug reporting instructions, please see:<br>
<<a href="http://www.gnu.org/software/gdb/bugs/" target="_blank">http://www.gnu.org/software/gdb/bugs/</a>>...<br>
Reading symbols from /usr/local/mysofts/mrtrix/bin/streamtrack...(no<br>
debugging symbols found)...done.<br>
(gdb) run<br>
Starting program: /usr/local/mysofts/mrtrix/bin/streamtrack DT_STREAM<br>
DWIecc.nii -grad /path/to/encoding30dir.b1000.v16.0.txt -number 10000<br>
-seed nodif_brain_mask.nii -debug tract_DT.tck<br>
[Thread debugging using libthread_db enabled]<br>
streamtrack [DEBUG]: reading key/value file "/home/dscelfo/.mrtrix.conf"...<br>
streamtrack [INFO]: opening image "DWIecc.nii"...<br>
streamtrack [DEBUG]: preparing file "./DWIecc.nii"<br>
streamtrack [DEBUG]: file "./DWIecc.nii" mapped at 0x7ffff3da5000, size<br>
14681952 (read-only)<br>
streamtrack [DEBUG]: sanitising transformation matrix...<br>
streamtrack [DEBUG]: unmapping file "./DWIecc.nii"<br>
streamtrack [DEBUG]: setting up image "DWIecc.nii"...<br>
streamtrack [DEBUG]: sanitising transformation matrix...<br>
streamtrack [DEBUG]: setting up data increments for "DWIecc.nii"...<br>
streamtrack [DEBUG]: data increments initialised with start = 79, stride =<br>
[ -1 80 6400 236800 ]<br>
streamtrack [INFO]: error parsing spherical ROI specification<br>
"nodif_brain_mask.nii" - assuming mask image<br>
<br>
Program received signal SIGSEGV, Segmentation fault.<br>
0x00007ffff7ba88cc in MR::Math::Matrix::load(std::string const&) () from<br>
/usr/local/mysofts/mrtrix/lib/libmrtrix-0_2_9.so<br>
(gdb) ^CQuit<br>
(gdb)<br>
<br>
<br>
subject/procdata/DWI/MRtrix$ strace streamtrack DT_STREAM DWIecc.nii -grad<br>
/path/to/encoding30dir.b1000.v9.0.txt -number 10000 -seed<br>
nodif_brain_mask.nii -debug tract_DT.tck<br>
<br>
futex(0x7fd88e750190, FUTEX_WAKE_PRIVATE, 2147483647) = 0<br>
write(2, "streamtrack", 11streamtrack) = 11<br>
write(2, " [INFO]: ", 9 [INFO]: ) = 9<br>
write(2, "error parsing spherical ROI spec"..., 86error parsing spherical<br>
ROI specification "nodif_brain_mask.nii" - assuming mask image) = 86<br>
write(2, "\n", 1<br>
) = 1<br>
open("/mnt/nas-rm/data/diffusione/GRADIENTS/MRtrix/encoding30dir.b1000.v16.0.txt",<br>
O_RDONLY) = 3<br>
read(3, "0\t0\t0\t0\r1.000000 0.000000 0.0000"..., 8191) = 1008<br>
read(3, "", 8191) = 0<br>
--- SIGSEGV (Segmentation fault) @ 0 (0) ---<br>
+++ killed by SIGSEGV +++<br>
Segmentation fault<br>
<span class="HOEnZb"><font color="#888888"><br>
<br>
--<br>
Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate. La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate e punite ai sensi del D. Lgs. 196/2003 e s.m. Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne comunicazione al mittente e di provvedere alla sua distruzione, Grazie.<br>
<br>
This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only. Dissemination, copying, printing or use by anybody else is unauthorised. If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail, Thanks.<br>
--<br>
_______________________________________________<br>
Mrtrix-discussion mailing list<br>
<a href="mailto:Mrtrix-discussion@www.nitrc.org">Mrtrix-discussion@www.nitrc.org</a><br>
<a href="http://www.nitrc.org/mailman/listinfo/mrtrix-discussion" target="_blank">http://www.nitrc.org/mailman/listinfo/mrtrix-discussion</a><br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br>Jacques-Donald Tournier (PhD)<br>Brain Research Institute, Melbourne, Australia<br>Tel: +61 (0)3 9035 7033<br>
</div>