thanks Darren,
Quoting d gitelman <[log in to unmask]>:
> Dear Dorothee
>
> I have not seen such an error, but it looks like the REML estimation is not
> converging. I'm not sure where the recursion error is occurring. I think it
> is probably in one of the functions called by spm_reml. In any case, here
> are some suggestions:
>
> 1) Make sure you have all the most recent spm5 updates.
> 2) Matlab 7.0.1 is pretty old and I think there were a number of problems in
> the BLAS libraries (basic linear algebra subroutines) and possibly in
> functions like inv, pinv, etc which are used by the spm5 functions. Can you
> upgrade at least to R14sp3? (Matlab 7.0.1 is R14sp1).
>
>
>> -----Original Message-----
>> From: Dorothee Callaert [mailto:[log in to unmask]]
>> Sent: Sunday, May 27, 2007 10:57 AM
>> To: [log in to unmask]
>> Subject: recursion limit reached
>>
>> Hi Darren,
>>
>> I encountered the following error when runnig SPM5 estimation
>> of the SPM.mat on some subjects:
>>
>> Error:
>> Plane 104/104, block 53/59 : ...read
>> & mask data
>> Plane 104/104, block 54/59 : ...read
>> & mask data
>> Plane 104/104, block 55/59 : ...read
>> & mask data
>> Plane 104/104, block 56/59 : ...read
>> & mask data
>> Plane 104/104, block 57/59 : ...read
>> & mask data
>> Plane 104/104, block 58/59 : ...read
>> & mask data
>> Plane 104/104, block 59/59 :
>> ...done
>> Temporal non-sphericity (over voxels) : ...REML
>> estimation
>> ReML Block - 1
>> ReML Iteration : 1
>> ...2.453313e+004
>> ReML Iteration : 2
>> ...9.915927e-001
>> ReML Iteration : 3
>> ...2.653147e-006
>> ReML Block - 2
>> ReML Iteration : 1
>> ...6.220090e+003
>> ReML Iteration : 2
>> ...1.421615e+001
>> ReML Iteration : 3
>> ...4.025630e-002
>> ReML Block - 3
>> ReML Iteration : 1
>> ...8.697162e+003
>> ReML Iteration : 2
>> ...4.169314e+001
>> ReML Iteration : 3
>> ...1.230391e-001
>> ReML Iteration : 4
>> ...1.081317e-003
>> ReML Block - 4
>> ReML Iteration : 1
>> ...2.259851e+003
>> ReML Iteration : 2
>> ...2.073955e+000
>> ReML Iteration : 3
>> ...2.153734e-002
>> ReML Block - 5
>> ReML Iteration : 1
>> ...1.753385e+005
>> ReML Iteration : 2
>> ...3.239106e+000
>> ReML Iteration : 3
>> ...4.296771e-006
>> ReML Block - 6
>> ReML Iteration : 1
>> ...3.906342e+003
>> ReML Iteration : 2
>> ...5.114446e+000
>> ReML Iteration : 3
>> ...4.154674e-003
>> ReML Block - 7
>> ReML Iteration : 1
>> ...1.446870e+004
>> ReML Iteration : 2
>> ...3.234109e+000
>> ReML Iteration : 3
>> ...1.163545e-002
>> ReML Block - 8
>> ReML Iteration : 1
>> ...1.548450e+004
>> ReML Iteration : 2
>> ...6.578408e+000
>> ReML Iteration : 3
>> ...2.214302e-002
>>
>> SPM5: spm_spm (v$Rev: 714 $) 17:24:19 -
>> 27/05/2007
>> ==============================================================
>> ==========
>> Initialising parameters :
>> ...done
>> Output
>> images :
>> ...initialisingError running job:
>> Maximum recursion limit of 500 reached. Use
>> set(0,'RecursionLimit',N) to change the limit. Be aware that
>> exceeding your available stack space can crash MATLAB and/or
>> your computer.
>> --------------------------
>> Done.
>> >>
>>
>>
>> In this case the files I'm working with are on my hard drive,
>> and I seemed to have reached nearly the end of the process.
>> Yet no files have been created. The SPM.mat is by now 11.599 Kb,
>> Q: is there a way of generating the output images now without
>> having to go through the entire estimation process again?
>> When a run estimation with images on a shared/slower drive,
>> the recursion limit is reached at about the 20th plane or
>> so, depending.
>
> Did this occur during the hyperparameter estimation? You may be ending up
> with very few voxels after the initial hyperparameter estimates.
>
>>
>> I never had problems before, always run with Matlab 7.0.1 (Windows),
>> Q: could the fact that I'm controlling my workPC from home
>> through LogMeIn be of effect?
>
> I have no idea what LogMeIn is, but unless it is consuming a lot of memory I
> doubt it.
>
>>
>> Today I also experienced a problem when realigning one
>> subject ; it gave me 'can't map image file', which also never
>> happened before.
>
> This generally means you don't have permissions in a directory, or it may
> mean there are open file handles left over from the crashed spm process.
>
>>
>> Q: Is the recursion limit in any way related to other
>> non-Matlab processes running on that computer?
>
> don't think so.
>
>> Q: Why would the recursion limit be reached sooner when I'm
>> working with images on one drive, as opposed to working with
>> images on my C:/ drive, when the Matlab installation, hence
>> stack space is identical for both?
>
> ah. this may be your problem. see this page on the mathworks site:
> http://www.mathworks.com/support/solutions/data/1-1TV6VZ.html?solution=1-1TV
> 6VZ
>
> it refers to matlab 7.1 (R14sp3) but perhaps it is also true for your
> version. Try putting all your files in directories with a shorter path name
> and see if that solves your problem.
>
> Good luck,
>
> darren
>
>
>>
>> Thanks a lot in advance,
>> and kind regards,
>>
>> Dorothee
>>
>>
>> Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
>>
>
>
>
Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm
|