Matlab crashes with study.visualize()

OpenSim Moco is a software toolkit to solve optimal control problems with musculoskeletal models defined in OpenSim using the direct collocation method.
POST REPLY
User avatar
Karthick Ganesan
Posts: 118
Joined: Thu Oct 10, 2013 12:11 am

Matlab crashes with study.visualize()

Post by Karthick Ganesan » Fri Jun 26, 2020 8:44 am

Hi all,
I always have this problem. When I call study.visualize(), Matlab crashes. Any suggestions?
Thanks,
Karthick.

User avatar
Aaron Fox
Posts: 271
Joined: Sun Aug 06, 2017 10:54 pm

Re: Matlab crashes with study.visualize()

Post by Aaron Fox » Sun Jun 28, 2020 5:23 pm

Hi Karthick,

I've also experienced some random Matlab crashes when running/initialising a study - but I think it's always been to do with something not working appropriately within the code. The problem is that this call kind of grabs everything in the study (I think), so it's difficult to pin-point a problem. My advice would be to find an example that doesn't crash Matlab (e.g. the Moco examples built in) - and edit these bit by bit with your own problem (e.g. change one thing at a time) to try and see when you get to the point of Matlab crashing.

I don't think anyone will be able to solve your problem or find a 'magic bullet' without any further testing - as long as you've checked off all the basic things (e.g. Moco installed right etc.).

Aaron

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Matlab crashes with study.visualize()

Post by Christopher Dembia » Mon Jun 29, 2020 11:10 am

Karthick,

I'm curious if your issue is related to Moco or to OpenSim on its own. Some OpenSim users have reported crashes with Matlab when using the visualizer. What operating system are you using?

Can you run this script https://gist.github.com/chrisdembia/ce3 ... c884a17360 (which doesn't use Moco) and report if this causes Matlab to crash?

User avatar
Ross Miller
Posts: 371
Joined: Tue Sep 22, 2009 2:02 pm

Re: Matlab crashes with study.visualize()

Post by Ross Miller » Tue Jun 30, 2020 7:54 am

I've had a small number of Matlab crashes when using Moco, maybe three or four times to date. Usually it happens in the midst of an IPOPT run. None of them have been reproducible. I have all the Matlab crash logs somewhere if they are helpful (they are Greek to me).

The visualizer will crash (but Matlab stays up) if I run an animation in it for a very long time, like several hours. This is all on a Mac.

Ross

User avatar
Christopher Dembia
Posts: 506
Joined: Fri Oct 12, 2012 4:09 pm

Re: Matlab crashes with study.visualize()

Post by Christopher Dembia » Tue Jun 30, 2020 9:43 am

Hey Ross, yes those logs would be useful!

User avatar
Karthick Ganesan
Posts: 118
Joined: Thu Oct 10, 2013 12:11 am

Re: Matlab crashes with study.visualize()

Post by Karthick Ganesan » Sat Jul 18, 2020 12:43 am

Thank you all for your suggestions.
Chris,
When I ran the 'IntroOpensimAPI.m', Matlab crashed. I am using Windows 7.
Thanks,
Karthick.

POST REPLY