Skip to content

fix: CreateHouse silently fails when ai2thor build changes#64

Open
sandesh-8622 wants to merge 1 commit intoallenai:mainfrom
sandesh-8622:fix-createhouse-build-mismatch
Open

fix: CreateHouse silently fails when ai2thor build changes#64
sandesh-8622 wants to merge 1 commit intoallenai:mainfrom
sandesh-8622:fix-createhouse-build-mismatch

Conversation

@sandesh-8622
Copy link
Copy Markdown

I was looking into why so many people are hitting "Unable to CreateHouse!" in #47 #53 #60 and I think I found what's causing it.
In constants.py, PROCTHOR_INITIALIZATION uses branch="main" which means every time someone runs the code it downloads whatever the latest ai2thor unity build is at that moment. The problem is when that build changes the house JSON format breaks but the only error you get is:

assert event, "Unable to CreateHouse!"

which tells you absolutely nothing about what actually went wrong.

You can see the real error in issue #53 where the C# traceback shows:
"Error converting value WoodSlashhatch to type MaterialProperties"
that's the actual ai2thor error that was being hidden.

What I changed:

  • added a comment in constants.py explaining why branch="main" is risky
  • replaced the assert with an if block that prints the actual error and also
    message from ai2thor so users can see what failed

Note: I couldn't run the full pipeline since that needs a GPU which my computer did not support but the
imports work fine. Maintainers should confirm the right commit_id to pin in constants.py once they verify which build works with schema 1.0.0.

…enai#47 allenai#53 allenai#60

turns out branch=main in constants.py makes it download whatever the latest
ai2thor build is every time you run it. when that build changes the house JSON
format breaks but the error just says Unable to CreateHouse which tells you
nothing about what actually went wrong

changed the assert to actually print the real error from ai2thor so at least
people can see what is happening

closes allenai#47 allenai#53 allenai#60
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

Successfully merging this pull request may close these issues.

1 participant