Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python crashes with no error when running env.reset() #228

Open
samstar197 opened this issue Nov 11, 2020 · 9 comments
Open

python crashes with no error when running env.reset() #228

samstar197 opened this issue Nov 11, 2020 · 9 comments

Comments

@samstar197
Copy link

samstar197 commented Nov 11, 2020

I am working on trying to implement the L2M2019 challenge, and I have an issue where, if I try to run

from osim.env import L2M2019Env

env = L2M2019Env(visualize=True)
observation = env.reset()
for i in range(200):
    observation, reward, done, info = env.step(env.action_space.sample())

then python terminal/jupyter kernel or whatever I use just closes/dies with no error being shown.

I found a similar problem here
except the solution doesn't seem to change anything for me.

That issue has been marked as closed however the issue still persists for me, any help is massively appreciated.

(I am very new to opensim so if this is a simple thing to fix or something then I apologise)

@kidzik
Copy link
Member

kidzik commented Nov 11, 2020

Does it work properly with visualize=False?
Which system are you using?

@samstar197
Copy link
Author

@kidzik thanks for the quick reply, it doesnt work with visualize=False.

I am on Windows 10

@samstar197
Copy link
Author

@kidzik I have more insight into what is going on but I don't know how to solve it. when running in powershell I can see that i get an Intel MKL ERROR.
Intel MKL ERROR: Parameter 1 was incorrect on entry to CPTEQR.
This error occurs whether or not i have visualize as true or false.

Any understand as to what this could be? thanks!

@kidzik
Copy link
Member

kidzik commented Feb 5, 2021

Have you tried compiling from the source? Alternatively maybe running within a docker container could help since the linux version is better maintained

@SoroushK93
Copy link

@samstar197 could you solve this problem?

@zupatisc
Copy link

zupatisc commented Sep 7, 2022

I think I am experiencing the same issue.
Going through it step by step it seems that both the call to model.equilibrateMuscles(state) as well as manager.initialize(state) are what crashes the jupyter kernel for me.

@SoroushK93
Copy link

I'm using VSC not Jupiter. I remember the problem was a version conflict. I'm using Python 3.6.2 for L2M2019Env env, and it is working fine now.

@zupatisc
Copy link

zupatisc commented Sep 7, 2022

The crash seems to happen inside one of the c functions from opensim. I will give a rebuild a try.

@zupatisc
Copy link

zupatisc commented Sep 8, 2022

Turns out this was some issue with the Intel MLK for me.
This solution fixed the problem for me alumae/kaldi-gstreamer-server#251 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants