{"action":"created","issue":{"url":"https://api.github.com/repos/esheldon/esutil/issues/12","repository_url":"https://api.github.com/repos/esheldon/esutil","labels_url":"https://api.github.com/repos/esheldon/esutil/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/esheldon/esutil/issues/12/comments","events_url":"https://api.github.com/repos/esheldon/esutil/issues/12/events","html_url":"https://github.com/esheldon/esutil/issues/12","id":133857067,"number":12,"title":"lookup_id segfaults","user":{"login":"SimonKrughoff","id":945715,"avatar_url":"https://avatars.githubusercontent.com/u/945715?v=3","gravatar_id":"","url":"https://api.github.com/users/SimonKrughoff","html_url":"https://github.com/SimonKrughoff","followers_url":"https://api.github.com/users/SimonKrughoff/followers","following_url":"https://api.github.com/users/SimonKrughoff/following{/other_user}","gists_url":"https://api.github.com/users/SimonKrughoff/gists{/gist_id}","starred_url":"https://api.github.com/users/SimonKrughoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SimonKrughoff/subscriptions","organizations_url":"https://api.github.com/users/SimonKrughoff/orgs","repos_url":"https://api.github.com/users/SimonKrughoff/repos","events_url":"https://api.github.com/users/SimonKrughoff/events{/privacy}","received_events_url":"https://api.github.com/users/SimonKrughoff/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":13,"created_at":"2016-02-16T01:24:14Z","updated_at":"2016-02-19T14:12:39Z","closed_at":"2016-02-19T00:27:50Z","body":"I just installed this on top of a miniconda install on a Mac running El Cap.  When trying to use the `lookup_id` method, it segfaults unless another method is called first.\r\n\r\nE.g.\r\n```\r\nPython 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:57:58)\r\n[GCC 4.2.1 (Apple Inc. build 5577)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\nAnaconda is brought to you by Continuum Analytics.\r\nPlease check out: http://continuum.io/thanks and https://anaconda.org\r\n>>> import esutil\r\n>>> htm = esutil.htm.HTM(8)\r\n>>> htm.lookup_id(1., 2.)\r\nSegmentation fault: 11\r\n```\r\nbut\r\n```\r\nPython 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:57:58)\r\n[GCC 4.2.1 (Apple Inc. build 5577)] on darwin\r\nType \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\nAnaconda is brought to you by Continuum Analytics.\r\nPlease check out: http://continuum.io/thanks and https://anaconda.org\r\n>>> import esutil\r\n>>> htm = esutil.htm.HTM(8)\r\n>>> htm.intersect(1.,2.,0.0001)\r\narray([1016022])\r\n>>> htm.lookup_id(3., 4.)\r\narray([1016776])\r\n```\r\nI haven't look into it, but it seems like there is some side effect that is making an assignment `lookup_id` expects."},"comment":{"url":"https://api.github.com/repos/esheldon/esutil/issues/comments/186230172","html_url":"https://github.com/esheldon/esutil/issues/12#issuecomment-186230172","issue_url":"https://api.github.com/repos/esheldon/esutil/issues/12","id":186230172,"user":{"login":"esheldon","id":621661,"avatar_url":"https://avatars.githubusercontent.com/u/621661?v=3","gravatar_id":"","url":"https://api.github.com/users/esheldon","html_url":"https://github.com/esheldon","followers_url":"https://api.github.com/users/esheldon/followers","following_url":"https://api.github.com/users/esheldon/following{/other_user}","gists_url":"https://api.github.com/users/esheldon/gists{/gist_id}","starred_url":"https://api.github.com/users/esheldon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/esheldon/subscriptions","organizations_url":"https://api.github.com/users/esheldon/orgs","repos_url":"https://api.github.com/users/esheldon/repos","events_url":"https://api.github.com/users/esheldon/events{/privacy}","received_events_url":"https://api.github.com/users/esheldon/received_events","type":"User","site_admin":false},"created_at":"2016-02-19T14:12:39Z","updated_at":"2016-02-19T14:12:39Z","body":"I'm going to try to borrow a mac to test, but might be a day or two"}}