{"action":"created","issue":{"url":"https://api.github.com/repos/apple/cups/issues/4991","repository_url":"https://api.github.com/repos/apple/cups","labels_url":"https://api.github.com/repos/apple/cups/issues/4991/labels{/name}","comments_url":"https://api.github.com/repos/apple/cups/issues/4991/comments","events_url":"https://api.github.com/repos/apple/cups/issues/4991/events","html_url":"https://github.com/apple/cups/issues/4991","id":223882278,"number":4991,"title":"Total page counter is inconsistent in the page_log","user":{"login":"akorobkin","id":11860670,"avatar_url":"https://avatars0.githubusercontent.com/u/11860670?v=3","gravatar_id":"","url":"https://api.github.com/users/akorobkin","html_url":"https://github.com/akorobkin","followers_url":"https://api.github.com/users/akorobkin/followers","following_url":"https://api.github.com/users/akorobkin/following{/other_user}","gists_url":"https://api.github.com/users/akorobkin/gists{/gist_id}","starred_url":"https://api.github.com/users/akorobkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akorobkin/subscriptions","organizations_url":"https://api.github.com/users/akorobkin/orgs","repos_url":"https://api.github.com/users/akorobkin/repos","events_url":"https://api.github.com/users/akorobkin/events{/privacy}","received_events_url":"https://api.github.com/users/akorobkin/received_events","type":"User","site_admin":false},"labels":[{"id":309173940,"url":"https://api.github.com/repos/apple/cups/labels/P2%20-%20Low","name":"P2 - Low","color":"009800","default":false}],"state":"open","locked":false,"assignee":{"login":"michaelrsweet","id":488103,"avatar_url":"https://avatars3.githubusercontent.com/u/488103?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelrsweet","html_url":"https://github.com/michaelrsweet","followers_url":"https://api.github.com/users/michaelrsweet/followers","following_url":"https://api.github.com/users/michaelrsweet/following{/other_user}","gists_url":"https://api.github.com/users/michaelrsweet/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelrsweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelrsweet/subscriptions","organizations_url":"https://api.github.com/users/michaelrsweet/orgs","repos_url":"https://api.github.com/users/michaelrsweet/repos","events_url":"https://api.github.com/users/michaelrsweet/events{/privacy}","received_events_url":"https://api.github.com/users/michaelrsweet/received_events","type":"User","site_admin":false},"assignees":[{"login":"michaelrsweet","id":488103,"avatar_url":"https://avatars3.githubusercontent.com/u/488103?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelrsweet","html_url":"https://github.com/michaelrsweet","followers_url":"https://api.github.com/users/michaelrsweet/followers","following_url":"https://api.github.com/users/michaelrsweet/following{/other_user}","gists_url":"https://api.github.com/users/michaelrsweet/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelrsweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelrsweet/subscriptions","organizations_url":"https://api.github.com/users/michaelrsweet/orgs","repos_url":"https://api.github.com/users/michaelrsweet/repos","events_url":"https://api.github.com/users/michaelrsweet/events{/privacy}","received_events_url":"https://api.github.com/users/michaelrsweet/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/apple/cups/milestones/3","html_url":"https://github.com/apple/cups/milestone/3","labels_url":"https://api.github.com/repos/apple/cups/milestones/3/labels","id":1495446,"number":3,"title":"2.2","description":"Bugs scheduled for CUPS 2.2.x.","creator":{"login":"michaelrsweet","id":488103,"avatar_url":"https://avatars3.githubusercontent.com/u/488103?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelrsweet","html_url":"https://github.com/michaelrsweet","followers_url":"https://api.github.com/users/michaelrsweet/followers","following_url":"https://api.github.com/users/michaelrsweet/following{/other_user}","gists_url":"https://api.github.com/users/michaelrsweet/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelrsweet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelrsweet/subscriptions","organizations_url":"https://api.github.com/users/michaelrsweet/orgs","repos_url":"https://api.github.com/users/michaelrsweet/repos","events_url":"https://api.github.com/users/michaelrsweet/events{/privacy}","received_events_url":"https://api.github.com/users/michaelrsweet/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":83,"state":"open","created_at":"2016-01-10T14:22:49Z","updated_at":"2017-04-24T17:40:49Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2017-04-24T16:45:40Z","updated_at":"2017-04-24T18:06:29Z","closed_at":null,"body":"When printing with CUPS 2.2.3, cups-filters 1.13.4, the number of individual pages in the log are correct, but the \"total\" line is almost always erroneous. Sometimes it is 0, which is strange. Sometimes it appears twice after printing one file. \r\n\r\nExcerpt from the log:\r\n```\r\ndalek-color korobkin 58 [24/Apr/2017:08:58:38 -0700] 1 1 - 100.106.90.151 AIUWATPoster.pdf Tabloid -\r\ndalek-color korobkin 58 [24/Apr/2017:09:00:54 -0700] total 7 - 100.106.90.151 AIUWATPoster.pdf Tabloid -\r\ndalek-color korobkin 59 [24/Apr/2017:09:00:54 -0700] 1 1 - 100.106.90.151 tillA4-A3-A4-3-pdftopdf.pdf Letter -\r\ndalek-color korobkin 59 [24/Apr/2017:09:00:54 -0700] 2 1 - 100.106.90.151 tillA4-A3-A4-3-pdftopdf.pdf Letter -\r\ndalek-color korobkin 59 [24/Apr/2017:09:00:54 -0700] 3 1 - 100.106.90.151 tillA4-A3-A4-3-pdftopdf.pdf Letter -\r\ndalek-color korobkin 60 [24/Apr/2017:09:01:15 -0700] 1 2 - 100.106.90.151 3-pages-double-sided-stapled.pdf Letter -\r\ndalek-color korobkin 60 [24/Apr/2017:09:01:15 -0700] 2 2 - 100.106.90.151 3-pages-double-sided-stapled.pdf Letter -\r\ndalek-color korobkin 60 [24/Apr/2017:09:01:15 -0700] 3 2 - 100.106.90.151 3-pages-double-sided-stapled.pdf Letter -\r\ndalek-color korobkin 60 [24/Apr/2017:09:01:19 -0700] total 0 - 100.106.90.151 3-pages-double-sided-stapled.pdf Letter -\r\ndalek-color korobkin 61 [24/Apr/2017:09:01:19 -0700] 1 2 - 100.106.90.151 7-pages-double-sided-short-edge.pdf Letter -\r\ndalek-color korobkin 61 [24/Apr/2017:09:01:19 -0700] 2 2 - 100.106.90.151 7-pages-double-sided-short-edge.pdf Letter -\r\ndalek-color korobkin 61 [24/Apr/2017:09:01:19 -0700] 3 2 - 100.106.90.151 7-pages-double-sided-short-edge.pdf Letter -\r\ndalek-color korobkin 61 [24/Apr/2017:09:01:19 -0700] 4 2 - 100.106.90.151 7-pages-double-sided-short-edge.pdf Letter -\r\ndalek-color korobkin 61 [24/Apr/2017:09:01:23 -0700] total 0 - 100.106.90.151 7-pages-double-sided-short-edge.pdf Letter -\r\ndalek-color korobkin 61 [24/Apr/2017:09:01:23 -0700] total 1 - 100.106.90.151 7-pages-double-sided-short-edge.pdf Letter -\r\ndalek-color korobkin 62 [24/Apr/2017:09:01:23 -0700] 1 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 62 [24/Apr/2017:09:01:23 -0700] 2 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 62 [24/Apr/2017:09:01:23 -0700] 3 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 62 [24/Apr/2017:09:01:23 -0700] 4 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 62 [24/Apr/2017:09:01:28 -0700] total 0 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 62 [24/Apr/2017:09:01:29 -0700] total 2 - 100.106.90.151 soyeulylich.pdf Letter -\r\n```\r\nHere, individual page counters provided by pdftopdf are correct, but the total line that I assume is inserted by CUPS itself is wrong. Tested with printers connected via IPP and Socket, no noticeable difference. \r\n\r\nAttached is a job log for Job 82, for example. It printed 4 pages, but total returned was 1. \r\n\r\n```\r\ndalek-color korobkin 82 [24/Apr/2017:09:31:58 -0700] 1 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 82 [24/Apr/2017:09:31:58 -0700] 2 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 82 [24/Apr/2017:09:31:58 -0700] 3 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 82 [24/Apr/2017:09:31:58 -0700] 4 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\ndalek-color korobkin 82 [24/Apr/2017:09:32:00 -0700] total 1 - 100.106.90.151 soyeulylich.pdf Letter -\r\n```\r\n[job82.txt](https://github.com/apple/cups/files/952497/job82.txt)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/apple/cups/issues/comments/296773961","html_url":"https://github.com/apple/cups/issues/4991#issuecomment-296773961","issue_url":"https://api.github.com/repos/apple/cups/issues/4991","id":296773961,"user":{"login":"akorobkin","id":11860670,"avatar_url":"https://avatars0.githubusercontent.com/u/11860670?v=3","gravatar_id":"","url":"https://api.github.com/users/akorobkin","html_url":"https://github.com/akorobkin","followers_url":"https://api.github.com/users/akorobkin/followers","following_url":"https://api.github.com/users/akorobkin/following{/other_user}","gists_url":"https://api.github.com/users/akorobkin/gists{/gist_id}","starred_url":"https://api.github.com/users/akorobkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akorobkin/subscriptions","organizations_url":"https://api.github.com/users/akorobkin/orgs","repos_url":"https://api.github.com/users/akorobkin/repos","events_url":"https://api.github.com/users/akorobkin/events{/privacy}","received_events_url":"https://api.github.com/users/akorobkin/received_events","type":"User","site_admin":false},"created_at":"2017-04-24T18:06:29Z","updated_at":"2017-04-24T18:06:29Z","body":"All my printers are Ricoh, and I'm using Ricoh's OpenPrinting PostScript driver with them:\r\nhttp://www.openprinting.org/driver/Postscript-Ricoh/\r\nMy models are:\r\nRicoh MP C3003\r\nRicoh MP C3004\r\nRicoh MP C306Z\r\nRicoh MP C307\r\nRicoh MP C3502\r\nRicoh MP C3503\r\nRicoh MP C3504\r\nRicoh MP C406Z\r\nRicoh MP C407\r\nRicoh MP C4503\r\nRicoh MP C4504\r\nRicoh MP C5503\r\nRicoh MP C5504\r\nRicoh MP C6003\r\nRicoh MP C6004\r\nRicoh MP C6502\r\nRicoh MP C6503\r\n\r\nThe drivers are almost identical, except for optional components and paper type options, you can use any of them for testing. For example, C3004: http://www.openprinting.org/ppd-o-matic.php?driver=Postscript-Ricoh&printer=Ricoh-MP_C3004&show=1\r\n\r\nPerhaps it would be a good idea to count the total number of pages as a sum of the pages counted by the filters? pdftopdf seems to be very good at counting these days. "}}
{"actor":{"display_login":"akorobkin"}}