Back to the main page.
Bug 1799 - ft_prepare_leadfield fails due to infinite loop in
Status | CLOSED FIXED |
Reported | 2012-10-30 14:09:00 +0100 |
Modified | 2019-08-10 11:55:35 +0200 |
Product: | FieldTrip |
Component: | forward |
Version: | unspecified |
Hardware: | PC |
Operating System: | Linux |
Importance: | P1 blocker |
Assigned to: | |
URL: | |
Tags: | |
Depends on: | |
Blocks: | |
See also: |
Giorgos Michalareas - 2012-10-30 14:09:17 +0100
Created attachment 357 mat file with the cfg I have used in ft_prepare_leadfield I tried to compute the leadfield with the latest version of FT (fieldtrip-20121029.zip) for a grid comprising of a single location. When I run ft_prepare_leadfield I get the following error %-------------------------------------------------- ??? 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. Error in ==> ft_datatype_headmodel %------------------------------------------------ From a quick look it seems that the code is trapped in an infinite loop in line 132 of ft_datatype_headmodel where it calls ft_voltype which in line 59 calls ft_datatype_headmodel, which then calls ft_voltype which then calls ft_datatype_headmodel which then calls ft_voltype which then calls ft_datatype_headmodel .......................... Please find attached a mat file with the cfg I have used in ft_prepare_leadfield. %=== Example Code to reproduce error ================= % Add fieldtrip-20121029 in the path ft_defaults; load bugloopcfg cfg; gridLF= ft_prepare_leadfield(cfg); %=====================================================
Jan-Mathijs Schoffelen - 2012-10-30 14:16:05 +0100
see bug 1798. thanks for the script. *** This bug has been marked as a duplicate of bug 1798 ***
Jan-Mathijs Schoffelen - 2012-10-30 14:18:10 +0100
Hmmm, seems to run fine on my fieldtrip version, trying the release version now.
Jan-Mathijs Schoffelen - 2012-10-30 14:20:07 +0100
release version of ft works as well...
Jan-Mathijs Schoffelen - 2012-10-30 14:24:10 +0100
Fixed by Robert yesterday (i.e. 29-Oct late in the evening).
Robert Oostenveld - 2019-08-10 11:51:38 +0200
This closes a whole series of bugs that have been resolved (either FIXED/WONTFIX/INVALID) for quite some time. If you disagree, please file a new issue describing the issue on https://github.com/fieldtrip/fieldtrip/issues.