{"action":"opened","issue":{"url":"https://api.github.com/repos/waveform80/picamera/issues/313","repository_url":"https://api.github.com/repos/waveform80/picamera","labels_url":"https://api.github.com/repos/waveform80/picamera/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/waveform80/picamera/issues/313/comments","events_url":"https://api.github.com/repos/waveform80/picamera/issues/313/events","html_url":"https://github.com/waveform80/picamera/issues/313","id":169971701,"number":313,"title":"Re-using PiBayerArray","user":{"login":"rwb27","id":5029703,"avatar_url":"https://avatars.githubusercontent.com/u/5029703?v=3","gravatar_id":"","url":"https://api.github.com/users/rwb27","html_url":"https://github.com/rwb27","followers_url":"https://api.github.com/users/rwb27/followers","following_url":"https://api.github.com/users/rwb27/following{/other_user}","gists_url":"https://api.github.com/users/rwb27/gists{/gist_id}","starred_url":"https://api.github.com/users/rwb27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rwb27/subscriptions","organizations_url":"https://api.github.com/users/rwb27/orgs","repos_url":"https://api.github.com/users/rwb27/repos","events_url":"https://api.github.com/users/rwb27/events{/privacy}","received_events_url":"https://api.github.com/users/rwb27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-08-08T16:54:11Z","updated_at":"2016-08-08T16:54:11Z","closed_at":null,"body":"I used a `picamera.array.PiBayerArray` to store the raw image from my camera, and then to convert it to a more manageable RGB format - it's very convenient so thanks for including this.\r\n\r\nI used this in a loop to acquire lots of images and it crashes after acquiring about 62; I think this is because I didn't call `truncate(0)` each time.  Would it make sense to automatically truncate the array when it's used for a new image?  I'm happy to have a go at some code to do that if it would be helpful.\r\n\r\nThanks,\r\n\r\nRichard"}}
{"actor":{"display_login":"rwb27"}}