allenai / ScienceWorld

ScienceWorld is a text-based virtual environment centered around accomplishing tasks from the standardized elementary science curriculum.
https://sciworld.apps.allenai.org/
Apache License 2.0
199 stars 24 forks source link

Task 23 and 24 get "java.util.NoSuchElementException: None.get" observation #25

Closed sofyc closed 1 year ago

sofyc commented 1 year ago

When runnning the inference for task 23 or 24, sometimes the observation, free look and inventory will be "java.util.NoSuchElementException: None.get".

This is likely to happen when you first focus on something and then take some actions.

Here is one example:

"8": {
        "episodeIdx": 8,
        "history": {
            "history": [
                {
                    "action": "look around",
                    "freelook": "This room is called the bathroom. In it, you see: \n\tthe agent\n\ta toilet. In the toilet is: A drain, which is open, a substance called water.\n\ta bath tub, which is turned off. In the bath tub is: nothing.\n\ta glass cup (containing nothing)\n\ta sink, which is turned off. In the sink is: nothing.\n\ta substance called air\n\ta picture\nYou also see:\n\tA door to the kitchen (that is open)\n",
                    "inventory": "In your inventory, you see:\n\tan orange\n",
                    "isCompleted": "false",
                    "observation": "This room is called the bathroom. In it, you see: \n\tthe agent\n\ta toilet. In the toilet is: A drain, which is open, a substance called water.\n\ta bath tub, which is turned off. In the bath tub is: nothing.\n\ta glass cup (containing nothing)\n\ta sink, which is turned off. In the sink is: nothing.\n\ta substance called air\n\ta picture\nYou also see:\n\tA door to the kitchen (that is open)",
                    "score": "0.0"
                },
                {
                    "action": "go to kitchen",
                    "freelook": "This room is called the bathroom. In it, you see: \n\tthe agent\n\ta toilet. In the toilet is: A drain, which is open, a substance called water.\n\ta bath tub, which is turned off. In the bath tub is: nothing.\n\ta glass cup (containing nothing)\n\ta sink, which is turned off. In the sink is: nothing.\n\ta substance called air\n\ta picture\nYou also see:\n\tA door to the kitchen (that is open)\n",
                    "inventory": "In your inventory, you see:\n\tan orange\n",
                    "isCompleted": "false",
                    "observation": "You move to the kitchen.",
                    "score": "0.04"
                },
                {
                    "action": "look around",
                    "freelook": "This room is called the kitchen. In it, you see: \n\ta cupboard. The cupboard door is closed. \n\ta counter. On the counter is: a drawer, a bowl (containing a red apple, a banana, an orange, a potato).\n\ta lighter\n\ta substance called soap\n\ta painting\n\ta glass jar (containing a substance called sodium chloride)\n\ta substance called air\n\ta oven, which is turned off. The oven door is closed. \n\tthe agent\n\ta stopwatch, which is deactivated. \n\ta chair. On the chair is: nothing.\n\ta freezer. The freezer door is closed. \n\ta fridge. The fridge door is closed. \n\ta stove, which is turned off. On the stove is: nothing.\n\ta table. On the table is: a glass cup (containing nothing).\n\ta sink, which is turned off. In the sink is: nothing.\n\ta thermometer, currently reading a temperature of 10 degrees celsius\nYou also see:\n\tA door to the bathroom (that is open)\n\tA door to the outside (that is open)\n\tA door to the hallway (that is open)\n",
                    "inventory": "In your inventory, you see:\n\tan orange\n",
                    "isCompleted": "false",
                    "observation": "This room is called the kitchen. In it, you see: \n\ta cupboard. The cupboard door is closed. \n\ta counter. On the counter is: a drawer, a bowl (containing a red apple, a banana, an orange, a potato).\n\ta lighter\n\ta substance called soap\n\ta painting\n\ta glass jar (containing a substance called sodium chloride)\n\ta substance called air\n\ta oven, which is turned off. The oven door is closed. \n\tthe agent\n\ta stopwatch, which is deactivated. \n\ta chair. On the chair is: nothing.\n\ta freezer. The freezer door is closed. \n\ta fridge. The fridge door is closed. \n\ta stove, which is turned off. On the stove is: nothing.\n\ta table. On the table is: a glass cup (containing nothing).\n\ta sink, which is turned off. In the sink is: nothing.\n\ta thermometer, currently reading a temperature of 10 degrees celsius\nYou also see:\n\tA door to the bathroom (that is open)\n\tA door to the outside (that is open)\n\tA door to the hallway (that is open)",
                    "score": "0.04"
                },
                {
                    "action": "focus on apple",
                    "freelook": "This room is called the kitchen. In it, you see: \n\ta cupboard. The cupboard door is closed. \n\ta counter. On the counter is: a drawer, a bowl (containing a red apple, a banana, an orange, a potato).\n\ta lighter\n\ta substance called soap\n\ta painting\n\ta glass jar (containing a substance called sodium chloride)\n\ta substance called air\n\ta oven, which is turned off. The oven door is closed. \n\tthe agent\n\ta stopwatch, which is deactivated. \n\ta chair. On the chair is: nothing.\n\ta freezer. The freezer door is closed. \n\ta fridge. The fridge door is closed. \n\ta stove, which is turned off. On the stove is: nothing.\n\ta table. On the table is: a glass cup (containing nothing).\n\ta sink, which is turned off. In the sink is: nothing.\n\ta thermometer, currently reading a temperature of 10 degrees celsius\nYou also see:\n\tA door to the bathroom (that is open)\n\tA door to the outside (that is open)\n\tA door to the hallway (that is open)\n",
                    "inventory": "In your inventory, you see:\n\tan orange\n",
                    "isCompleted": "false",
                    "observation": "You focus on the apple.",
                    "score": "0.04"
                },
                {
                    "action": "look at apple",
                    "freelook": "java.util.NoSuchElementException: None.get",
                    "inventory": "java.util.NoSuchElementException: None.get",
                    "isCompleted": "true",
                    "observation": "java.util.NoSuchElementException: None.get",
                    "score": "-1.0"
                }
            ],