Page 1 of 1

Visualizer and OpenSim 4.4 issue

Posted: Mon Aug 08, 2022 7:17 am
by sheeba
Hi,

I downloaded OpenSim 4.4 and integrated it with Matlab. But the visualizer does not work when i say

Code: Select all

study.visualize(fullStride);
following is the error i get
Java exception occurred:
java.lang.RuntimeException: SimTK Exception thrown at VisualizerProtocol.cpp:728:
Error detected by Simbody method VisualizerProtocol: An attempt to write() 1 bytes to pipe 7 failed with errno=22 (Invalid argument).
(Required condition 'status!=-1' was not met.)


at org.opensim.modeling.opensimMocoJNI.MocoStudy_visualize(Native Method)

at org.opensim.modeling.MocoStudy.visualize(MocoStudy.java:281)
I dint have problem with 4.3. Also, when i load the motion in 4.4 GUI, the model's walking is discontinuous. I just now noticed that it works fine with windows on my laptop but does not work fine on my desktop

Re: Visualizer and OpenSim 4.4 issue

Posted: Mon Aug 08, 2022 8:17 am
by aymanh
Hi Sheeba,

This seems likely to be a MocoStudy/Solve issue rather than a visualizer issue. Can you solve the study in 4.4 and visualize the results in 4.3 or vice versa to help us isolate where the problem is?

Thank you,
-Ayman

Re: Visualizer and OpenSim 4.4 issue

Posted: Mon Aug 08, 2022 11:44 am
by sheeba
Hi Ayman

Problem solved. It was the issue with display adapters, which i had to install for the visualizer to work. Thank you.

Sheeba