mne_volume_source_space with --mri option: segmentation fault

Hi all,

I am trying to create a volume source space using a text file
containing the source locations. However, I get a segmentation fault
(core dumped) error if I use the mri option. The position file is in
MRI (surface RAS) coordinates as recommended by the MNE manual. Here
is an example of the error -- this kind of error occurs regardless of
what text file or MRI volume (T1/brain/brainmask etc) I give it.

hi Pavitra,

can you share the files on dropbox or something so we can have a look?
or maybe you can reproduce the problem on the MNE sample data?

Best,
Alex

hi,

I've reproduced the problem on the sample data with something like:

mne_volume_source_space --pos $SUBJECTS_DIR/$SUBJECT/bem/lmth.txt
--mri $SUBJECTS_DIR/$SUBJECT/mri/T1.mgz --src
$SUBJECTS_DIR/$SUBJECT/bem/vol_lmth-src.fif

lmth.txt is attached.

Matti would you have a look?

Alex
-------------- next part --------------
-5.0 -10.0 15.0
-6.0 -5.0 14.0
-7.0 -2.0 11.0
-8.0 -7.0 12.0
-9.0 -4.0 13.0
-4.5 -10.0 10.0

Hi,

The unfortunate answer is that the interpolator cannot be created for discrete source spaces. I changed the code to prevent such an attempt and the fixed software will be in the nightly build tomorrow.

Best,
Matti