The stats.maxmem setting won't have any effect here, as it only
determines how much data is read at a time when doing the stats. I
think you may simply be reaching the limit of how much a 32 bit
computer can hold in memory at once for one process. This is only
(2^32-1)/1024^2 Mbytes, so once you have a few deformation fields and
stuff in memory, then this is easily reached. 64 bit computers don't
have this limit.
I'm pretty sure that much of your image is not actually brain, so
maybe you could crop the data to make the file a bit smaller.
Best regards,
-John
On 10 February 2011 11:14, Pettersson-Yeo, William
<[log in to unmask]> wrote:
> Dear SPMers,
> I use a MacBookPro with a 4GB hard drive and 2.53 GHz processor.
> When I try and run the 'New Segment' function in SPM8, I get the 'Out of
> Memory' error message detailed below.
> The structural files I'm trying to segment are approx. 80mb (bigger than
> what I usually work with)
> I have tried re-installing spm8, and have also tried changing
> the defaults.stats.maxmem = 2^26 to 2^31 but without success.
> Can anyone help?
> Many thanks
> William
> (Dept.of Psychosis, Institute of Psychiatry, KCL)
>
> ERROR MESSAGE:
> ------------------------------------------------------------------------
> Running job #1
> ------------------------------------------------------------------------
> Running 'New Segment'
> Failed 'New Segment'
> Error using ==> unknown
> Out of memory. Type HELP MEMORY for your options.
> In file
> "/Users/williampettersson-yeo/Documents/spm8/toolbox/Seg/spm_preproc_write8.m"
> (v3172), function "affind" at line 428.
> In file
> "/Users/williampettersson-yeo/Documents/spm8/toolbox/Seg/spm_preproc_write8.m"
> (v3172), function "spm_preproc_write8" at line 241.
> In file
> "/Users/williampettersson-yeo/Documents/spm8/toolbox/Seg/spm_preproc_run.m"
> (v3859), function "run_job" at line 112.
> In file
> "/Users/williampettersson-yeo/Documents/spm8/toolbox/Seg/spm_preproc_run.m"
> (v3859), function "spm_preproc_run" at line 27.
> In file
> "/Users/williampettersson-yeo/Documents/spm8/toolbox/Seg/tbx_cfg_preproc8.m"
> (v3910), function "spm_local_preproc_run" at line 353.
> The following modules did not run:
> Failed: New Segment
> ??? Error using ==> spm_input at 1470
> Input object cleared whilst waiting for response: Bailing out!
> Error in ==> spm_dcm_ui at 88
> selected = spm_input(str,1,'m',Actions);
> ??? Error using ==> spm_dcm_ui;
> Error using ==> spm_input at 1470
> Input object cleared whilst waiting for response: Bailing out!
> ??? Error while evaluating uicontrol Callback
>
|