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

ERROR worker.py:772 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::TaskLoader.__init__() #12

Open
mamimaka opened this issue Apr 12, 2023 · 2 comments

Comments

@mamimaka
Copy link

Hi, @huy-ha

Thank you for your open source!

When I try to run python main.py --mode benchmark --tasks_path benchmark/ --load ours/ours.pth --num_processes 2 --gui, I get the follow errors. I try to fix them, but fail.

At first, the error is:

(TaskLoader pid=111640) 2023-04-12 22:54:24,948	ERROR worker.py:772 -- Exception raised in creation task: The actor died because of an error raised in its creation task, ray::TaskLoader.__init__() (pid=111640, ip=192.168.160.188)
(TaskLoader pid=111640)   File "/home/xhr/xhr/mulit_arm/decentralized-multiarm-main/environment/tasks.py", line 342, in __init__
(TaskLoader pid=111640)     assert len(self.files) > 0
(TaskLoader pid=111640) AssertionError

In the end, the error is:

Traceback (most recent call last):
  File "main.py", line 83, in <module>
    simulate(args, config)
  File "main.py", line 55, in simulate
    observations = ray.get([e.reset.remote() for e in envs])
  File "/home/xhr/anaconda3/envs/multiarm2/lib/python3.7/site-packages/ray/_private/client_mode_hook.py", line 105, in wrapper
    return func(*args, **kwargs)
  File "/home/xhr/anaconda3/envs/multiarm2/lib/python3.7/site-packages/ray/_private/worker.py", line 2380, in get
    raise value.as_instanceof_cause()
ray.exceptions.RayTaskError: ray::ParallelBenchmarkEnv.reset() (pid=111642, ip=192.168.160.188, repr=<environment.benchmarkEnv.ParallelBenchmarkEnv object at 0x7f48e1a42dd0>)
  File "/home/xhr/xhr/mulit_arm/decentralized-multiarm-main/environment/baseEnv.py", line 582, in reset
    self.setup_task()
  File "/home/xhr/xhr/mulit_arm/decentralized-multiarm-main/environment/baseEnv.py", line 617, in setup_task
    min_task_difficulty=self.min_task_difficulty)
  File "/home/xhr/xhr/mulit_arm/decentralized-multiarm-main/environment/tasks.py", line 282, in setup_next_task
    self.task_loader.get_next_task.remote())
ray.exceptions.RayActorError: The actor died because of an error raised in its creation task, ray::TaskLoader.__init__() (pid=111640, ip=192.168.160.188)
  File "/home/xhr/xhr/mulit_arm/decentralized-multiarm-main/environment/tasks.py", line 342, in __init__
    assert len(self.files) > 0
AssertionError

My conda environment is created from the provided environment.yml file. My system is ubuntu20.04.

Can you get me some suggestions? I need your help.

@GuQian-Alex
Copy link

Hello, i also meet the same problem. It seems there need some .json file for the task.

@PepsiCo1234
Copy link

PepsiCo1234 commented Jan 24, 2024

Hello friend,I'm glad to have someone to work on this with. I also encountered the same problem, could you tell me in detail how to solve it? I would appreciate it. @huy-ha @mamimaka @GuQian-Alex

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

3 participants