Matlab crash using API functions
Posted: Fri Apr 03, 2015 10:00 am
I have a very perplexing problem I am dealing with while trying to run some Matlab Scripts using many of the OpenSim API functions. I am running forward simulations based on the DynamicWalker script using the plant functions. My script has been running fine, but then started crashing matlab after 5-6 executions of the derivatives function in the integrator. After a crash, matlab is now starting up, initializing, and running my "home function" (that executes model set-up before the integration) very slowly. The weird part is that it WILL integrate forward after a crash and when Matlab is running slowly. If I re-start my computer, Matlab will run fast again, but crash. Then I re-boot matlab, its runs slowly, but WILL run the scripts. So the pattern is, crash, re-boot, runs slow but works, re-start computer and it all repeats. This is a problem as simulations that used to take 5-6 hours now will take about 3-4 days. Errors from matlab do not mention any specific lines, but do talk about maxing out a recursion limit, and an access violation.
I am wondering if there is a problem with the communication between opensim and matlab, or a pathdef gone wrong somewhere, but I just don't know what to do about it. I have tried installing several other versions of matlab and they all behave the same way. I have also tried on other computers with similar results.
I am using opensim 3.2 and matlab 2014a,2013b, all 64 bit.
If anyone has any ideas how to troubleshoot this issue, that would be great.
Thanks,
Joe
I am wondering if there is a problem with the communication between opensim and matlab, or a pathdef gone wrong somewhere, but I just don't know what to do about it. I have tried installing several other versions of matlab and they all behave the same way. I have also tried on other computers with similar results.
I am using opensim 3.2 and matlab 2014a,2013b, all 64 bit.
If anyone has any ideas how to troubleshoot this issue, that would be great.
Thanks,
Joe