I'm facing an error message when running melodic on a group of functional images (from a few subjects). Each 4D file (for each subject) contains 94 volumes which are normalized to the MNI template prior to running melodic. The following error seems to be happening when reading the second file on the list (corresponding to second subject):
Reading data file ./.../functional4D ... done
Removing mean image ...terminate called after throwing an instance of 'std::bad_alloc'
Abort (core dumped)
20.913u 2.460s 0:24.45 95.5% 0+0k 68544+240io 30pf+0w
Looking at the forum it appears to be a memory issue even though my pc has 31.6 GB memory (processor: Intel® Core™ i7-3930K CPU @ 3.20GHz × 8). Melodic seems to fail for even 2 subjects and I wonder what is the source of this issue.