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

Simulator stuck while resetting the scene #1069

Open
jeje910 opened this issue Aug 30, 2022 · 3 comments
Open

Simulator stuck while resetting the scene #1069

jeje910 opened this issue Aug 30, 2022 · 3 comments

Comments

@jeje910
Copy link

jeje910 commented Aug 30, 2022

Hi,

I'm now testing my code based on ALFRED and have some problems and suffering now..
It would be very thankful if someone helps me

The problem function is as follow and the version of AI2THOR is 2.1.0

def reset(self, scene_name_or_num,
              grid_size=constants.AGENT_STEP_SIZE / constants.RECORD_SMOOTHING_FACTOR,
              camera_y=constants.CAMERA_HEIGHT_OFFSET,
              render_image=constants.RENDER_IMAGE,
              render_depth_image=constants.RENDER_DEPTH_IMAGE,
              render_class_image=constants.RENDER_CLASS_IMAGE,
              render_object_image=constants.RENDER_OBJECT_IMAGE,
              visibility_distance=constants.VISIBILITY_DISTANCE,
              silent=False):
        '''
        reset scene and task states
        '''
        if not silent:
            print("Resetting ThorEnv")

        if type(scene_name_or_num) == str:
            scene_name = scene_name_or_num
        else:
            scene_name = 'FloorPlan%d' % scene_name_or_num

        super().reset(scene_name)
        event = super().step(dict(
            action='Initialize',
            gridSize=grid_size,
            cameraY=camera_y,
            renderImage=render_image,
            renderDepthImage=render_depth_image,
            renderClassImage=render_class_image,
            renderObjectImage=render_object_image,
            visibility_distance=visibility_distance,
            makeAgentsVisible=False,
        ))

The line stucks is event = super().step(dict( It gets self.last_event = queue_get(self.request_queue) in ai2thor controller and stuck in res = que.get(block=True, timeout=0.5) from server.py
The log that code stucks is as follow.
image

It would be appreciate if you help

@1625368821
Copy link

I have the similar issues.Have you a good solution for the issues?It stucks at Resetting ThorEnv.
image

@Roadsong
Copy link

Roadsong commented Dec 6, 2022

Hi I faced the similar issues here. I am using version 2.1.0 and tested on both MacOS and Ubuntu 20 (without GPU).
Reset action works for me and I can reset to any valid rooms. But the program got stuck whenever I execute an action. In fact, I can only execute a single action like 'LookDown' or 'LookUp' and I can see it indeed works, but after that, the Unity window doesn't change at all.

I followed this official documents but no luck: https://allenai.github.io/ai2thor-v2.1.0-documentation/examples

Does anyone have any solution? It seems that the 2.1.0 version is a nightmare for many people...

@jeje910
Copy link
Author

jeje910 commented Jan 13, 2023

Sorry for late reply
Maybe the the link below may help you!

alexpashevich/E.T.#8

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

3 participants