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

TimeouError when opening or closing Blinds in iTHOR

Kajiih opened this issue · comments

Hi,
As the title says, I'm getting TimeoutErrors when interacting with Blinds in iTHOR scenes.
I have tested several scenes among Bedroom and Kitchen, and all fo them produced this error.

Here's a very simple script to reproduce the error:

from ai2thor.controller import Controller
controller = Controller()
controller.reset("FloorPlan15")

controller.step(
    "OpenObject",
    objectId="Blinds|-01.41|+02.09|-00.30",
    forceAction=True,
)

You should get this:

Traceback (most recent call last):
  File "/Users/bob/anaconda3/envs/ithor_issue/lib/python3.12/site-packages/ai2thor/controller.py", line 979, in step
    self.last_event = self.server.receive()
                      ^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bob/anaconda3/envs/ithor_issue/lib/python3.12/site-packages/ai2thor/fifo_server.py", line 229, in receive
    metadata, files = self._recv_message(
                      ^^^^^^^^^^^^^^^^^^^
  File "/Users/bob/anaconda3/envs/ithor_issue/lib/python3.12/site-packages/ai2thor/fifo_server.py", line 145, in _recv_message
    header = self._read_with_timeout(
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/bob/anaconda3/envs/ithor_issue/lib/python3.12/site-packages/ai2thor/fifo_server.py", line 134, in _read_with_timeout
    raise TimeoutError(f"Reading from AI2-THOR backend timed out (using {timeout}s) timeout.")
TimeoutError: Reading from AI2-THOR backend timed out (using 100.0s) timeout.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/bob/ithor_test/bug_script.py", line 6, in <module>
    controller.step(
  File "/Users/bob/anaconda3/envs/ithor_issue/lib/python3.12/site-packages/ai2thor/controller.py", line 997, in step
    raise (TimeoutError if isinstance(e, TimeoutError) else RuntimeError)(
TimeoutError: Error encountered when running action {'action': 'OpenObject', 'objectId': 'Blinds|-01.41|+02.09|-00.30', 'forceAction': True, 'sequenceId': 2} in scene FloorPlan15_physics.

For reference, I'm using ai2thor 5.0.0 and python 3.12.

I got the same error when opening or closing ShowerCurtain in FloorPlan415