{"action":"created","issue":{"url":"https://api.github.com/repos/openai/gym/issues/741","repository_url":"https://api.github.com/repos/openai/gym","labels_url":"https://api.github.com/repos/openai/gym/issues/741/labels{/name}","comments_url":"https://api.github.com/repos/openai/gym/issues/741/comments","events_url":"https://api.github.com/repos/openai/gym/issues/741/events","html_url":"https://github.com/openai/gym/issues/741","id":262757485,"number":741,"title":"Game window hangs up","user":{"login":"vishrathi","id":14019236,"avatar_url":"https://avatars2.githubusercontent.com/u/14019236?v=4","gravatar_id":"","url":"https://api.github.com/users/vishrathi","html_url":"https://github.com/vishrathi","followers_url":"https://api.github.com/users/vishrathi/followers","following_url":"https://api.github.com/users/vishrathi/following{/other_user}","gists_url":"https://api.github.com/users/vishrathi/gists{/gist_id}","starred_url":"https://api.github.com/users/vishrathi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vishrathi/subscriptions","organizations_url":"https://api.github.com/users/vishrathi/orgs","repos_url":"https://api.github.com/users/vishrathi/repos","events_url":"https://api.github.com/users/vishrathi/events{/privacy}","received_events_url":"https://api.github.com/users/vishrathi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2017-10-04T11:44:36Z","updated_at":"2018-04-27T09:29:53Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nI am a beginner with gym. After I render CartPole\r\n\r\nenv = gym.make('CartPole-v0')\r\nenv.reset()\r\nenv.render()\r\n\r\nWindow is launched from Jupyter notebook but it hangs immediately. Then the notebook is dead. I am using Python 3.5.4 on OSX 10.11.6. What could be the problem here?\r\n\r\nThanks.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/openai/gym/issues/comments/384917849","html_url":"https://github.com/openai/gym/issues/741#issuecomment-384917849","issue_url":"https://api.github.com/repos/openai/gym/issues/741","id":384917849,"user":{"login":"lhk","id":1475537,"avatar_url":"https://avatars1.githubusercontent.com/u/1475537?v=4","gravatar_id":"","url":"https://api.github.com/users/lhk","html_url":"https://github.com/lhk","followers_url":"https://api.github.com/users/lhk/followers","following_url":"https://api.github.com/users/lhk/following{/other_user}","gists_url":"https://api.github.com/users/lhk/gists{/gist_id}","starred_url":"https://api.github.com/users/lhk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhk/subscriptions","organizations_url":"https://api.github.com/users/lhk/orgs","repos_url":"https://api.github.com/users/lhk/repos","events_url":"https://api.github.com/users/lhk/events{/privacy}","received_events_url":"https://api.github.com/users/lhk/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T09:29:53Z","updated_at":"2018-04-27T09:29:53Z","author_association":"NONE","body":"Same problem.\r\n\r\nOn jupyter 1.0.0, python 3.6.4, gym 0.10.5, pyglet 1.2.4, I'm using the following code\r\n\r\n```\r\nimport gym\r\nenv = gym.make('LunarLander-v2')\r\nenv.reset()\r\nenv.render()\r\n```\r\n\r\nThis produces a frozen game window, which can't be closed. Even restarting the kernel doesn't work, only killing the process.\r\n\r\nAt the same time, I tried the random agent sample: [here](https://github.com/openai/gym/blob/master/examples/agents/random_agent.py)\r\n\r\nIt produces the following error message:\r\n\r\n> Exception ignored in: <bound method Viewer.__del__ of <gym.envs.classic_control.rendering.Viewer object at 0x7f824f425588>>\r\n> Traceback (most recent call last):\r\n>   File \"/home/lhk/anaconda3/lib/python3.6/site-packages/gym/envs/classic_control/rendering.py\", line 143, in __del__\r\n>   File \"/home/lhk/anaconda3/lib/python3.6/site-packages/gym/envs/classic_control/rendering.py\", line 62, in close\r\n>   File \"/home/lhk/anaconda3/lib/python3.6/site-packages/pyglet/window/xlib/__init__.py\", line 474, in close\r\n>   File \"/home/lhk/anaconda3/lib/python3.6/site-packages/pyglet/gl/xlib.py\", line 343, in destroy\r\n>   File \"/home/lhk/anaconda3/lib/python3.6/site-packages/pyglet/gl/base.py\", line 333, in destroy\r\n>   File \"/home/lhk/anaconda3/lib/python3.6/site-packages/pyglet/gl/xlib.py\", line 333, in detach\r\n>   File \"/home/lhk/anaconda3/lib/python3.6/site-packages/pyglet/gl/lib.py\", line 96, in errcheck\r\n> ImportError: sys.meta_path is None, Python is likely shutting down\r\n> \r\n"}}
{"actor":{"display_login":"lhk"}}