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

display connection Issues when trying to run training based on allenact #24

Open
OfekGlick opened this issue Oct 8, 2024 · 0 comments

Comments

@OfekGlick
Copy link

Hi!
I have tried running locally the command:
allenact manipulathor_baselines/armpointnav_baselines/experiments/ithor/ -o experiment_output -s 1

and am receiving the following error:
Process ForkServerProcess-1:1: Traceback (most recent call last): File "/home/clair02/miniconda3/envs/ithor_training/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap self.run() File "/home/clair02/miniconda3/envs/ithor_training/lib/python3.10/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "/home/clair02/miniconda3/envs/ithor_training/lib/python3.10/site-packages/allenact/algorithms/onpolicy_sync/vector_sampled_tasks.py", line 346, in _task_sampling_loop_worker sp_vector_sampled_tasks = SingleProcessVectorSampledTasks( File "/home/clair02/miniconda3/envs/ithor_training/lib/python3.10/site-packages/allenact/algorithms/onpolicy_sync/vector_sampled_tasks.py", line 897, in __init__ self._vector_task_generators: List[Generator] = self._create_generators( File "/home/clair02/miniconda3/envs/ithor_training/lib/python3.10/site-packages/allenact/algorithms/onpolicy_sync/vector_sampled_tasks.py", line 1116, in _create_generators if next(generators[-1]) != "started": File "/home/clair02/miniconda3/envs/ithor_training/lib/python3.10/site-packages/allenact/algorithms/onpolicy_sync/vector_sampled_tasks.py", line 962, in _task_sampling_loop_generator_fn current_task = task_sampler.next_task() File "/home/clair02/PycharmProjects/ithor_training/manipulathor/ithor_arm/ithor_arm_task_samplers.py", line 360, in next_task self.env = self._create_environment() File "/home/clair02/PycharmProjects/ithor_training/manipulathor/ithor_arm/ithor_arm_task_samplers.py", line 78, in _create_environment env = ManipulaTHOREnvironment( File "/home/clair02/PycharmProjects/ithor_training/manipulathor/ithor_arm/ithor_arm_environment.py", line 113, in __init__ self.start(None) File "/home/clair02/PycharmProjects/ithor_training/manipulathor/ithor_arm/ithor_arm_environment.py", line 155, in start self.controller = self.create_controller() File "/home/clair02/PycharmProjects/ithor_training/manipulathor/ithor_arm/ithor_arm_environment.py", line 130, in create_controller controller = Controller(**self.env_args, commit_id=MANIPULATHOR_COMMIT_ID) File "/home/clair02/miniconda3/envs/ithor_training/lib/python3.10/site-packages/ai2thor/controller.py", line 513, in __init__ self._build = self.find_build(local_build, commit_id, branch, platform) File "/home/clair02/miniconda3/envs/ithor_training/lib/python3.10/site-packages/ai2thor/controller.py", line 1352, in find_build raise Exception("\n".join(error_messages)) Exception: The following builds were found, but had missing dependencies. Only one valid platform is required to run AI2-THOR. Platform Linux64 failed validation with the following errors: Invalid display: :0.0. Failed to connect Can't connect to display ":0.0": [Errno 111] Connection refused Linux64 requires a X11 server to be running with GLX. The following valid displays were found :1.0, :2.0

For every process that isn't the first process.
I suspect that the first process is connecting to display :0 and then the rest of the process can't connect to the same display.
I have tried inspecting the problem but could not find a solution. Do you have any idea how this could be resolved?

Thanks for this incredible framework!

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