{"action":"created","issue":{"url":"https://api.github.com/repos/thp/psmoveapi/issues/218","repository_url":"https://api.github.com/repos/thp/psmoveapi","labels_url":"https://api.github.com/repos/thp/psmoveapi/issues/218/labels{/name}","comments_url":"https://api.github.com/repos/thp/psmoveapi/issues/218/comments","events_url":"https://api.github.com/repos/thp/psmoveapi/issues/218/events","html_url":"https://github.com/thp/psmoveapi/issues/218","id":139878293,"number":218,"title":"psmove_tracker_new hangs if called more than once","user":{"login":"DrummerB","id":2104474,"avatar_url":"https://avatars.githubusercontent.com/u/2104474?v=3","gravatar_id":"","url":"https://api.github.com/users/DrummerB","html_url":"https://github.com/DrummerB","followers_url":"https://api.github.com/users/DrummerB/followers","following_url":"https://api.github.com/users/DrummerB/following{/other_user}","gists_url":"https://api.github.com/users/DrummerB/gists{/gist_id}","starred_url":"https://api.github.com/users/DrummerB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DrummerB/subscriptions","organizations_url":"https://api.github.com/users/DrummerB/orgs","repos_url":"https://api.github.com/users/DrummerB/repos","events_url":"https://api.github.com/users/DrummerB/events{/privacy}","received_events_url":"https://api.github.com/users/DrummerB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":26,"created_at":"2016-03-10T12:56:20Z","updated_at":"2016-05-17T16:44:42Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to get psmove to work in Unity, including tracking. I've looked at UniMove and UniMoveX and was able to get it all up and running on a Mac with the included PSEye camera.\r\n\r\nHowever, there seems to be an issue in psmove_tracker_new that causes a freeze, when called more than once. When I first start the game within the editor, everything works fine. If I then stop and restart the game, the entire editor hangs and crashes. I tracked the crash to the initial call of psmove_tracker_new.\r\n\r\nIt's easy to reproduce this issue without Unity or UniMoveX. For instance, you can modify the test_tracker program to just do the whole thing twice. It crashes on the second run:\r\n\r\nhttps://gist.github.com/DrummerB/76bdfd7cc2a106f5a367"},"comment":{"url":"https://api.github.com/repos/thp/psmoveapi/issues/comments/219779067","html_url":"https://github.com/thp/psmoveapi/issues/218#issuecomment-219779067","issue_url":"https://api.github.com/repos/thp/psmoveapi/issues/218","id":219779067,"user":{"login":"DoctorZurk","id":10922461,"avatar_url":"https://avatars.githubusercontent.com/u/10922461?v=3","gravatar_id":"","url":"https://api.github.com/users/DoctorZurk","html_url":"https://github.com/DoctorZurk","followers_url":"https://api.github.com/users/DoctorZurk/followers","following_url":"https://api.github.com/users/DoctorZurk/following{/other_user}","gists_url":"https://api.github.com/users/DoctorZurk/gists{/gist_id}","starred_url":"https://api.github.com/users/DoctorZurk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DoctorZurk/subscriptions","organizations_url":"https://api.github.com/users/DoctorZurk/orgs","repos_url":"https://api.github.com/users/DoctorZurk/repos","events_url":"https://api.github.com/users/DoctorZurk/events{/privacy}","received_events_url":"https://api.github.com/users/DoctorZurk/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T16:44:42Z","updated_at":"2016-05-17T16:44:42Z","body":"@HipsterSloth thank you for your time, \r\nI want to use the PS MOVE controller as a position tracker, not for using with PC Oculus.\r\n I just need position tracking and orientation tracking, and send those data (with TUIO probably) to the network. The cameras will be not attached to a rift pc but to a position tracking dedicated server. \r\nI wanted to do this with a unity app, I will probably make a console app, lighter, better.\r\nIMO also the PSMOVEAPI unity plug-in is now focused on the rift, which is ok, but in my opinion now, with new Unity version, should just focus on PSEYE/CAMERA tracking of the controllers in the space, abstracting by the headmount headtracking oculus or vive provide."}}