OpenPrinting / system-config-printer

Graphical user interface for CUPS administration
GNU General Public License v2.0
163 stars 89 forks source link

'orientation-requested' and 'print-quality' has value '0' error messages #105

Closed Atalanttore closed 6 years ago

Atalanttore commented 6 years ago

Hi,

CUPS stopped working suddenly on my Ubuntu machine. So I opened the settings of my printer in the system-config-printer 1.5.9 utility which welcomes me with two error messages.

First dialog: Option 'orientation-requested' has value '0' and cannot be edited.

Second dialog: Option 'print-quality' has value '0' and cannot be edited.

After clicking OK two times Apport reported an error in /usr/share/system-config-printer/system-config-printer.py

because of system-config-printer.py crashed with TypeError in __init__(): debugprint() takes 1 positional argument but 2 were given

CupsErrorLog:

[cups-deviced] PID 19691 (gutenprint52+usb) stopped with status 1!
Unable to create "/etc/cups/subscriptions.conf.N": No such file or directory

See also: Bug report at Launchpad.

Regards, Atalanttore

zdohnal commented 6 years ago

Hi, thank you for reporting this issue! Unfortunately, most of the issue is problems in other printing components - CUPS, gutenprint - so it is difficult to tell if the problem really lies in s-c-p. Only issue, which I can totally tell it is s-c-p is crash due TypeError. But there is again difficult to tell where problem was without a backtrace or traceback - apport files weren't so much helpful in this regard. Would you mind giving me any traceback of TypeError crash? And CUPS and gutenprint issue please report on Ubuntu support to correct components.

jnumm commented 6 years ago

Hi,

I haven't experienced the crash but I tried to look for debugprint usage errors, and found one (where instead of , there should be %). My method was to use git grep 'debugprint.*%' and its variations and look through the results.

https://github.com/zdohnal/system-config-printer/blob/8b359b28d4af1fdb976779c83f1afc80270f978b/newprinter.py#L1052

zdohnal commented 6 years ago

@jnumm Nice find, Juhani! Thank you! I'll close this issue with commit 027ed86 , because it is only clear problem with s-c-p from the issue.