system-config-printer.py crashed with AttributeError in send_reply()

Bug #520466 reported by PaulS
288
This bug affects 51 people
Affects Status Importance Assigned to Milestone
system-config-printer (Ubuntu)
Fix Released
High
Unassigned
Lucid
Fix Released
High
Unassigned

Bug Description

Binary package hint: system-config-printer

Lucid x64

ProblemType: Crash
Architecture: amd64
Date: Thu Feb 11 06:57:59 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/share/system-config-printer/system-config-printer.py
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100113)
InterpreterPath: /usr/bin/python2.6
Lpstat: device for DESKJET-840C: usb://HP/DESKJET%20840C?serial=MX15H1Y10KLP
MachineType: Dell Inc. Dell DXP061
NonfreeKernelModules: nvidia
Package: system-config-printer-gnome 1.1.16+git20100209-0ubuntu1
PackageArchitecture: all
Papersize: letter
PpdFiles: DESKJET-840C: HP Deskjet 841c hpijs, 3.9.12
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.32-12-generic root=UUID=6d58ec54-97f9-4dad-8308-6f191f4d2200 ro splash quiet
ProcCmdline: python /usr/share/system-config-printer/system-config-printer.py
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-12.17-generic
PythonArgs: ['/usr/share/system-config-printer/system-config-printer.py']
SourcePackage: system-config-printer
Title: system-config-printer.py crashed with AttributeError in send_reply()
Traceback:
 Traceback (most recent call last):
   File "/usr/share/system-config-printer/asyncipp.py", line 192, in send_reply
     self._reply_handler (self._conn, result)
 AttributeError: '_IPPConnectionThread' object has no attribute '_reply_handler'
Uname: Linux 2.6.32-12-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare
dmi.bios.date: 11/22/2007
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 2.5.3
dmi.board.name: 0WG855
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 7
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr2.5.3:bd11/22/2007:svnDellInc.:pnDellDXP061:pvr:rvnDellInc.:rn0WG855:rvr:cvnDellInc.:ct7:cvr:
dmi.product.name: Dell DXP061
dmi.sys.vendor: Dell Inc.

Revision history for this message
PaulS (stibbard) wrote :
tags: removed: need-duplicate-check
Changed in system-config-printer (Ubuntu):
status: New → Confirmed
tags: added: bugpattern-needed
visibility: private → public
Revision history for this message
houstonbofh (leesharp) wrote :

Lucid Daily patched to current 28-2-2010. Clean install from 27-2-2010. CUPS 1.4.2-9 has one printer installed. (HP Color Laser 2550)

From within Gnome;
Open Printing applet.
Add new printer to open "new Printer" applet. (Button or menu makes no difference)
Expand "Network Printer" options.
Hit Cancel to close applet.
Crash is repeatable.

(From my bug, 529517. Do not know how I missed the dupe...)

tags: added: bugpattern-written
removed: bugpattern-needed
Changed in system-config-printer (Ubuntu):
importance: Undecided → Medium
Revision history for this message
agitdd99 (agitdd99) wrote :
Download full text (7.9 KiB)

it's affected me too. first of all, i try to print a pdf file in a custom file size, and my R230 Epson printer kind of freezing. then i delete the printer in the printing device list. I turn it off, and then turn it on again. Lucid auto-detected the printer and this bug came up.

here is my syslog:

