Dear Erdem,
by setting defaults.stats.maxmem to 2^ 31, you let SPM know that you
have at least 2GB of contiguous free memory that can be used during
model estimation. This is rather optimistic on a computer with only 4GB
RAM. Reduce this number to a more realistic one and the error should
disappear.
If you are surprised your setting used to work with SPM8 and not SPM12,
that's because SPM8 implementation was capped to anyway use data from
one slice at a time maximum while this restriction has been lifted in SPM12.
Best regards,
Guillaume.
On 13/02/15 08:48, Marko Wilke wrote:
> Hello Erdem,
>
> you could of course try to do as Matlab suggests and type 'help memory'
> for your options :) Without knowing what exactly you did (how many
> images, what resolution, what kind of analysis etc.) I can only offer
> some pretty general advice: one thing to try is to actually reduce the
> maxmem setting as this determines how much data spm tries to load into
> memory in one chunk. If this is more than your physical memory can hold
> (and 4GB really is not that much anymore these days) then it may crash.
> The other usual suggestions (different machine, more RAM, other OS etc.)
> are pretty obvious but of course depend on your local contingencies.
>
> Cheers,
> Marko
>
> Erdem Pulcu Ph.D. wrote:
>> Dear SPM users,
>>
>> I have recently updated to SPM 12 to run a VBM analysis (somehow SPM 8
>> was not reliable in DARTEL normalisation). Now all of my preprocessing
>> is done perfectly accurately and my model for a between group comparison
>> runs without any problem as well. However, when I want to estimate my
>> SPM.mat file it gives the following error and I cannot fully judge
>> whether the error comes from the memory or at the violation of the
>> sphericity assumption (Although I am not sure, if this is the case, what
>> is the best way to get around that problem?) This is the error message:
>>
>> Out of memory. Type HELP MEMORY for your options.
>>
>> Error in spm_est_non_sphericity (line 141)
>>
>> Y = zeros(nScan,numel(chunk));
>>
>> Error in spm_spm (line 418)
>>
>> [xVi, am] = spm_est_non_sphericity(SPM);
>>
>> Error in spm_getSPM (line 234)
>>
>> SPM = spm_spm(SPM);
>>
>> Error in spm_results_ui (line 261)
>>
>> [SPM,xSPM] = spm_getSPM;
>>
>> Error while evaluating uicontrol Callback
>>
>>
>> In my SPM defaults, the current maximum memory is set to 2^ 31 and the
>> computer that I'm running has 4 GB RAM. Could anyone suggest what could
>> be the source of the problem and how to solve it?
>>
>>
>> Many thanks in advance,
>>
>>
>> Erdem Pulcu
>>
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|