allenai / ai2thor

An open-source platform for Visual AI.

Home Page:http://ai2thor.allenai.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Program stuck when new a Controller()

qymao opened this issue · comments

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?

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)