Mar 25 09:23:04 dagonet udev-configure-printer: add /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0
Mar 25 09:23:04 dagonet udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.2/usb4/4-1
Mar 25 09:23:04 dagonet udev-configure-printer: Device vendor/product is 04B8:0005
Mar 25 09:23:04 dagonet udev-configure-printer: add /devices/pci0000:00/0000:00:1d.2/usb4/4-1/4-1:1.0/usb/lp0
Mar 25 09:23:04 dagonet bluetoothd[1013]: probe failed with driver input-headset for device /org/bluez/1009/hci0/dev_00_1C_A4_E0_97_D9
Mar 25 09:23:04 dagonet bluetoothd[1013]: probe failed with driver input-headset for device /org/bluez/1009/hci0/dev_17_76_57_B3_66_01
Mar 25 09:23:04 dagonet bluetoothd[1013]: Adapter /org/bluez/1009/hci0 has been enabled
Mar 25 09:23:04 dagonet udev-configure-printer: failed to claim interface
Mar 25 09:23:04 dagonet udev-configure-printer: invalid or missing IEEE 1284 Device ID
Mar 25 09:23:04 dagonet udev-configure-printer: parent devpath is /devices/pci0000:00/0000:00:1d.2/usb4/4-1
Mar 25 09:23:04 dagonet udev-configure-printer: MFG:EPSON MDL:Stylus Photo R230 SERN:- serial:L24P10708102137110
Mar 25 09:23:05 dagonet ntpdate[1002]: step time server 91.189.94.4 offset 0.556781 sec
Mar 25 09:23:06 dagonet kernel: [ 15.655443] usb 4-1: usbfs: interface 0 claimed by usblp while 'usb' sets config #1
Mar 25 09:23:06 dagonet hp[1132]: io/hpmud/pp.c 627: unable to read device-id ret=-1
Mar 25 09:23:06 dagonet init: plymouth-stop pre-start process (1148) terminated with status 1
Mar 25 09:23:08 dagonet udev-configure-printer: URI matches without serial number: usb://EPSON/Stylus%20Photo%20R230
Mar 25 09:23:08 dagonet udev-configure-printer: No serial number URI matches so using those without
Mar 25 09:23:08 dagonet udev-configure-printer: URI of print queue: usb://EPSON/Stylus%20Photo%20R230, normalized: epson stylus photo r230
Mar 25 09:23:08 dagonet udev-configure-printer: URI of detected printer: usb://EPSON/Stylus%20Photo%20R230, normalized: epson stylus photo r230
Mar 25 09:23:08 dagonet gdm-session-worker[1163]: WARNING: Unable to load file '/etc/gdm/custom.conf': No such file or directory
Mar 25 09:23:09 dagonet anacron[1191]: Anacron 2.3 started on 2010-03-25
Mar 25 09:23:09 dagonet anacron[1191]: Normal exit (0 jobs run)
Mar 25 09:23:09 dagonet rtkit-daemon[1200]: Sucessfully called chroot.
Mar 25 09:23:09 dagonet rtkit-daemon[1200]: Sucessfully dropped privileges.
Mar 25 09:23:09 dagonet rtkit-daemon[1200]: Sucessfully limited resources.
Mar 25 09:23:09 dagonet rtkit-daemon[1200]: Running.
Mar 25 09:23:09 dagonet rtkit-daemon[1200]: Watchdog thread running.
Mar 25 09:23:09 dagonet rtkit-daemon[1200]: Canary thread running.
Mar 25 09:23:09 dagonet polkitd[1177]: started daemon version 0.96 using authority implementation `local' version `0.96'
Mar 25 09:23:09 dagonet rtkit-daemon[1200]: Sucessfully made thread 119...

Read more...

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, do you have any idea to fix this bug?

Revision history for this message
Tim Waugh (twaugh) wrote :

Does 6e3f61a fix it?

