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

Hanging Manager or worker #208

Open
deepdad opened this issue Jul 15, 2021 · 0 comments
Open

Hanging Manager or worker #208

deepdad opened this issue Jul 15, 2021 · 0 comments

Comments

@deepdad
Copy link

deepdad commented Jul 15, 2021

Hi Adam, when both the manager and the worker seem to just be staring each other down, nothing much will happen.

I have cobbled together a main program here using CpuSampler: https://github.com/deepdad/SharedWorldModels/blob/parallel/dreamer-pytorch/main_parallel.py

This ties together a number of ideas, but where it hangs is in RLPyt. That doesn't mean that RLPyt is to blame, but I'm stuck as well.

In rlpyt/samplers/buffer.py, line 17, I change

if subprocess:

to

if False:

because the code in that block hangs on mp.Manager(). I guess the manager starts to wait for worker threads to send (sampled) data to it, but they never send anything.
We use RLBench, which is a set of CoppeliaSim tasks.
With the above commented out, sampling_process in rlpyt/samplers/parallel/worker.py gets called but it hangs on line 50 envs = [c.EnvCls(**c.env_kwargs) for _ in range(w.n_envs)]

I can run it with headless=False. I see the robot make one action and then nothing happens.

It's difficult to debug. I would be nice if I could get you to log in to our Gcloud machine over vnc where PyCharm is running.

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

1 participant