{"action":"created","issue":{"url":"https://api.github.com/repos/highfidelity/hifi/issues/6756","labels_url":"https://api.github.com/repos/highfidelity/hifi/issues/6756/labels{/name}","comments_url":"https://api.github.com/repos/highfidelity/hifi/issues/6756/comments","events_url":"https://api.github.com/repos/highfidelity/hifi/issues/6756/events","html_url":"https://github.com/highfidelity/hifi/pull/6756","id":124511679,"number":6756,"title":"more correct management of MotionState pointers","user":{"login":"AndrewMeadows","id":2186405,"avatar_url":"https://avatars.githubusercontent.com/u/2186405?v=3","gravatar_id":"","url":"https://api.github.com/users/AndrewMeadows","html_url":"https://github.com/AndrewMeadows","followers_url":"https://api.github.com/users/AndrewMeadows/followers","following_url":"https://api.github.com/users/AndrewMeadows/following{/other_user}","gists_url":"https://api.github.com/users/AndrewMeadows/gists{/gist_id}","starred_url":"https://api.github.com/users/AndrewMeadows/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndrewMeadows/subscriptions","organizations_url":"https://api.github.com/users/AndrewMeadows/orgs","repos_url":"https://api.github.com/users/AndrewMeadows/repos","events_url":"https://api.github.com/users/AndrewMeadows/events{/privacy}","received_events_url":"https://api.github.com/users/AndrewMeadows/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"sethalves","id":1137072,"avatar_url":"https://avatars.githubusercontent.com/u/1137072?v=3","gravatar_id":"","url":"https://api.github.com/users/sethalves","html_url":"https://github.com/sethalves","followers_url":"https://api.github.com/users/sethalves/followers","following_url":"https://api.github.com/users/sethalves/following{/other_user}","gists_url":"https://api.github.com/users/sethalves/gists{/gist_id}","starred_url":"https://api.github.com/users/sethalves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethalves/subscriptions","organizations_url":"https://api.github.com/users/sethalves/orgs","repos_url":"https://api.github.com/users/sethalves/repos","events_url":"https://api.github.com/users/sethalves/events{/privacy}","received_events_url":"https://api.github.com/users/sethalves/received_events","type":"User","site_admin":false},"milestone":null,"comments":17,"created_at":"2015-12-31T22:41:59Z","updated_at":"2016-01-07T17:57:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/highfidelity/hifi/pulls/6756","html_url":"https://github.com/highfidelity/hifi/pull/6756","diff_url":"https://github.com/highfidelity/hifi/pull/6756.diff","patch_url":"https://github.com/highfidelity/hifi/pull/6756.patch"},"body":"We've had some crash modes for dangling MotionState pointers.  This PR is an effort to reorganize the code to make it harder to get things wrong.  In short:\r\n\r\n* EntityItems's are removed from the PhysicsEngine BEFORE they are deleted.\r\n* The deletion of the MotionState happens AFTER it has been removed from the PhysicsEngine.\r\n* More asserts added in destructors to help make sure things are done in the right order\r\n* More correct names for methods"},"comment":{"url":"https://api.github.com/repos/highfidelity/hifi/issues/comments/169756517","html_url":"https://github.com/highfidelity/hifi/pull/6756#issuecomment-169756517","issue_url":"https://api.github.com/repos/highfidelity/hifi/issues/6756","id":169756517,"user":{"login":"sethalves","id":1137072,"avatar_url":"https://avatars.githubusercontent.com/u/1137072?v=3","gravatar_id":"","url":"https://api.github.com/users/sethalves","html_url":"https://github.com/sethalves","followers_url":"https://api.github.com/users/sethalves/followers","following_url":"https://api.github.com/users/sethalves/following{/other_user}","gists_url":"https://api.github.com/users/sethalves/gists{/gist_id}","starred_url":"https://api.github.com/users/sethalves/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethalves/subscriptions","organizations_url":"https://api.github.com/users/sethalves/orgs","repos_url":"https://api.github.com/users/sethalves/repos","events_url":"https://api.github.com/users/sethalves/events{/privacy}","received_events_url":"https://api.github.com/users/sethalves/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T17:57:21Z","updated_at":"2016-01-07T17:57:21Z","body":"test this please\r\n"}}