{"action":"created","issue":{"url":"https://api.github.com/repos/pygeode/pygeode/issues/113","repository_url":"https://api.github.com/repos/pygeode/pygeode","labels_url":"https://api.github.com/repos/pygeode/pygeode/issues/113/labels{/name}","comments_url":"https://api.github.com/repos/pygeode/pygeode/issues/113/comments","events_url":"https://api.github.com/repos/pygeode/pygeode/issues/113/events","html_url":"https://github.com/pygeode/pygeode/issues/113","id":356769030,"node_id":"MDU6SXNzdWUzNTY3NjkwMzA=","number":113,"title":"Segementation fault when saving netcdf with list in attributes","user":{"login":"jws52","id":15977477,"node_id":"MDQ6VXNlcjE1OTc3NDc3","avatar_url":"https://avatars0.githubusercontent.com/u/15977477?v=4","gravatar_id":"","url":"https://api.github.com/users/jws52","html_url":"https://github.com/jws52","followers_url":"https://api.github.com/users/jws52/followers","following_url":"https://api.github.com/users/jws52/following{/other_user}","gists_url":"https://api.github.com/users/jws52/gists{/gist_id}","starred_url":"https://api.github.com/users/jws52/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jws52/subscriptions","organizations_url":"https://api.github.com/users/jws52/orgs","repos_url":"https://api.github.com/users/jws52/repos","events_url":"https://api.github.com/users/jws52/events{/privacy}","received_events_url":"https://api.github.com/users/jws52/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"neishm","id":1554921,"node_id":"MDQ6VXNlcjE1NTQ5MjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1554921?v=4","gravatar_id":"","url":"https://api.github.com/users/neishm","html_url":"https://github.com/neishm","followers_url":"https://api.github.com/users/neishm/followers","following_url":"https://api.github.com/users/neishm/following{/other_user}","gists_url":"https://api.github.com/users/neishm/gists{/gist_id}","starred_url":"https://api.github.com/users/neishm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neishm/subscriptions","organizations_url":"https://api.github.com/users/neishm/orgs","repos_url":"https://api.github.com/users/neishm/repos","events_url":"https://api.github.com/users/neishm/events{/privacy}","received_events_url":"https://api.github.com/users/neishm/received_events","type":"User","site_admin":false},"assignees":[{"login":"neishm","id":1554921,"node_id":"MDQ6VXNlcjE1NTQ5MjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1554921?v=4","gravatar_id":"","url":"https://api.github.com/users/neishm","html_url":"https://github.com/neishm","followers_url":"https://api.github.com/users/neishm/followers","following_url":"https://api.github.com/users/neishm/following{/other_user}","gists_url":"https://api.github.com/users/neishm/gists{/gist_id}","starred_url":"https://api.github.com/users/neishm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neishm/subscriptions","organizations_url":"https://api.github.com/users/neishm/orgs","repos_url":"https://api.github.com/users/neishm/repos","events_url":"https://api.github.com/users/neishm/events{/privacy}","received_events_url":"https://api.github.com/users/neishm/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2018-09-04T11:33:27Z","updated_at":"2018-09-19T16:18:29Z","closed_at":null,"author_association":"NONE","body":"I found this happens in pygeode1.2.0 (and in 1.1.0) with a dataset or a variable. If I create an attribute where the value is a list, working with it is still fine, but saving to netcdf causes a segmentation fault. Minimal example for a variable:\r\n\r\n```\r\ntest = pyg.Var(name='testvar',values=range(3),axes=[pyg.Lon(3)]);\r\ntest.atts['someitem']='a'\r\npyg.save('test.nc',test) # this succeeds\r\ntest.atts['somelist']=['a']\r\ntest.atts['somelist']\r\npyg.save('test.nc',test) # this causes \"Segmentation fault (core dumped)\"\r\n```\r\n\r\nPerhaps this is an issue with netcdf rather than pygeode, but I'm not sure.\r\n\r\nI don't need this resolved, but thought I'd raise it in case it is unintended behaviour."},"comment":{"url":"https://api.github.com/repos/pygeode/pygeode/issues/comments/422865602","html_url":"https://github.com/pygeode/pygeode/issues/113#issuecomment-422865602","issue_url":"https://api.github.com/repos/pygeode/pygeode/issues/113","id":422865602,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjg2NTYwMg==","user":{"login":"neishm","id":1554921,"node_id":"MDQ6VXNlcjE1NTQ5MjE=","avatar_url":"https://avatars2.githubusercontent.com/u/1554921?v=4","gravatar_id":"","url":"https://api.github.com/users/neishm","html_url":"https://github.com/neishm","followers_url":"https://api.github.com/users/neishm/followers","following_url":"https://api.github.com/users/neishm/following{/other_user}","gists_url":"https://api.github.com/users/neishm/gists{/gist_id}","starred_url":"https://api.github.com/users/neishm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neishm/subscriptions","organizations_url":"https://api.github.com/users/neishm/orgs","repos_url":"https://api.github.com/users/neishm/repos","events_url":"https://api.github.com/users/neishm/events{/privacy}","received_events_url":"https://api.github.com/users/neishm/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T16:18:29Z","updated_at":"2018-09-19T16:18:29Z","author_association":"MEMBER","body":"The segmentation fault should be fixed in the release-1.2 branch now, and will be in the next release (either 1.2.3 or 1.3.0)."}}
{"actor":{"display_login":"neishm"}}