{"action":"created","issue":{"url":"https://api.github.com/repos/openai/gym/issues/247","repository_url":"https://api.github.com/repos/openai/gym","labels_url":"https://api.github.com/repos/openai/gym/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/openai/gym/issues/247/comments","events_url":"https://api.github.com/repos/openai/gym/issues/247/events","html_url":"https://github.com/openai/gym/issues/247","id":165430821,"number":247,"title":"Rendering causes crash when gym is wrapped in a ROS node","user":{"login":"evenmarbles","id":5930813,"avatar_url":"https://avatars.githubusercontent.com/u/5930813?v=3","gravatar_id":"","url":"https://api.github.com/users/evenmarbles","html_url":"https://github.com/evenmarbles","followers_url":"https://api.github.com/users/evenmarbles/followers","following_url":"https://api.github.com/users/evenmarbles/following{/other_user}","gists_url":"https://api.github.com/users/evenmarbles/gists{/gist_id}","starred_url":"https://api.github.com/users/evenmarbles/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evenmarbles/subscriptions","organizations_url":"https://api.github.com/users/evenmarbles/orgs","repos_url":"https://api.github.com/users/evenmarbles/repos","events_url":"https://api.github.com/users/evenmarbles/events{/privacy}","received_events_url":"https://api.github.com/users/evenmarbles/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-13T21:55:58Z","updated_at":"2016-07-21T21:43:09Z","closed_at":null,"body":"I wrote a ROS node wrapping openaigym to run the environments an then pass the action from another ROS. But for some reason the code crashes with exit code 139 whenever rendering is turned on. The program works fine without rendering.\r\n\r\nFurthermore, when rendering is turned on, it starts by displaying the environment in the window, but crashes when updating the rendering after receiving its first action from the other node. To be more precise it crashes when executing the command glClearColor(1, 1, 1, 1) in gym.env.classic_control.rendering.py (so far I tried it for the CartPole and the MountainCar domains).\r\n\r\nAs an interesting tidbit, when I am running the ROS node openaigym wrapper, and sample actions in the node and pass it directly into the function dealing with updating the environment and rendering it (without involving the agent ROS node, the program runs just fine (doesn't crash).\r\n\r\nSo my best guess is that the crash is somehow related to using tcp (since this is how the information is passed from the agent to the environment) and pyglet/opengl."},"comment":{"url":"https://api.github.com/repos/openai/gym/issues/comments/234393319","html_url":"https://github.com/openai/gym/issues/247#issuecomment-234393319","issue_url":"https://api.github.com/repos/openai/gym/issues/247","id":234393319,"user":{"login":"hholst80","id":6200749,"avatar_url":"https://avatars.githubusercontent.com/u/6200749?v=3","gravatar_id":"","url":"https://api.github.com/users/hholst80","html_url":"https://github.com/hholst80","followers_url":"https://api.github.com/users/hholst80/followers","following_url":"https://api.github.com/users/hholst80/following{/other_user}","gists_url":"https://api.github.com/users/hholst80/gists{/gist_id}","starred_url":"https://api.github.com/users/hholst80/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hholst80/subscriptions","organizations_url":"https://api.github.com/users/hholst80/orgs","repos_url":"https://api.github.com/users/hholst80/repos","events_url":"https://api.github.com/users/hholst80/events{/privacy}","received_events_url":"https://api.github.com/users/hholst80/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T21:43:09Z","updated_at":"2016-07-21T21:43:09Z","body":"I get the same error as you @luongminh97. I was recommended to try http://www.karlrunge.com/x11vnc/Xdummy but opt-out and just disabled rendering for now. I also tried virtualgl which works good for `glxgears` and `glxinfo` but `pyglet` still wasn't happy."}}
{"actor":{"display_login":"hholst80"}}