{"action":"created","issue":{"url":"https://api.github.com/repos/jflesch/paperwork/issues/375","labels_url":"https://api.github.com/repos/jflesch/paperwork/issues/375/labels{/name}","comments_url":"https://api.github.com/repos/jflesch/paperwork/issues/375/comments","events_url":"https://api.github.com/repos/jflesch/paperwork/issues/375/events","html_url":"https://github.com/jflesch/paperwork/issues/375","id":73894384,"number":375,"title":"Problems adding more than one page to a document","user":{"login":"textPreferred","id":1721427,"avatar_url":"https://avatars.githubusercontent.com/u/1721427?v=3","gravatar_id":"","url":"https://api.github.com/users/textPreferred","html_url":"https://github.com/textPreferred","followers_url":"https://api.github.com/users/textPreferred/followers","following_url":"https://api.github.com/users/textPreferred/following{/other_user}","gists_url":"https://api.github.com/users/textPreferred/gists{/gist_id}","starred_url":"https://api.github.com/users/textPreferred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textPreferred/subscriptions","organizations_url":"https://api.github.com/users/textPreferred/orgs","repos_url":"https://api.github.com/users/textPreferred/repos","events_url":"https://api.github.com/users/textPreferred/events{/privacy}","received_events_url":"https://api.github.com/users/textPreferred/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jflesch/paperwork/labels/bug","name":"bug","color":"444444"},{"url":"https://api.github.com/repos/jflesch/paperwork/labels/to%20study","name":"to study","color":"0000FF"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jflesch/paperwork/milestones/14","html_url":"https://github.com/jflesch/paperwork/milestones/0.2.5-stable","labels_url":"https://api.github.com/repos/jflesch/paperwork/milestones/14/labels","id":1096556,"number":14,"title":"0.2.5-stable","description":"","creator":{"login":"jflesch","id":135331,"avatar_url":"https://avatars.githubusercontent.com/u/135331?v=3","gravatar_id":"","url":"https://api.github.com/users/jflesch","html_url":"https://github.com/jflesch","followers_url":"https://api.github.com/users/jflesch/followers","following_url":"https://api.github.com/users/jflesch/following{/other_user}","gists_url":"https://api.github.com/users/jflesch/gists{/gist_id}","starred_url":"https://api.github.com/users/jflesch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jflesch/subscriptions","organizations_url":"https://api.github.com/users/jflesch/orgs","repos_url":"https://api.github.com/users/jflesch/repos","events_url":"https://api.github.com/users/jflesch/events{/privacy}","received_events_url":"https://api.github.com/users/jflesch/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2015-05-05T09:16:20Z","updated_at":"2015-05-07T08:33:43Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-05-07T08:24:33Z","updated_at":"2015-05-07T09:04:02Z","closed_at":null,"body":"Creating a document by scanning the first page is fine. OCR fires and it is added as a \"page\" to the document.\r\n\r\nWhen scanning the second page, things go all wrong:\r\n- OCR process not shown in the UI\r\n- page is not added to the document cf. screenshot\r\n- page is shown in low-res (OCR) quality, cf. screenshot\r\n- the progress bar in the lower left stays at 0% which looks very suspicious\r\n\r\nMisc. information:\r\n- Issue may be connected to updating my Ubuntu system.\r\n- I have updated paperwork (\"sude pip install --update paperwork\") but this did not help.\r\n\r\nPlease find a screenshot and the console output below.\r\n\r\n![paperwork_problem_with_second_page](https://cloud.githubusercontent.com/assets/1721427/7511160/316d1424-f4a3-11e4-929d-3ceb17c84033.png)\r\n\r\n\r\n```\r\nINFO   paperwork.frontend.mainwindow.scan Scan done\r\nINFO   paperwork.frontend.mainwindow.scan Will use tool 'Cuneiform'\r\nINFO   paperwork.frontend.mainwindow.scan Failed to use OCR tool heuristic for orientation detection: OCR tool does not support orientation detection\r\nINFO   paperwork.frontend.mainwindow.scan Falling back on Paperwork's heuristic\r\nINFO   paperwork.frontend.mainwindow.scan Animator: Angle 0: (88, 400) (600, 830) -> (74, 433) (240, 348)\r\nINFO   paperwork.frontend.mainwindow.scan Animator: Angle 90: (88, 400) (600, 830) -> (462, 433) (240, 348)\r\nINFO   paperwork.frontend.mainwindow.scan Animator: Angle 180: (88, 400) (600, 830) -> (74, 848) (240, 348)\r\nINFO   paperwork.frontend.mainwindow.scan Animator: Angle 270: (88, 400) (600, 830) -> (462, 848) (240, 348)\r\nINFO   paperwork.frontend.mainwindow.scan Starting OCR on angle 0\r\nINFO   paperwork.frontend.mainwindow.scan Running OCR on page orientation 0\r\nINFO   paperwork.frontend.mainwindow.scan Starting OCR on angle 90\r\nINFO   paperwork.frontend.mainwindow.scan Running OCR on page orientation 1\r\nINFO   paperwork.frontend.mainwindow.scan Starting OCR on angle 180\r\nINFO   paperwork.frontend.mainwindow.scan Running OCR on page orientation 2\r\nINFO   paperwork.frontend.mainwindow.scan Starting OCR on angle 270\r\nINFO   paperwork.frontend.mainwindow.scan Running OCR on page orientation 3\r\nINFO   paperwork.frontend.mainwindow.scan Evaluating score of page orientation (0) using method 'spell_checker' ...\r\nINFO   paperwork.frontend.mainwindow.scan Evaluating score of page orientation (3) using method 'spell_checker' ...\r\nINFO   paperwork.frontend.mainwindow.scan Evaluating score of page orientation (2) using method 'spell_checker' ...\r\nINFO   paperwork.frontend.mainwindow.scan Evaluating score of page orientation (1) using method 'spell_checker' ...\r\nINFO   paperwork.frontend.mainwindow.scan OCR done on angle 0: 435.000000\r\nINFO   paperwork.frontend.mainwindow.scan OCR done on angle 270: 5.000000\r\nINFO   paperwork.frontend.mainwindow.scan OCR done on angle 180: 45.000000\r\nINFO   paperwork.frontend.mainwindow.scan OCR done on angle 90: 205.000000\r\nINFO   paperwork.frontend.mainwindow.scan Best: 435.000000\r\nWARNING paperwork.frontend.util.jobs   Job OCR:0 took 25264ms and is unstoppable ! (maximum allowed: 500ms)\r\nINFO   paperwork.frontend.util.canvas Animators: 2\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nINFO   paperwork.frontend.util.canvas Animators: 1\r\nINFO   paperwork.frontend.util.canvas Animators: 2\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/__init__.py\", line 208, in __on_draw\r\n    drawer.draw(cairo_ctx)\r\n  File \"/usr/local/lib/python2.7/dist-packages/paperwork/frontend/util/canvas/animations.py\", line 197, in draw\r\n    (self.frame % self.nb_frames[0]),\r\nZeroDivisionError: integer division or modulo by zero\r\nINFO   paperwork.frontend.util.canvas Animators: 1\r\nINFO   paperwork.frontend.util.actions Action: [Show a page (selected from the page thumbnail list)]\r\nINFO   root                           Showing page 20150506_2022_10 p1\r\nINFO   paperwork.frontend.util.actions Action: [Label selected]\r\nINFO   paperwork.frontend.util.actions Action: [Show a page (selected from the page thumbnail list)]\r\nINFO   root                           Showing page 20150506_2022_10 p1\r\nINFO   paperwork.frontend.util.actions Action: [Show a page (selected from the page thumbnail list)]\r\nINFO   paperwork.frontend.util.actions Action: [Show a page (selected from the page thumbnail list)]\r\nINFO   root                           Showing page 20150506_2022_10 p1\r\nINFO   paperwork.frontend.util.actions Action: [Show a page (selected from the page thumbnail list)]\r\nINFO   paperwork.frontend.util.actions Action: [Open selected document]\r\nINFO   paperwork.frontend.mainwindow  Showing doc 20150506_2022_10\r\nINFO   paperwork.frontend.mainwindow  Doc is already shown\r\n```"},"comment":{"url":"https://api.github.com/repos/jflesch/paperwork/issues/comments/99784651","html_url":"https://github.com/jflesch/paperwork/issues/375#issuecomment-99784651","issue_url":"https://api.github.com/repos/jflesch/paperwork/issues/375","id":99784651,"user":{"login":"textPreferred","id":1721427,"avatar_url":"https://avatars.githubusercontent.com/u/1721427?v=3","gravatar_id":"","url":"https://api.github.com/users/textPreferred","html_url":"https://github.com/textPreferred","followers_url":"https://api.github.com/users/textPreferred/followers","following_url":"https://api.github.com/users/textPreferred/following{/other_user}","gists_url":"https://api.github.com/users/textPreferred/gists{/gist_id}","starred_url":"https://api.github.com/users/textPreferred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/textPreferred/subscriptions","organizations_url":"https://api.github.com/users/textPreferred/orgs","repos_url":"https://api.github.com/users/textPreferred/repos","events_url":"https://api.github.com/users/textPreferred/events{/privacy}","received_events_url":"https://api.github.com/users/textPreferred/received_events","type":"User","site_admin":false},"created_at":"2015-05-07T09:04:02Z","updated_at":"2015-05-07T09:04:02Z","body":"Sorry, I did not see your instructions on how to test. Will follow these now."}}