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

TimeouError when opening or closing Blinds in iTHOR #1213

Open
Kajiih opened this issue Apr 30, 2024 · 0 comments
Open

TimeouError when opening or closing Blinds in iTHOR #1213

Kajiih opened this issue Apr 30, 2024 · 0 comments
Assignees

Comments

@Kajiih
Copy link

Kajiih commented Apr 30, 2024

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.

@winthos winthos self-assigned this Apr 30, 2024
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

2 participants