{"action":"created","issue":{"url":"https://api.github.com/repos/openai/gym/issues/243","repository_url":"https://api.github.com/repos/openai/gym","labels_url":"https://api.github.com/repos/openai/gym/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/openai/gym/issues/243/comments","events_url":"https://api.github.com/repos/openai/gym/issues/243/events","html_url":"https://github.com/openai/gym/issues/243","id":165075750,"number":243,"title":"Invalid action space for DoomDeathmatch-v0","user":{"login":"danijar","id":2111293,"avatar_url":"https://avatars.githubusercontent.com/u/2111293?v=3","gravatar_id":"","url":"https://api.github.com/users/danijar","html_url":"https://github.com/danijar","followers_url":"https://api.github.com/users/danijar/followers","following_url":"https://api.github.com/users/danijar/following{/other_user}","gists_url":"https://api.github.com/users/danijar/gists{/gist_id}","starred_url":"https://api.github.com/users/danijar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danijar/subscriptions","organizations_url":"https://api.github.com/users/danijar/orgs","repos_url":"https://api.github.com/users/danijar/repos","events_url":"https://api.github.com/users/danijar/events{/privacy}","received_events_url":"https://api.github.com/users/danijar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-12T13:08:02Z","updated_at":"2016-07-12T15:57:31Z","closed_at":null,"body":"Random sampling from the action space crashes the `DoomDeathmatch-v0` environment (Ubuntu 14.04 x64, Python 3.4, gym 0.1.4 via pip3). Here is the example program. Changing either the environment or passing an action vector of zeroes prevents the crash.\r\n\r\n```python\r\nimport numpy as np\r\nimport gym\r\nfrom doom_py import ScreenResolution\r\n\r\nenv = gym.make('DoomDeathmatch-v0')\r\n# Works with: env = gym.make('DoomMyWayHome-v0')\r\nenv.configure(screen_resolution=ScreenResolution.RES_160X120)\r\nobservation = env.reset()\r\nprint(observation.shape)\r\ndone = False\r\nwhile not done:\r\n    env.render()\r\n    action = env.action_space.sample()\r\n    # Works with: action = np.zeros(env.action_space.shape, dtype=int)\r\n    observation, reward, done, info = env.step(action)\r\n```\r\n\r\nConsole output:\r\n\r\n```\r\n[2016-07-12 14:59:07,851] Making new env: DoomDeathmatch-v0\r\n\r\n\r\n*** Fatal Error ***\r\nAddress not mapped to object (signal 11)\r\nAddress: 0x278\r\n\r\nGenerating vizdoom-crash.log and killing process 16023, please wait... 40\t../sysdeps/unix/sysv/linux/waitpid.c: No such file or directory.\r\nWarning: Cannot convert string \"xft:DejaVu Sans Mono:pixelsize=16\" to type FontStruct\r\nTraceback (most recent call last):\r\n  File \"doom.py\", line 21, in <module>\r\n    observation, reward, done, info = env.step(action)\r\n  File \"/usr/local/lib/python3.4/dist-packages/gym/core.py\", line 121, in step\r\n    observation, reward, done, info = self._step(action)\r\n  File \"/usr/local/lib/python3.4/dist-packages/gym/envs/doom/doom_env.py\", line 160, in _step\r\n    reward = self.game.make_action(list_action)\r\ndoom_py.vizdoom.ViZDoomErrorException: Controlled ViZDoom instance reported error.\r\nException ignored in: <bound method SimpleImageViewer.__del__ of <gym.envs.classic_control.rendering.SimpleImageViewer object at 0x7f28e179bb70>>\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python3.4/dist-packages/gym/envs/classic_control/rendering.py\", line 332, in __del__\r\n  File \"/usr/local/lib/python3.4/dist-packages/gym/envs/classic_control/rendering.py\", line 329, in close\r\n  File \"/usr/local/lib/python3.4/dist-packages/pyglet/window/xlib/__init__.py\", line 474, in close\r\n  File \"/usr/local/lib/python3.4/dist-packages/pyglet/gl/xlib.py\", line 343, in destroy\r\n  File \"/usr/local/lib/python3.4/dist-packages/pyglet/gl/base.py\", line 333, in destroy\r\n  File \"/usr/local/lib/python3.4/dist-packages/pyglet/gl/xlib.py\", line 333, in detach\r\n  File \"/usr/local/lib/python3.4/dist-packages/pyglet/gl/lib.py\", line 96, in errcheck\r\n  File \"<frozen importlib._bootstrap>\", line 2237, in _find_and_load\r\n  File \"<frozen importlib._bootstrap>\", line 2222, in _find_and_load_unlocked\r\n  File \"<frozen importlib._bootstrap>\", line 2155, in _find_spec\r\nTypeError: 'NoneType' object is not iterable\r\nzsh: segmentation fault (core dumped)  python3 doom.py\r\n```"},"comment":{"url":"https://api.github.com/repos/openai/gym/issues/comments/232093662","html_url":"https://github.com/openai/gym/issues/243#issuecomment-232093662","issue_url":"https://api.github.com/repos/openai/gym/issues/243","id":232093662,"user":{"login":"gdb","id":211857,"avatar_url":"https://avatars.githubusercontent.com/u/211857?v=3","gravatar_id":"","url":"https://api.github.com/users/gdb","html_url":"https://github.com/gdb","followers_url":"https://api.github.com/users/gdb/followers","following_url":"https://api.github.com/users/gdb/following{/other_user}","gists_url":"https://api.github.com/users/gdb/gists{/gist_id}","starred_url":"https://api.github.com/users/gdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gdb/subscriptions","organizations_url":"https://api.github.com/users/gdb/orgs","repos_url":"https://api.github.com/users/gdb/repos","events_url":"https://api.github.com/users/gdb/events{/privacy}","received_events_url":"https://api.github.com/users/gdb/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T15:57:31Z","updated_at":"2016-07-12T15:57:31Z","body":"@ppaquette mind taking a look?"}}
{"actor":{"display_login":"gdb"}}