{"action":"closed","issue":{"url":"https://api.github.com/repos/Toblerity/Shapely/issues/509","repository_url":"https://api.github.com/repos/Toblerity/Shapely","labels_url":"https://api.github.com/repos/Toblerity/Shapely/issues/509/labels{/name}","comments_url":"https://api.github.com/repos/Toblerity/Shapely/issues/509/comments","events_url":"https://api.github.com/repos/Toblerity/Shapely/issues/509/events","html_url":"https://github.com/Toblerity/Shapely/issues/509","id":249830307,"number":509,"title":"Python interpreter crash with one-point LineString","user":{"login":"LauritzThaulow","id":7396087,"avatar_url":"https://avatars2.githubusercontent.com/u/7396087?v=4","gravatar_id":"","url":"https://api.github.com/users/LauritzThaulow","html_url":"https://github.com/LauritzThaulow","followers_url":"https://api.github.com/users/LauritzThaulow/followers","following_url":"https://api.github.com/users/LauritzThaulow/following{/other_user}","gists_url":"https://api.github.com/users/LauritzThaulow/gists{/gist_id}","starred_url":"https://api.github.com/users/LauritzThaulow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LauritzThaulow/subscriptions","organizations_url":"https://api.github.com/users/LauritzThaulow/orgs","repos_url":"https://api.github.com/users/LauritzThaulow/repos","events_url":"https://api.github.com/users/LauritzThaulow/events{/privacy}","received_events_url":"https://api.github.com/users/LauritzThaulow/received_events","type":"User","site_admin":false},"labels":[{"id":84082908,"url":"https://api.github.com/repos/Toblerity/Shapely/labels/bug","name":"bug","color":"eb6420","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Toblerity/Shapely/milestones/17","html_url":"https://github.com/Toblerity/Shapely/milestone/17","labels_url":"https://api.github.com/repos/Toblerity/Shapely/milestones/17/labels","id":921268,"number":17,"title":"1.6","description":null,"creator":{"login":"sgillies","id":33697,"avatar_url":"https://avatars2.githubusercontent.com/u/33697?v=4","gravatar_id":"","url":"https://api.github.com/users/sgillies","html_url":"https://github.com/sgillies","followers_url":"https://api.github.com/users/sgillies/followers","following_url":"https://api.github.com/users/sgillies/following{/other_user}","gists_url":"https://api.github.com/users/sgillies/gists{/gist_id}","starred_url":"https://api.github.com/users/sgillies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgillies/subscriptions","organizations_url":"https://api.github.com/users/sgillies/orgs","repos_url":"https://api.github.com/users/sgillies/repos","events_url":"https://api.github.com/users/sgillies/events{/privacy}","received_events_url":"https://api.github.com/users/sgillies/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":58,"state":"open","created_at":"2015-01-04T22:01:17Z","updated_at":"2017-08-18T21:59:45Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-08-12T19:19:07Z","updated_at":"2017-08-18T21:59:45Z","closed_at":"2017-08-18T21:59:45Z","body":"## Expected behavior and actual behavior.\r\n\r\nThe python interpreter crashes on this code:\r\n\r\n    from shapely.geometry import LineString\r\n\r\n    ls = LineString([(0, 0)])\r\n    str(ls)\r\n\r\nThe line instantiating the LineString executes fine, but prints a warning to the log:\r\n\r\n    IllegalArgumentException: point array must contain 0 or >1 elements\r\n\r\nThe last line crashes python with a segmentation fault.\r\n\r\nThe expected behavior would be that instantiation raises a ValueError.\r\n\r\n## Operating system\r\n\r\nUbuntu 16.04 with Python 3.5.2\r\n\r\n## Shapely version and provenance\r\n\r\n1.6b4 installed from PyPI using `pip install --user`\r\n"}}
{"actor":{"display_login":"sgillies"}}