{"action":"created","issue":{"url":"https://api.github.com/repos/openai/gym/issues/95","repository_url":"https://api.github.com/repos/openai/gym","labels_url":"https://api.github.com/repos/openai/gym/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/openai/gym/issues/95/comments","events_url":"https://api.github.com/repos/openai/gym/issues/95/events","html_url":"https://github.com/openai/gym/issues/95","id":154560875,"number":95,"title":"occasional exception when resetting the environment","user":{"login":"yakticus","id":1957660,"avatar_url":"https://avatars.githubusercontent.com/u/1957660?v=3","gravatar_id":"","url":"https://api.github.com/users/yakticus","html_url":"https://github.com/yakticus","followers_url":"https://api.github.com/users/yakticus/followers","following_url":"https://api.github.com/users/yakticus/following{/other_user}","gists_url":"https://api.github.com/users/yakticus/gists{/gist_id}","starred_url":"https://api.github.com/users/yakticus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakticus/subscriptions","organizations_url":"https://api.github.com/users/yakticus/orgs","repos_url":"https://api.github.com/users/yakticus/repos","events_url":"https://api.github.com/users/yakticus/events{/privacy}","received_events_url":"https://api.github.com/users/yakticus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-12T19:22:26Z","updated_at":"2016-05-12T22:59:35Z","closed_at":null,"body":"Symptom is an exception while resetting the environment during monitoring:\r\n\r\n```  \r\nFile \"/Users/julie/github/gym/gym/core.py\", line 102, in reset\r\n    self.monitor._after_reset(observation)\r\n  File \"/Users/julie/github/gym/gym/monitoring/monitor.py\", line 250, in _after_reset\r\n    self.video_recorder.capture_frame()\r\n  File \"/Users/julie/github/gym/gym/monitoring/video_recorder.py\", line 105, in capture_frame\r\n    frame = self.env.render(mode=render_mode)\r\n  File \"/Users/julie/github/gym/gym/core.py\", line 153, in render\r\n    return self._render(mode=mode, close=close)\r\n  File \"/Users/julie/github/gym/gym/envs/classic_control/cartpole.py\", line 132, in _render\r\n    return self.viewer.get_array()\r\n  File \"/Users/julie/github/gym/gym/envs/classic_control/rendering.py\", line 102, in get_array\r\n    arr = arr.reshape(self.height, self.width, 4)\r\nValueError: total size of new array must be unchanged\r\n```\r\n\r\nUnfortunately I don't have exact steps to reproduce as it seems to happen sporadically when using the CartPole-V0 environment (I haven't tried others). Will give more details as they are uncovered.\r\n\r\nIf it helps, information about my python environment is attached. \r\n\r\n[pythonenv.txt](https://github.com/openai/gym/files/262094/pythonenv.txt)"},"comment":{"url":"https://api.github.com/repos/openai/gym/issues/comments/218909576","html_url":"https://github.com/openai/gym/issues/95#issuecomment-218909576","issue_url":"https://api.github.com/repos/openai/gym/issues/95","id":218909576,"user":{"login":"yakticus","id":1957660,"avatar_url":"https://avatars.githubusercontent.com/u/1957660?v=3","gravatar_id":"","url":"https://api.github.com/users/yakticus","html_url":"https://github.com/yakticus","followers_url":"https://api.github.com/users/yakticus/followers","following_url":"https://api.github.com/users/yakticus/following{/other_user}","gists_url":"https://api.github.com/users/yakticus/gists{/gist_id}","starred_url":"https://api.github.com/users/yakticus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yakticus/subscriptions","organizations_url":"https://api.github.com/users/yakticus/orgs","repos_url":"https://api.github.com/users/yakticus/repos","events_url":"https://api.github.com/users/yakticus/events{/privacy}","received_events_url":"https://api.github.com/users/yakticus/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T22:59:35Z","updated_at":"2016-05-12T22:59:35Z","body":"some additional context that's worth mentioning - I wrote a quick & dirty wrapper API for the gym so that I could use it from non-Python code. Could the error arise by having the `env` be a global thing that is re-used more than once?  \r\n\r\nhttps://gist.github.com/yakticus/de3639c23675a4f6e05b54e5faef56d4"}}