[Kde-print-devel] [Bug 162429] New: Printing of e.g. odd pages in range "58" fails but doesn't give a error message

Sven 'Swoon' Wehner swoon at freenet.de
Wed May 21 20:50:14 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=162429         
           Summary: Printing of e.g. odd pages in range "58" fails but
                    doesn't give a error message
           Product: kdeprint
           Version: unspecified
          Platform: Gentoo Packages
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: kde-print-devel kde org
        ReportedBy: swoon freenet de


Version:            (using KDE 3.5.9)
Installed from:    Gentoo Packages
Compiler:          gcc-4.1.2 
OS:                Linux

This is a rather not important bug, which happens only for "stupid" users, but it annoys anyway and should be fixable quite easy.

Today I wanted to print the pages 57-59 with kpdf and because my printer is a half-duplex one, I first printed the odd pages from the range "57-59" (which worked very well). And then I changed the range (instead of the odd/even pages combo box) to "58". So I tried to print all odd pages within a range that doesn't contain any odd pages. But the problem is, that I didn't get any error messages at all. So I had to check the cups logs.

Cups reports (/var/log/cups/error_log):
  ...
  E [21/May/2008:20:28:19 +0200] [Job 389] No pages found!
  E [21/May/2008:20:28:19 +0200] PID 24874 (/usr/libexec/cups/filter/rastertohp) stopped with status 1!
  I [21/May/2008:20:28:19 +0200] Hint: Try setting the LogLevel to "debug" to find out more.
  ...

The first one is actually a quite good error message... but I oversaw it. And then I checked my system...


I suggest writing a simple error checking like:
  if(count(pages) <= 0)
    print_error("The number of pages you selected is zero!\nPlease check your page range and page set.");


More information about the Kde-print-devel mailing list