OpenSim 4.5.1 - error when running consecutive Analyze

Provide easy-to-use, extensible software for modeling, simulating, controlling, and analyzing the neuromusculoskeletal system.
POST REPLY
User avatar
Ekaterina Stansfield
Posts: 9
Joined: Mon Jul 03, 2017 5:37 am

OpenSim 4.5.1 - error when running consecutive Analyze

Post by Ekaterina Stansfield » Tue Aug 27, 2024 11:03 am

Hello,

I am using OpenSim with Python. Previousely, I was able to run several Static Optimization analyses using the Analyze tool consecutively. It is no longer possible in the new OpenSim 4.5 Python package. When moving on to the next trial, the Kernel crashes with the following error:

"SWIG director method error. Error detected when calling 'LogSink.sinkImpl''

Is it a known problem?
Does a fix exist?

Tags:

User avatar
Ayman Habib
Posts: 2244
Joined: Fri Apr 01, 2005 12:24 pm

Re: OpenSim 4.5.1 - error when running consecutive Analyze

Post by Ayman Habib » Tue Aug 27, 2024 12:06 pm

Hi Ekaterina,

Thanks for reporting, looking at the change log nothing stands out as potential reason for this change of behavior other than possibly using a different python version/environment.
Please open an issue and provide a description of your environment (Python distribution/version, IDE if any etc.) and a short script to reproduce the problem and we'll investigate.

Is there a reason to think this is model specific or environment specific?

Thank you,
-Ayman

User avatar
Ekaterina Stansfield
Posts: 9
Joined: Mon Jul 03, 2017 5:37 am

Re: OpenSim 4.5.1 - error when running consecutive Analyze

Post by Ekaterina Stansfield » Fri Aug 30, 2024 6:53 am

Hello Ayman -- I do not seem to have the permission to open an issue. How do I get it?

Meanwhile, I tried running MocoInverse. It which crashes with

Disposing session as kernel process died ExitCode: 3221225477, Reason: Warning: intermediate_callback is disfunctional in your installation. You will only be able to use stats(). See https://github.com/casadi/casadi/wiki/e ... ptCallback to enable it.

Unfortunately, the link provided by the error message is not helpful to a non-specialist.
I created a fresh python 3.11 environment with OpenSim 4.5.1.

User avatar
Ayman Habib
Posts: 2244
Joined: Fri Apr 01, 2005 12:24 pm

Re: OpenSim 4.5.1 - error when running consecutive Analyze

Post by Ayman Habib » Fri Aug 30, 2024 9:04 am

Hi Ekaterina,

If you have the application installed, you can go to the help->Report a bug option, just make sure to describe the environment you're using and include any model/data/minimal code files necessary to reproduce.

If you're on github you can open a new issue on the repository
https://github.com/opensim-org/opensim-core/

You may need to be logged in to create the issue/bug-report.

-Ayman

POST REPLY