{"action":"closed","issue":{"url":"https://api.github.com/repos/kitchenknif/CAMFR/issues/11","repository_url":"https://api.github.com/repos/kitchenknif/CAMFR","labels_url":"https://api.github.com/repos/kitchenknif/CAMFR/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/kitchenknif/CAMFR/issues/11/comments","events_url":"https://api.github.com/repos/kitchenknif/CAMFR/issues/11/events","html_url":"https://github.com/kitchenknif/CAMFR/issues/11","id":313172565,"number":11,"title":"SegFault on passing Section object","user":{"login":"demisjohn","id":5370181,"avatar_url":"https://avatars2.githubusercontent.com/u/5370181?v=4","gravatar_id":"","url":"https://api.github.com/users/demisjohn","html_url":"https://github.com/demisjohn","followers_url":"https://api.github.com/users/demisjohn/followers","following_url":"https://api.github.com/users/demisjohn/following{/other_user}","gists_url":"https://api.github.com/users/demisjohn/gists{/gist_id}","starred_url":"https://api.github.com/users/demisjohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demisjohn/subscriptions","organizations_url":"https://api.github.com/users/demisjohn/orgs","repos_url":"https://api.github.com/users/demisjohn/repos","events_url":"https://api.github.com/users/demisjohn/events{/privacy}","received_events_url":"https://api.github.com/users/demisjohn/received_events","type":"User","site_admin":false},"labels":[{"id":457075126,"url":"https://api.github.com/repos/kitchenknif/CAMFR/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-04-11T04:49:04Z","updated_at":"2018-04-11T04:49:39Z","closed_at":"2018-04-11T04:49:39Z","author_association":"COLLABORATOR","body":"_From @demisjohn on March 7, 2018 13:43_\n\nNote from ~2010:\r\n\r\n>  You can NOT pass the calculated waveguide (Section or Slab) object as a returned variable if you try to pass it & use it, you get a segmentation fault or other strange errors.\r\n\r\n> Hence the need to perform analysis of the mode within the same function that solves for it, redoing the same modesolver multiple times in a single script if you choose to functionalize it.\r\n\r\nApparently this is only true of a Section object that has already had `SectionObj.calc()` called on it (modes solver for).\r\n\r\nShould check this to see if it's still true that this crashes python.  Not sure where in the cython code this could be caused, but presumably we could find the array that is not `malloc()`'d properly or something.\n\n_Copied from original issue: demisjohn/CAMFR#7_"}}
{"actor":{"display_login":"demisjohn"}}