{"action":"created","issue":{"url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1250","repository_url":"https://api.github.com/repos/opensim-org/opensim-core","labels_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1250/labels{/name}","comments_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1250/comments","events_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1250/events","html_url":"https://github.com/opensim-org/opensim-core/issues/1250","id":176724959,"number":1250,"title":"Prevent segfault in Matlab when attempting to access bad index","user":{"login":"tkuchida","id":4203505,"avatar_url":"https://avatars.githubusercontent.com/u/4203505?v=3","gravatar_id":"","url":"https://api.github.com/users/tkuchida","html_url":"https://github.com/tkuchida","followers_url":"https://api.github.com/users/tkuchida/followers","following_url":"https://api.github.com/users/tkuchida/following{/other_user}","gists_url":"https://api.github.com/users/tkuchida/gists{/gist_id}","starred_url":"https://api.github.com/users/tkuchida/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tkuchida/subscriptions","organizations_url":"https://api.github.com/users/tkuchida/orgs","repos_url":"https://api.github.com/users/tkuchida/repos","events_url":"https://api.github.com/users/tkuchida/events{/privacy}","received_events_url":"https://api.github.com/users/tkuchida/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opensim-org/opensim-core/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/opensim-org/opensim-core/milestones/1","html_url":"https://github.com/opensim-org/opensim-core/milestones/OpenSim%204.0","labels_url":"https://api.github.com/repos/opensim-org/opensim-core/milestones/1/labels","id":725618,"number":1,"title":"OpenSim 4.0","description":"","creator":{"login":"jenhicks","id":4510959,"avatar_url":"https://avatars.githubusercontent.com/u/4510959?v=3","gravatar_id":"","url":"https://api.github.com/users/jenhicks","html_url":"https://github.com/jenhicks","followers_url":"https://api.github.com/users/jenhicks/followers","following_url":"https://api.github.com/users/jenhicks/following{/other_user}","gists_url":"https://api.github.com/users/jenhicks/gists{/gist_id}","starred_url":"https://api.github.com/users/jenhicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenhicks/subscriptions","organizations_url":"https://api.github.com/users/jenhicks/orgs","repos_url":"https://api.github.com/users/jenhicks/repos","events_url":"https://api.github.com/users/jenhicks/events{/privacy}","received_events_url":"https://api.github.com/users/jenhicks/received_events","type":"User","site_admin":false},"open_issues":143,"closed_issues":325,"state":"open","created_at":"2014-07-18T21:08:06Z","updated_at":"2016-09-19T18:26:52Z","due_on":null,"closed_at":null},"comments":15,"created_at":"2016-09-13T19:11:40Z","updated_at":"2016-09-19T22:06:36Z","closed_at":null,"body":"Because Matlab is 1-indexed and C++ is 0-indexed, Matlab users are likely to make off-by-one errors (OBOEs) when indexing into OpenSim Tables, etc. Currently, Matlab just kerplodes with an unhelpful segfault message when attempting to access a bad index, as reported by @jimmyDunne:\r\n\r\n![jamesmatlabcrash](https://cloud.githubusercontent.com/assets/4203505/18487629/d41a55d2-79aa-11e6-91ca-d0d8801288d5.png)\r\n\r\n@aymanhab suggests throwing/catching exceptions to prevent :boom:. See #1249."},"comment":{"url":"https://api.github.com/repos/opensim-org/opensim-core/issues/comments/248142228","html_url":"https://github.com/opensim-org/opensim-core/issues/1250#issuecomment-248142228","issue_url":"https://api.github.com/repos/opensim-org/opensim-core/issues/1250","id":248142228,"user":{"login":"jimmyDunne","id":5296507,"avatar_url":"https://avatars.githubusercontent.com/u/5296507?v=3","gravatar_id":"","url":"https://api.github.com/users/jimmyDunne","html_url":"https://github.com/jimmyDunne","followers_url":"https://api.github.com/users/jimmyDunne/followers","following_url":"https://api.github.com/users/jimmyDunne/following{/other_user}","gists_url":"https://api.github.com/users/jimmyDunne/gists{/gist_id}","starred_url":"https://api.github.com/users/jimmyDunne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jimmyDunne/subscriptions","organizations_url":"https://api.github.com/users/jimmyDunne/orgs","repos_url":"https://api.github.com/users/jimmyDunne/repos","events_url":"https://api.github.com/users/jimmyDunne/events{/privacy}","received_events_url":"https://api.github.com/users/jimmyDunne/received_events","type":"User","site_admin":false},"created_at":"2016-09-19T22:06:35Z","updated_at":"2016-09-19T22:06:35Z","body":"Sorry `row1 = RowVector(5, 0.25 );` does work. I added the double for debugging but didn't get rid of it. \r\n\r\nThe above code can only be used once. If I try to do a second pass, Matlab crashes. "}}
{"actor":{"display_login":"jimmyDunne"}}