Changed in system-config-printer (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.1.17+20100217-0ubuntu4

---------------
system-config-printer (1.1.17+20100217-0ubuntu4) lucid; urgency=low

  * debian/patches/53_fix-async-ipp-traceback.patch: Fixed traceback in
    asyncipp (LP: #520466).

  * debian/patches/67_udev_configure_printer_match_usblp_libusb_and_hplip_uris.patch:
    Updated patch to make udev-configure-printer also match queues with
    non-standard CUPS backends using URIs with /dev/usb/lp* as device reference
    with detected printers. With this we avoid that additional queues with
    standard backends get auto-created.
 -- Till Kamppeter <email address hidden> Thu, 25 Mar 2010 12:32:50 +0100

Changed in system-config-printer (Ubuntu Lucid):
status: Fix Committed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, thank you very much, I have applied your fix now.

Revision history for this message
Robert Hrovat (robi-hipnos) wrote :

It's not fixed! I can't get anything from printer but keep getting this error message not metter what I do. And yes, I have latest version of system-config-printer.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Robert, do you really have the -0ubuntu4 version of system-config-printer (or later)?

Tim, are you sure that your suggested fix also covers this problem?

Revision history for this message
Robert Hrovat (robi-hipnos) wrote :

Listing shows the following:

dpkg -l | grep system-config-printer

ii system-config-printer-common 1.1.17+20100217-0ubuntu4 Printer configuration GUI
ii system-config-printer-gnome 1.1.17+20100217-0ubuntu4 Printer configuration GUI
ii system-config-printer-udev 1.1.17+20100217-0ubuntu4 Printer auto-configuration facility based on

Oh, and I'm on 32 bit Lucid, starting with beta 1.

Revision history for this message
Robert Hrovat (robi-hipnos) wrote :

I checked also machine at work where I print a lot and it says:

ii system-config-printer-common 1.1.17+20100217-0ubuntu3 Printer configuration GUI
ii system-config-printer-gnome 1.1.17+20100217-0ubuntu3 Printer configuration GUI
ii system-config-printer-udev 1.1.17+20100217-0ubuntu3 Printer auto-configuration facility based on

Now I'm afraid to update there because I need printing much more than at home :-)

Revision history for this message
Ivan Serra (ivanserra) wrote :

yeah I have the last system-config-printer-common 1.1.17+20100217-0ubuntu4 version, but i have the problem yet....confirm no fixed

Revision history for this message
Ivan Serra (ivanserra) wrote :

I fixed the problem....I downloaded the system-config-system 1.2.0 version from here http://cyberelk.net/tim/data/system-config-printer/1.2/ and compiled in my lucid lynx ubuntu system.
I'm just using a Hp 1315 printer with a print server by wireless connection I hope you can fix the problem with this workaround :)
Ivan

Revision history for this message
Ivan Serra (ivanserra) wrote :

sorry downloaded system-config-printer 1.2.0 my version now installed

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

For me this problem also still occurs, giving the traceback on the terminal from which I have started system-config-printer and an incomplete list of detected network printers. I am using the -0ubuntu6 version which has Tim's patch applied.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Ivan, thank you for your suggestion, but as we are currently after Feature Freeze we cannot switch to a completely new version of system-config-printer. We need a patch to only fix this bug.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, the bug happens when clicking on "Add" in the main windoow and in the wizard which appears then on the "+" at "Network Printer". The list of detected printers gets incomplete and the following appears in the terminal where system-config-printer was started:

  File "/usr/share/system-config-printer/asyncipp.py", line 193, in send_reply
    self._reply_handler (self._conn, result)
  File "/usr/share/system-config-printer/asyncpk1.py", line 125, in _ipp_reply_handler
    self._client_reply_handler (self._conn, *args)
  File "/usr/lib/pymodules/python2.6/cupshelpers/cupshelpers.py", line 564, in _reply_handler
    for uri, data in devices.iteritems():
AttributeError: 'NoneType' object has no attribute 'iteritems'

Changed in system-config-printer (Ubuntu Lucid):
status: Fix Released → Confirmed
importance: Medium → High
milestone: none → ubuntu-10.04
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Another reproducable crash:

till@till:~/ubuntu/system-config-printer$ system-config-printer --setup-printer="file:/tmp/printout" --devid='MFG:XXX;MDL:YYY;CMD:PCL5e;'
ERROR:dbus.proxies:Introspect error on :1.47:/org/freedesktop/PackageKit: dbus.exceptions.IntrospectionParserException: Error parsing introspect data: <class 'xml.parsers.expat.ExpatError'>: unbound prefix: line 5, column 4
Traceback (most recent call last):
  File "/usr/share/system-config-printer/asyncipp.py", line 192, in send_reply
    if self._reply_handler:
AttributeError: '_IPPConnectionThread' object has no attribute '_reply_handler'
till@till:~/ubuntu/system-config-printer$ system-config-printer --setup-printer="file:/tmp/printout" --devid='MFG:XXX;MDL:YYY;CMD:PCL5e;'
ERROR:dbus.proxies:Introspect error on :1.47:/org/freedesktop/PackageKit: dbus.exceptions.IntrospectionParserException: Error parsing introspect data: <class 'xml.parsers.expat.ExpatError'>: unbound prefix: line 5, column 4
Traceback (most recent call last):
  File "/usr/share/system-config-printer/asyncipp.py", line 192, in send_reply
    if self._reply_handler:
AttributeError: '_IPPConnectionThread' object has no attribute '_reply_handler'

Revision history for this message
Tim Waugh (twaugh) wrote :

Can you try 978156d to see if that fixes it?

Revision history for this message
Karl Å (karl-astrom) wrote :

Bug still in 1.1.17+20100217-0ubuntu6, trying to attach to a Canon LBP5000 physically attached to a winxp box through samba.

Can find the printer, can verify without problem, when clicking "Forward" it starts "Searching for drivers" and then dies

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.1.17+20100217-0ubuntu7

---------------
system-config-printer (1.1.17+20100217-0ubuntu7) lucid; urgency=low

  * debian/patches/70_more-async-traceback-fixes.patch: Fixed several
    tracebacks in the async code (LP: #520466).
 -- Till Kamppeter <email address hidden> Fri, 26 Mar 2010 17:50:50 +0100

Changed in system-config-printer (Ubuntu Lucid):
status: Confirmed → Fix Released
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, thank you for your patches, now the tracebacks do not appear for me any more.

Revision history for this message
Tim Waugh (twaugh) wrote :

No problem. Actually I found another bug and fixed it upstream. It's the reason the original (incorrect) fix caused such a major regression. Take a look at commit 40faef5.

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Do I have to apply this one, too?

Revision history for this message
Schorsch (schorschi-schorsch) wrote :

For me the same crash when starting system-config-printer: In terminal:

maliers@maliers-desktop:~$ system-config-printer
Traceback (most recent call last):
  File "/usr/share/system-config-printer/asyncipp.py", line 193, in send_reply
    self._reply_handler (self._conn, result)
  File "/usr/share/system-config-printer/asyncpk1.py", line 125, in _ipp_reply_handler
    self._client_reply_handler (self._conn, *args)
  File "/usr/lib/pymodules/python2.6/cupshelpers/cupshelpers.py", line 564, in _reply_handler
    for uri, data in devices.iteritems():
AttributeError: 'NoneType' object has no attribute 'iteritems'

my version is up to date: 1.1.17+20100217ubuntu6

Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, thanks for the patch, I have applied it in -0ubuntu8 now.

Changed in system-config-printer (Ubuntu Lucid):
status: Fix Released → Confirmed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Schorsch, you need at least -0ubuntu7 (from today).

Changed in system-config-printer (Ubuntu Lucid):
status: Confirmed → Fix Released
Revision history for this message
Schorsch (schorschi-schorsch) wrote :

Oh man what's wrong withe me? The newest version synaptic is showing after updating the paket-list is 0ubuntu6.
What i've got to do. Do I need more sources? Am I right, that it is indifferent that I got a 32bit version?
What's the exact name of the needed pack?

Revision history for this message
Schorsch (schorschi-schorsch) wrote :

Ok I found it here: https://launchpad.net/ubuntu/+source/system-config-printer/1.1.17+20100217-0ubuntu7/+build/1583088 . I thought "fix released" means that it is in the repository. Sorry

Revision history for this message
Tina Diotale (tinadiotale) wrote :

ok i unpluged my printer from usb then deleted my printer. then i pluged back in the printer and it started working. hope this helps out at least a little bit.

Revision history for this message
Robert Hrovat (robi-hipnos) wrote :

I can confirm it's working now :-)
But I had to delete existing printer and set up a new one.
Thanks!!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.