{"action":"created","issue":{"url":"https://api.github.com/repos/mattebb/ofxOculusDK2/issues/7","labels_url":"https://api.github.com/repos/mattebb/ofxOculusDK2/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/mattebb/ofxOculusDK2/issues/7/comments","events_url":"https://api.github.com/repos/mattebb/ofxOculusDK2/issues/7/events","html_url":"https://github.com/mattebb/ofxOculusDK2/pull/7","id":123640836,"number":7,"title":"Fix crash with bad monitor id; add method to get full Oculus pose","user":{"login":"totalgee","id":306082,"avatar_url":"https://avatars.githubusercontent.com/u/306082?v=3","gravatar_id":"","url":"https://api.github.com/users/totalgee","html_url":"https://github.com/totalgee","followers_url":"https://api.github.com/users/totalgee/followers","following_url":"https://api.github.com/users/totalgee/following{/other_user}","gists_url":"https://api.github.com/users/totalgee/gists{/gist_id}","starred_url":"https://api.github.com/users/totalgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totalgee/subscriptions","organizations_url":"https://api.github.com/users/totalgee/orgs","repos_url":"https://api.github.com/users/totalgee/repos","events_url":"https://api.github.com/users/totalgee/events{/privacy}","received_events_url":"https://api.github.com/users/totalgee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T11:10:17Z","updated_at":"2015-12-23T11:12:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mattebb/ofxOculusDK2/pulls/7","html_url":"https://github.com/mattebb/ofxOculusDK2/pull/7","diff_url":"https://github.com/mattebb/ofxOculusDK2/pull/7.diff","patch_url":"https://github.com/mattebb/ofxOculusDK2/pull/7.patch"},"body":"We now figure out the Oculus monitor id in a more reliable way.  Previously, it was sometimes crashing in `fullscreenOnRift()` because `hmd->DisplayId` was uninitialized.\r\n\r\nI also implemented the missing `getTranslation()` method (was declared in the header but not implemented), and added a new `getFullHeadPose()` method, that returns the full pose of the Oculus camera (including its parent ofCamera).\r\n\r\nThis is a better fix than my earlier pull request, which I will retract."},"comment":{"url":"https://api.github.com/repos/mattebb/ofxOculusDK2/issues/comments/166864767","html_url":"https://github.com/mattebb/ofxOculusDK2/pull/7#issuecomment-166864767","issue_url":"https://api.github.com/repos/mattebb/ofxOculusDK2/issues/7","id":166864767,"user":{"login":"totalgee","id":306082,"avatar_url":"https://avatars.githubusercontent.com/u/306082?v=3","gravatar_id":"","url":"https://api.github.com/users/totalgee","html_url":"https://github.com/totalgee","followers_url":"https://api.github.com/users/totalgee/followers","following_url":"https://api.github.com/users/totalgee/following{/other_user}","gists_url":"https://api.github.com/users/totalgee/gists{/gist_id}","starred_url":"https://api.github.com/users/totalgee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/totalgee/subscriptions","organizations_url":"https://api.github.com/users/totalgee/orgs","repos_url":"https://api.github.com/users/totalgee/repos","events_url":"https://api.github.com/users/totalgee/events{/privacy}","received_events_url":"https://api.github.com/users/totalgee/received_events","type":"User","site_admin":false},"created_at":"2015-12-23T11:12:48Z","updated_at":"2015-12-23T11:12:48Z","body":"Here are my comments from the other PR, which I retracted (this PR fixes the same problem, but in a more general way):\r\n\r\n> I was trying ofxOculusDK2 on with oF 0.9 RC2 (on OS X 10.10.5 with Xcode 7.1), and found the `hmd->DisplayId` field is not valid (therefore accessing `displays[whichDisplay]` on the next line crashes). It looks like their DisplayId field may have been scheduled for deletion.\r\n"}}