-
Notifications
You must be signed in to change notification settings - Fork 250
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 crashed when running "ProstheticsEnv(visualize=True)" #134
Comments
Can you please provide more details? What error are you getting? |
I got the same problem. |
Does it crash without any error? What is the output? |
ProstheticsEnv(visualize=True) still not working under windows 10. |
Hello in this year competition! :) Visualization also doesn't work on Linux, it hangs with:
I tried it 3 times, the result was the same. System info:
To setup
With |
@decoderkurt @RchalYang @recordmp3 are you using PowerShell Command Prompt? I tried on a clean windows 10 instance and everything seems to be working fine #140 |
I'm pretty sure you will be able to reproduce mine easily on for example Ubuntu 16.04 (I'm on Linux Mint, but it's similar). |
@AdamStelmaszczyk Can you please post the output of |
With gym 0.10.4 it's the same. From time to time I can see the visualization. The last lines:
are a red herring I think. I.e. this error appears on the very end, when cleaning up stuff, because it is in But something may crash before those lines (and it's not logging). Maybe it's a race condition (so sometimes it works). |
@AdamStelmaszczyk do you have any updates on this issue? Can you retrace the error or do you have a script which would allow us to reproduce it? |
I'm still facing this issue. What I do is just starting the run with visualization several times and after a couple of starts I'm getting lucky and it doesn't crash. Could automatise this starting, but not sure it's worth. I didn't try much to trace the error, I'm not sure how to proceed on that. Feels time consuming. randomrun.py from this repo reproduces it. But it works on yours Ubuntu, so I was thinking maybe I will spin AMI like we did last year, so that you can spin exactly the same one. The problem is that X forwarding must be figured out and I didn't have time to do that. |
I am facing a similar error
Any progress or workaround for this ? |
I have met this problem and I got it solved in a strange way. from osim.env import ProstheticsEnv
env = ProstheticsEnv(visualize=True)
observation = env.reset()
for i in range(200):
observation, reward, done, info = env.step(env.action_space.sample()) When I run this in C:\ (to be exact, C:\Users\username), python suddenly crashes without any traceback. However, when I run this in D:\ , everything seems ok. I don't know why this happened but maybe it can help you. |
@keavil this worked for me as well. I moved my codebase to the |
Can reproduce the problem with OpenSim 4.2-2020-09-02-8bd2ec0, python 3.7.9 from conda-forge and Windows 10. If I load a Model from my D: drive with setUseVisualizer(True), it silently crashes. Moving the model to my C: drive solves the issue. |
I have finished all steps in tutorial to set the anaconda environment. My system is windows. When running
ProstheticsEnv(visualize=True)
python will crash, although runningvisualize = False
it won't, What's wrong???The text was updated successfully, but these errors were encountered: