{"action":"created","issue":{"url":"https://api.github.com/repos/stevengj/PyCall.jl/issues/301","repository_url":"https://api.github.com/repos/stevengj/PyCall.jl","labels_url":"https://api.github.com/repos/stevengj/PyCall.jl/issues/301/labels{/name}","comments_url":"https://api.github.com/repos/stevengj/PyCall.jl/issues/301/comments","events_url":"https://api.github.com/repos/stevengj/PyCall.jl/issues/301/events","html_url":"https://github.com/stevengj/PyCall.jl/issues/301","id":168185514,"number":301,"title":"Crash on python method","user":{"login":"tbreloff","id":933338,"avatar_url":"https://avatars.githubusercontent.com/u/933338?v=3","gravatar_id":"","url":"https://api.github.com/users/tbreloff","html_url":"https://github.com/tbreloff","followers_url":"https://api.github.com/users/tbreloff/followers","following_url":"https://api.github.com/users/tbreloff/following{/other_user}","gists_url":"https://api.github.com/users/tbreloff/gists{/gist_id}","starred_url":"https://api.github.com/users/tbreloff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tbreloff/subscriptions","organizations_url":"https://api.github.com/users/tbreloff/orgs","repos_url":"https://api.github.com/users/tbreloff/repos","events_url":"https://api.github.com/users/tbreloff/events{/privacy}","received_events_url":"https://api.github.com/users/tbreloff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-28T20:12:39Z","updated_at":"2016-08-02T16:47:23Z","closed_at":null,"body":"I'm trying to get my OpenAIGym.jl working, but I'm getting consistent crashes when trying to render.  This example works in python:\r\n\r\n```\r\nimport gym\r\nenv = gym.make('CartPole-v0')\r\nenv.reset()\r\nenv.render()\r\n```\r\n\r\nBut the equivalent using PyCall:\r\n\r\n```\r\n   _       _ _(_)_     |  A fresh approach to technical computing\r\n  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org\r\n   _ _   _| |_  __ _   |  Type \"?help\" for help.\r\n  | | | | | | |/ _` |  |\r\n  | | |_| | | | (_| |  |  Version 0.5.0-pre+5702 (2016-07-26 13:44 UTC)\r\n _/ |\\__'_|_|_|\\__'_|  |  tb_pkgsha/fc1eac3 (fork: 1 commits, 2 days)\r\n|__/                   |  x86_64-linux-gnu\r\n\r\njulia> using PyCall\r\n\r\njulia> @pyimport gym\r\n\r\njulia> env = gym.make(\"CartPole-v0\")\r\n[2016-07-28 16:06:44,669] Making new env: CartPole-v0\r\nPyObject <gym.envs.classic_control.cartpole.CartPoleEnv object at 0x7fbaea6c79d0>\r\n\r\njulia> env[:reset]()\r\n4-element Array{Float64,1}:\r\n -0.0380367\r\n -0.0192369\r\n  0.0102265\r\n -0.0400403\r\n\r\njulia> env[:render]()\r\n\r\nsignal (11): Segmentation fault\r\nwhile loading no file, in expression starting on line 0\r\nmacro expansion at /home/tom/.julia/v0.5/PyCall/src/exception.jl:78 [inlined]\r\nmacro expansion at /home/tom/.julia/v0.5/PyCall/src/exception.jl:549 [inlined]\r\n#pycall#62 at /home/tom/.julia/v0.5/PyCall/src/PyCall.jl:544\r\n#call#65 at /home/tom/.julia/v0.5/PyCall/src/PyCall.jl:564\r\nPyObject at /home/tom/.julia/v0.5/PyCall/src/PyCall.jl:564\r\njl_call_method_internal at /opt/julia5/src/julia_internal.h:178 [inlined]\r\njl_apply_generic at /opt/julia5/src/gf.c:2034\r\ndo_call at /opt/julia5/src/interpreter.c:66\r\neval at /opt/julia5/src/interpreter.c:190\r\njl_toplevel_eval_flex at /opt/julia5/src/toplevel.c:558 [inlined]\r\njl_toplevel_eval at /opt/julia5/src/toplevel.c:580\r\njl_toplevel_eval_in_warn at /opt/julia5/src/builtins.c:576\r\neval at ./boot.jl:234\r\njl_call_method_internal at /opt/julia5/src/julia_internal.h:178 [inlined]\r\njl_apply_generic at /opt/julia5/src/gf.c:2034\r\neval_user_input at ./REPL.jl:62\r\njl_call_method_internal at /opt/julia5/src/julia_internal.h:178 [inlined]\r\njl_apply_generic at /opt/julia5/src/gf.c:2034\r\nmacro expansion at ./REPL.jl:92 [inlined]\r\n#3 at ./event.jl:46\r\njl_call_method_internal at /opt/julia5/src/julia_internal.h:178 [inlined]\r\njl_apply_generic at /opt/julia5/src/gf.c:2034\r\njl_apply at /opt/julia5/src/julia.h:1394 [inlined]\r\nstart_task at /opt/julia5/src/task.c:253\r\nunknown function (ip: 0xffffffffffffffff)\r\nAllocations: 4002865 (Pool: 4000838; Big: 2027); GC: 5\r\nSegmentation fault (core dumped)\r\n```\r\n\r\nAny idea what might be causing this?\r\n\r\n```\r\n - PyCall                        1.6.3+   494f8316  master\r\n```"},"comment":{"url":"https://api.github.com/repos/stevengj/PyCall.jl/issues/comments/236966183","html_url":"https://github.com/stevengj/PyCall.jl/issues/301#issuecomment-236966183","issue_url":"https://api.github.com/repos/stevengj/PyCall.jl/issues/301","id":236966183,"user":{"login":"stevengj","id":2913679,"avatar_url":"https://avatars.githubusercontent.com/u/2913679?v=3","gravatar_id":"","url":"https://api.github.com/users/stevengj","html_url":"https://github.com/stevengj","followers_url":"https://api.github.com/users/stevengj/followers","following_url":"https://api.github.com/users/stevengj/following{/other_user}","gists_url":"https://api.github.com/users/stevengj/gists{/gist_id}","starred_url":"https://api.github.com/users/stevengj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevengj/subscriptions","organizations_url":"https://api.github.com/users/stevengj/orgs","repos_url":"https://api.github.com/users/stevengj/repos","events_url":"https://api.github.com/users/stevengj/events{/privacy}","received_events_url":"https://api.github.com/users/stevengj/received_events","type":"User","site_admin":false},"created_at":"2016-08-02T16:47:23Z","updated_at":"2016-08-02T16:47:23Z","body":"Does pyglet use LLVMPy or similar?"}}
{"actor":{"display_login":"stevengj"}}