minosworld / minos

MINOS: Multimodal Indoor Simulator
MIT License
201 stars 33 forks source link

connection error after reset #49

Closed NotANumber124 closed 6 years ago

NotANumber124 commented 6 years ago

I run python demo.py --env_config objectgoal_suncg_mf, but it always throw 'connection error' after the env.rest()

➜ gym git:(master) ✗ python3 demo.py --env_config objectgoal_suncg_mf WARN: Environment '<class 'gym_minos.envs.indoor_env.IndoorEnv'>' has deprecated methods. Compatibility code invoked. train:87 episodes test:34 episodes val:32 episodes 2018-04-30 23:37:59,632 INFO {'machine': 'elk', 'stk_git_hash': '5f0fc7a', 'sim_git_hash': '5f0fc7a', 'sim_id': 'sim00'} 2018-04-30 23:37:59,659 INFO sim00:Starting sim server at /home/nina/work/minos/minos/server/server.js with port 40439 2018-04-30 23:38:00,677 INFO Starting new HTTP connection (1): localhost 2018-04-30 23:38:00,679 WARNING localhost:40439/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=40439): Max retries exceeded with url: /socket.io/?t=1525102680671-0&EIO=3&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f87d5e5a710>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2018-04-30 23:38:01,681 INFO Starting new HTTP connection (2): localhost 2018-04-30 23:38:03,576 INFO sim00:connect 2018-04-30 23:38:03,756 INFO sim00:inited WARN: gym.spaces.Box autodetected dtype as <class 'numpy.uint8'>. Please provide explicit dtype. Running MINOS gym example Starting episode 0 after start 2018-04-30 23:38:24,717 INFO Generating grammar tables from /usr/lib/python3.5/lib2to3/Grammar.txt 2018-04-30 23:38:24,766 INFO Generating grammar tables from /usr/lib/python3.5/lib2to3/PatternGrammar.txt sim00:EPISODE:1,69e283eec2f85eb53d528dcfb2172ab9,42.874094,500,False,11.662054,5.683464,7.207973,11.298276,3,4 sim00:EPINFO:1,{'sceneId': 'p5dScene.69e283eec2f85eb53d528dcfb2172ab9', 'shortestPath': {'isValid': True, 'distance': 11.29827560572968, 'doors': ['0_7', '0_24', '0_6'], 'rooms': [4, 3, 2, 1]}, 'start': {'position': [-38.557333411447395, 0.5950000007450595, -43.73646242831203], 'angle': 6.020070110270141, 'room': '0_3', 'cell': {'isValid': True, 'id': 1063, 'i': 73, 'j': 11}}, 'goal': {'bbox': {'max': [-44.11000020802021, 2.2200000286102295, -41.46416735649109], 'min': [-44.250000305473804, 0.039999958793227375, -42.52416729927063]}, 'position': [-44.18000025674701, 1.1299999937017284, -41.99416732788086], 'objectId': '0_6', 'cell': {'isValid': True, 'id': 2537, 'i': 17, 'j': 28}, 'initialOffsetFromAgent': [-44.11000020802021, 0.039999958793227375, -41.46416735649109]}, 'task': 'object_goal'} Episode finished after 500 steps; success=False Starting episode 1 2018-04-30 23:38:51,641 WARNING localhost:40439/socket.io [connection error] recv disconnected ([Errno 104] Connection reset by peer) 2018-04-30 23:38:52,643 WARNING localhost:40439/socket.io [connection error] recv disconnected ([Errno 104] Connection reset by peer) 2018-04-30 23:38:52,644 INFO sim00:disconnect 2018-04-30 23:38:52,648 INFO Resetting dropped connection: localhost 2018-04-30 23:38:52,650 WARNING localhost:40439/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=40439): Max retries exceeded with url: /socket.io/?t=1525102732644-0&EIO=3&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f87d5e5ae80>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2018-04-30 23:38:53,653 INFO Starting new HTTP connection (3): localhost 2018-04-30 23:38:53,655 WARNING localhost:40439/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=40439): Max retries exceeded with url: /socket.io/?t=1525102733651-0&EIO=3&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f87d5f8c470>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2018-04-30 23:38:54,659 INFO Starting new HTTP connection (4): localhost 2018-04-30 23:38:54,671 WARNING localhost:40439/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=40439): Max retries exceeded with url: /socket.io/?t=1525102734656-0&EIO=3&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f87d5f8cac8>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2018-04-30 23:38:55,675 INFO Starting new HTTP connection (5): localhost 2018-04-30 23:38:55,676 WARNING localhost:40439/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=40439): Max retries exceeded with url: /socket.io/?t=1525102735673-0&EIO=3&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f87d5e5b940>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2018-04-30 23:38:56,680 INFO Starting new HTTP connection (6): localhost 2018-04-30 23:38:56,681 WARNING localhost:40439/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=40439): Max retries exceeded with url: /socket.io/?t=1525102736678-0&EIO=3&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f87d5f8c048>: Failed to establish a new connection: [Errno 111] Connection refused',)) 2018-04-30 23:38:57,684 INFO Starting new HTTP connection (7): localhost 2018-04-30 23:38:57,685 WARNING localhost:40439/socket.io [waiting for connection] HTTPConnectionPool(host='localhost', port=40439): Max retries exceeded with url: /socket.io/?t=1525102737682-0&EIO=3&transport=polling (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x7f87d5f8cb38>: Failed to establish a new connection: [Errno 111] Connection refused',))

The simserver.log is here simserver.log

Also, I ran the UNREAL baseline for minos, it throws the 'connection error' after reset as well.

kvas7andy commented 6 years ago

Hi,

this is related to the last update. Not fixed yet. Here #44

msavva commented 6 years ago

Hi @NotANumber124 , @kvas7andy This was a regression in v0.5.3 which should be fixed with the latest update to the master branch. Please check, and re-open the issue if you still experience the problem.