allenai / ai2thor

An open-source platform for Visual AI.
http://ai2thor.allenai.org
Apache License 2.0
1.09k stars 210 forks source link

Program stuck when new a Controller() #1182

Open qymao opened 5 months ago

qymao commented 5 months ago

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 commented 5 months ago

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

controller = Controller( commit_id="bad5bc2b250615cb766ffb45d455c211329af17e" ) `

Ref:

https://github.com/allenai/allenact/issues/346#issuecomment-1118171423