{"action":"opened","issue":{"url":"https://api.github.com/repos/OculusRiftInAction/pyovr-examples/issues/9","repository_url":"https://api.github.com/repos/OculusRiftInAction/pyovr-examples","labels_url":"https://api.github.com/repos/OculusRiftInAction/pyovr-examples/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/OculusRiftInAction/pyovr-examples/issues/9/comments","events_url":"https://api.github.com/repos/OculusRiftInAction/pyovr-examples/issues/9/events","html_url":"https://github.com/OculusRiftInAction/pyovr-examples/issues/9","id":166905961,"number":9,"title":"Segmentation Fault in `ovr.ovrHmd_AttachToWindow`","user":{"login":"cversek","id":1470227,"avatar_url":"https://avatars.githubusercontent.com/u/1470227?v=3","gravatar_id":"","url":"https://api.github.com/users/cversek","html_url":"https://github.com/cversek","followers_url":"https://api.github.com/users/cversek/followers","following_url":"https://api.github.com/users/cversek/following{/other_user}","gists_url":"https://api.github.com/users/cversek/gists{/gist_id}","starred_url":"https://api.github.com/users/cversek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cversek/subscriptions","organizations_url":"https://api.github.com/users/cversek/orgs","repos_url":"https://api.github.com/users/cversek/repos","events_url":"https://api.github.com/users/cversek/events{/privacy}","received_events_url":"https://api.github.com/users/cversek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-21T20:06:28Z","updated_at":"2016-07-21T20:06:28Z","closed_at":null,"body":"I'm trying to use the RiftDemo.py with  example with the [ovrsdk](https://github.com/jherico/python-ovrsdk/) Python bindings and version 0.5 of the OVR SDK on linux (Ubuntu 15.10).  I get an error message:\r\n```\r\nFatal Python error: (pygame parachute) Segmentation Fault\r\nAborted (core dumped)\r\n```\r\nwhich I traced to the API call  [`ovr.ovrHmd_AttachToWindow(self.hmd.hmd, window, 0, 0)`](https://github.com/OculusRiftInAction/pyovr-examples/blob/master/RiftApp.py#L72).\r\nHere is a sample of the arguments being fed to that function:\r\n```python\r\nself.hmd.hmd: <oculusvr.LP_struct_ovrHmdDesc_ object at 0x7f0a3d8299e0>\r\nwindow: c_void_p(71303185)\r\n```\r\nI also tried substituting the file `ovr_sdk_linux_0.5.0.1/LibOVR/Lib/Linux/x86_64/Release/libOVRRT64_0.so.5.0.1` for the library file at `python-ovrsdk/oculusvr/linux-x86-64/libOculusVR.so`\r\nbut that created a segmentation fault at `ovr.Hmd.initialize()`.\r\n\r\n"}}
{"actor":{"display_login":"cversek"}}