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

Program stuck when new a Controller() #1182

Open
qymao opened this issue Jan 26, 2024 · 1 comment
Open

Program stuck when new a Controller() #1182

qymao opened this issue Jan 26, 2024 · 1 comment

Comments

@qymao
Copy link

qymao commented Jan 26, 2024

when I run
from ai2thor.controller import Controller controller = Controller()
the program got stuck and when I canceled it, it always stopped at:
File "test.py", line 85, in main controller = Controller() File "/root/anaconda3/envs/savn/lib/python3.7/site-packages/ai2thor/controller.py", line 476, in __init__ host=host, File "/root/anaconda3/envs/savn/lib/python3.7/site-packages/ai2thor/controller.py", line 1237, in start self.last_event = self.server.receive() File "/root/anaconda3/envs/savn/lib/python3.7/site-packages/ai2thor/fifo_server.py", line 179, in receive metadata, files = self._recv_message() File "/root/anaconda3/envs/savn/lib/python3.7/site-packages/ai2thor/fifo_server.py", line 103, in _recv_message self.server_pipe = open(self.server_pipe_path, "rb") KeyboardInterrupt
I tested on ai2thor3.3.4 and the latest 5.0, it all got the same problem, could anyone please help?

@qymao
Copy link
Author

qymao commented Jan 26, 2024

here is a workaround:
solve the stuck problem by specifying the commit id:
`
from ai2thor.controller import Controller

controller = Controller(
commit_id="bad5bc2b250615cb766ffb45d455c211329af17e"
)
`

Ref:

allenai/allenact#346 (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

1 participant