{"action":"created","issue":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/2739","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/2739/labels{/name}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/2739/comments","events_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/2739/events","html_url":"https://github.com/silverstripe/silverstripe-framework/issues/2739","id":24633059,"number":2739,"title":"Allowed memory size of 67108864 bytes exhausted in framework/filesystem/GD.php","user":{"login":"ac7web","id":919329,"avatar_url":"https://avatars.githubusercontent.com/u/919329?v=3","gravatar_id":"","url":"https://api.github.com/users/ac7web","html_url":"https://github.com/ac7web","followers_url":"https://api.github.com/users/ac7web/followers","following_url":"https://api.github.com/users/ac7web/following{/other_user}","gists_url":"https://api.github.com/users/ac7web/gists{/gist_id}","starred_url":"https://api.github.com/users/ac7web/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ac7web/subscriptions","organizations_url":"https://api.github.com/users/ac7web/orgs","repos_url":"https://api.github.com/users/ac7web/repos","events_url":"https://api.github.com/users/ac7web/events{/privacy}","received_events_url":"https://api.github.com/users/ac7web/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/labels/change/patch","name":"change/patch","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-12-20T16:26:46Z","updated_at":"2015-05-13T17:50:18Z","closed_at":null,"body":"PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted (tried to allocate 11328 bytes) in ...../httpdocs/framework/filesystem/GD.php on line 51, \r\n\r\nSteps to reproduce: \r\n1. Upload say 20 camera-sized HQ images\r\n2. Flush the cache with ?flush=all.\r\n3. Go to files in the Silverstripe CMS menu and list the content of the Uploads folder (where the images get saved). The system tries to generate the thumbnails all at once and dies trying.\r\n\r\nIf it were a smaller amount, I'd just say 'add more memory' but when the server ends up allocating 128Meg of a 512M limit, it's getting silly - especially when we're planning on having more than a few sites on there.\r\n\r\nI'm guessing this might be caused by the framework not freeing up the memory for the image after creating the thumbnail, or something. It wouldn't take too many HQ images to quickly exceed the limit. This might be as simple as adding an 'imagedestroy' somewhere...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/comments/101758074","html_url":"https://github.com/silverstripe/silverstripe-framework/issues/2739#issuecomment-101758074","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-framework/issues/2739","id":101758074,"user":{"login":"jonom","id":1079425,"avatar_url":"https://avatars.githubusercontent.com/u/1079425?v=3","gravatar_id":"","url":"https://api.github.com/users/jonom","html_url":"https://github.com/jonom","followers_url":"https://api.github.com/users/jonom/followers","following_url":"https://api.github.com/users/jonom/following{/other_user}","gists_url":"https://api.github.com/users/jonom/gists{/gist_id}","starred_url":"https://api.github.com/users/jonom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonom/subscriptions","organizations_url":"https://api.github.com/users/jonom/orgs","repos_url":"https://api.github.com/users/jonom/repos","events_url":"https://api.github.com/users/jonom/events{/privacy}","received_events_url":"https://api.github.com/users/jonom/received_events","type":"User","site_admin":false},"created_at":"2015-05-13T17:50:17Z","updated_at":"2015-05-13T17:50:17Z","body":"Think this can be closed, fixed for 3.2 thanks to Loz's work in #2859."}}