{"action":"created","issue":{"url":"https://api.github.com/repos/danielquinn/paperless/issues/98","repository_url":"https://api.github.com/repos/danielquinn/paperless","labels_url":"https://api.github.com/repos/danielquinn/paperless/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/danielquinn/paperless/issues/98/comments","events_url":"https://api.github.com/repos/danielquinn/paperless/issues/98/events","html_url":"https://github.com/danielquinn/paperless/issues/98","id":143056728,"number":98,"title":"Imagemagick memory usage/crash","user":{"login":"evils","id":1525283,"avatar_url":"https://avatars.githubusercontent.com/u/1525283?v=3","gravatar_id":"","url":"https://api.github.com/users/evils","html_url":"https://github.com/evils","followers_url":"https://api.github.com/users/evils/followers","following_url":"https://api.github.com/users/evils/following{/other_user}","gists_url":"https://api.github.com/users/evils/gists{/gist_id}","starred_url":"https://api.github.com/users/evils/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evils/subscriptions","organizations_url":"https://api.github.com/users/evils/orgs","repos_url":"https://api.github.com/users/evils/repos","events_url":"https://api.github.com/users/evils/events{/privacy}","received_events_url":"https://api.github.com/users/evils/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/danielquinn/paperless/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-23T19:26:15Z","updated_at":"2016-04-10T09:40:42Z","closed_at":"2016-03-27T19:32:44Z","body":"I recently started using this project on a Raspberry PI 2 B attached to a feed scanner. Smaller documents seem to work just perfect, while anything bigger than 20 mb seems to break as imagemagick crashes when converting.\r\n\r\nThe \"full\" error looks to be:\r\n`Mar 23 18:57:30 secondary-pi2 python[208]: Consuming /home/paperless/documents/scans/scan.tiff\r\nMar 23 18:57:30 secondary-pi2 python[208]: Generating greyscale image from /home/paperless/documents/scans/scan.tiff\r\nMar 23 18:59:17 secondary-pi2 python[208]: convert: unable to extent pixel cache `No such file or directory' @ fatal/cache.c/CacheSignalHandler/3381.\r\nMar 23 18:59:31 secondary-pi2 python[208]: Generating the thumbnail\r\nMar 23 19:02:26 secondary-pi2 python[208]: convert: unable to extent pixel cache `No such file or directory' @ fatal/cache.c/CacheSignalHandler/3381.\r\nMar 23 19:02:29 secondary-pi2 python[208]: OCR FAILURE for /home/paperless/documents/scans/scan.tiff: No images found`\r\n\r\nA google search for that error reveals that it's a out of memory exception that `convert` runs in and crashes. There seems to be a `--limit-memory` option that would most likely solve this.\r\nOther systems will most likely run into the same problem once reaching their file size limit."},"comment":{"url":"https://api.github.com/repos/danielquinn/paperless/issues/comments/207951050","html_url":"https://github.com/danielquinn/paperless/issues/98#issuecomment-207951050","issue_url":"https://api.github.com/repos/danielquinn/paperless/issues/98","id":207951050,"user":{"login":"ahxxm","id":1286225,"avatar_url":"https://avatars.githubusercontent.com/u/1286225?v=3","gravatar_id":"","url":"https://api.github.com/users/ahxxm","html_url":"https://github.com/ahxxm","followers_url":"https://api.github.com/users/ahxxm/followers","following_url":"https://api.github.com/users/ahxxm/following{/other_user}","gists_url":"https://api.github.com/users/ahxxm/gists{/gist_id}","starred_url":"https://api.github.com/users/ahxxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahxxm/subscriptions","organizations_url":"https://api.github.com/users/ahxxm/orgs","repos_url":"https://api.github.com/users/ahxxm/repos","events_url":"https://api.github.com/users/ahxxm/events{/privacy}","received_events_url":"https://api.github.com/users/ahxxm/received_events","type":"User","site_admin":false},"created_at":"2016-04-10T09:40:42Z","updated_at":"2016-04-10T09:40:42Z","body":"I've built docker image on latest master(as of now), with `MAGICK_MEMORY_LIMIT=20000000` in `docker-compose.env`, memory of `convert` still explodes a while after it starts generating greyscale image.. not sure why.\r\nMy environment: manjaro linux(arch), docker 1.10.3 build 20f81dd, docker-compose 1.6.2 pip version"}}