{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/core/issues/23889","repository_url":"https://api.github.com/repos/owncloud/core","labels_url":"https://api.github.com/repos/owncloud/core/issues/23889/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/core/issues/23889/comments","events_url":"https://api.github.com/repos/owncloud/core/issues/23889/events","html_url":"https://github.com/owncloud/core/issues/23889","id":147181294,"number":23889,"title":"Add try-catch to all image operations which require a large amount of memory","user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/core/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/owncloud/core/labels/feature:previews","name":"feature:previews","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/owncloud/core/milestones/62","html_url":"https://github.com/owncloud/core/milestones/9.1-current","labels_url":"https://api.github.com/repos/owncloud/core/milestones/62/labels","id":1322460,"number":62,"title":"9.1-current","description":"","creator":{"login":"MorrisJobke","id":245432,"avatar_url":"https://avatars.githubusercontent.com/u/245432?v=3","gravatar_id":"","url":"https://api.github.com/users/MorrisJobke","html_url":"https://github.com/MorrisJobke","followers_url":"https://api.github.com/users/MorrisJobke/followers","following_url":"https://api.github.com/users/MorrisJobke/following{/other_user}","gists_url":"https://api.github.com/users/MorrisJobke/gists{/gist_id}","starred_url":"https://api.github.com/users/MorrisJobke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MorrisJobke/subscriptions","organizations_url":"https://api.github.com/users/MorrisJobke/orgs","repos_url":"https://api.github.com/users/MorrisJobke/repos","events_url":"https://api.github.com/users/MorrisJobke/events{/privacy}","received_events_url":"https://api.github.com/users/MorrisJobke/received_events","type":"User","site_admin":false},"open_issues":707,"closed_issues":379,"state":"open","created_at":"2015-09-24T16:30:14Z","updated_at":"2016-04-10T22:40:51Z","due_on":null,"closed_at":null},"comments":10,"created_at":"2016-04-10T01:11:32Z","updated_at":"2016-04-10T22:40:51Z","closed_at":"2016-04-10T22:40:51Z","body":"<!--\r\nThanks for reporting issues back to ownCloud! This is the issue tracker of ownCloud, if you have any support question please check out https://owncloud.org/support\r\n\r\nThis is the bug tracker for the Server component. Find other components at https://github.com/owncloud/core/blob/master/CONTRIBUTING.md#guidelines\r\n\r\nTo make it possible for us to help you please fill out below information carefully.\r\n--> \r\n### Steps to reproduce\r\n1. Set a low memory limit in PHP\r\n2. Upload a large JPEG\r\n3. Open the ownCloud log\r\n\r\n### Expected behaviour\r\nI should see a thumbnail\r\n\r\n### Actual behaviour\r\nI get the media type icon and this in the logs\r\n`PHP Fatal error:  Allowed memory size of 134217728 bytes exhausted (tried to allocate 16384 bytes) in /snaps/owncloud.sideload/LVnYLRhPbbMD/htdocs/lib/private/image.php on line 427`\r\n\r\nThe solution is probably to add a try catch to https://github.com/owncloud/core/blob/master/lib/private/image.php#L427\r\nand all resizing operations.\r\n\r\nSee the PHP 7 doc: https://secure.php.net/manual/en/language.errors.php7.php\r\n\r\n@georgehrke @icewind1991 \r\n\r\n### Server configuration\r\n\r\n**PHP version:** Any\r\n\r\n**ownCloud version:** 9\r\n\r\n**Updated from an older ownCloud or fresh install:** fresh\r\n\r\n**Where did you install ownCloud from:** owncloud-snap\r\n"},"comment":{"url":"https://api.github.com/repos/owncloud/core/issues/comments/208086472","html_url":"https://github.com/owncloud/core/issues/23889#issuecomment-208086472","issue_url":"https://api.github.com/repos/owncloud/core/issues/23889","id":208086472,"user":{"login":"oparoz","id":323220,"avatar_url":"https://avatars.githubusercontent.com/u/323220?v=3","gravatar_id":"","url":"https://api.github.com/users/oparoz","html_url":"https://github.com/oparoz","followers_url":"https://api.github.com/users/oparoz/followers","following_url":"https://api.github.com/users/oparoz/following{/other_user}","gists_url":"https://api.github.com/users/oparoz/gists{/gist_id}","starred_url":"https://api.github.com/users/oparoz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oparoz/subscriptions","organizations_url":"https://api.github.com/users/oparoz/orgs","repos_url":"https://api.github.com/users/oparoz/repos","events_url":"https://api.github.com/users/oparoz/events{/privacy}","received_events_url":"https://api.github.com/users/oparoz/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T22:40:51Z","updated_at":"2016-04-10T22:40:51Z","body":"Argh, you're right. Neither the PHP site nor the Symphony repo mention it clearly, but it seems that's a class of errors for which they weren't able to implement a catcher. I thought they somehow managed to introduce a buffer, but that out of memory error probably won't ever be solved..."}}