scp-dbus-service.py crashed with ValueError in decorator(): Corrupt type signature

Bug #1232947 reported by Cristian Aravena Romero
56
This bug affects 10 people
Affects Status Importance Assigned to Milestone
system-config-printer (Fedora)
Fix Released
Undecided
system-config-printer (Ubuntu)
Fix Released
High
Till Kamppeter
Saucy
Fix Released
High
Till Kamppeter

Bug Description

/usr/share/system-config-printer/scp-dbus-service.py crashes immediately when simply starting it (without any command line arguments).

[IMPACT]

High, as the D-Bus service of system-config-printer, scp-dbus-service.py, does not work at all.

[TESTCASE]

Ina terminal window run the command

/usr/share/system-config-printer/scp-dbus-service.py

You will get:

----------
Traceback (most recent call last):
  File "/usr/share/system-config-printer/scp-dbus-service.py", line 297, in <module>
    class ConfigPrintingNewPrinterDialog(dbus.service.Object):
  File "/usr/share/system-config-printer/scp-dbus-service.py", line 370, in ConfigPrintingNewPrinterDialog
    signature='a{s}')
  File "/usr/lib/python2.7/dist-packages/dbus/decorators.py", line 330, in decorator
    sig = tuple(Signature(signature))
ValueError: Corrupt type signature
----------

With the proposed package scp-dbus-service.py does not crash and keeps running.

[Regression Potential]

None, as the patch is trivial

ProblemType: Crash
DistroRelease: Ubuntu 13.10
Package: system-config-printer-common 1.4.2+20130920-0ubuntu1
ProcVersionSignature: Ubuntu 3.11.0-8.15-generic 3.11.1
Uname: Linux 3.11.0-8-generic x86_64
ApportVersion: 2.12.5-0ubuntu1
Architecture: amd64
CupsErrorLog: E [29/Sep/2013:21:04:48 -0300] [Job 20] Unable to queue job for destination "Stylus-CX5600".
Date: Sun Sep 29 21:04:51 2013
ExecutablePath: /usr/share/system-config-printer/scp-dbus-service.py
InstallationDate: Installed on 2013-07-31 (60 days ago)
InstallationMedia: Ubuntu-GNOME 13.10 "Saucy Salamander" - Alpha amd64 (20130724)
InterpreterPath: /usr/bin/python2.7
Lpstat: Error: command ['lpstat', '-v'] failed with exit code 1: lpstat: No destinations added.
MachineType: SAMSUNG ELECTRONICS CO., LTD. 530U3C/530U4C
MarkForUpload: True
PackageArchitecture: all
Papersize: letter
ProcCmdline: /usr/bin/python /usr/share/system-config-printer/scp-dbus-service.py
ProcEnviron:
 LANGUAGE=es_CL:es
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=es_CL.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/@/boot/vmlinuz-3.11.0-8-generic root=UUID=0c67119c-ddae-476a-b510-142ec598f691 ro rootflags=subvol=@ quiet splash vt.handoff=7
PythonArgs: ['/usr/share/system-config-printer/scp-dbus-service.py']
SourcePackage: system-config-printer
Title: scp-dbus-service.py crashed with ValueError in decorator(): Corrupt type signature
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 04/15/2013
dmi.bios.vendor: Phoenix Technologies Ltd.
dmi.bios.version: P14AAJ
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: SAMSUNG_NP1234567890
dmi.board.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.board.version: FAB1
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 9
dmi.chassis.vendor: SAMSUNG ELECTRONICS CO., LTD.
dmi.chassis.version: 0.1
dmi.modalias: dmi:bvnPhoenixTechnologiesLtd.:bvrP14AAJ:bd04/15/2013:svnSAMSUNGELECTRONICSCO.,LTD.:pn530U3C/530U4C:pvr0.1:rvnSAMSUNGELECTRONICSCO.,LTD.:rnSAMSUNG_NP1234567890:rvrFAB1:cvnSAMSUNGELECTRONICSCO.,LTD.:ct9:cvr0.1:
dmi.product.name: 530U3C/530U4C
dmi.product.version: 0.1
dmi.sys.vendor: SAMSUNG ELECTRONICS CO., LTD.

Revision history for this message
Cristian Aravena Romero (caravena) wrote :
tags: removed: need-duplicate-check
Changed in system-config-printer (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

Tim, can you have a look into this? Thanks.

information type: Private → Public
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in system-config-printer (Ubuntu):
status: New → Confirmed
Revision history for this message
Phil Wyett (u-k-i-t) wrote :

This bug makes it impossible to configure 'any' USB printer I have running Ubuntu Gnome 13.10.

tags: added: gnome3
Changed in system-config-printer (Ubuntu):
assignee: nobody → Till Kamppeter (till-kamppeter)
importance: Medium → High
Changed in system-config-printer (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Till Kamppeter (till-kamppeter) wrote :

The problem is a typo in the D-Bus code.

To test and get your problem fixed without waiting for the formal stable release update process download the attached scp-dbus-service.py file and copy it into /usr/share/system-config-printer/ replacing the existing file. In a terminal window you can do:

sudo cp scp-dbus-service.py /usr/share/system-config-printer/
sudo chmod 755 /usr/share/system-config-printer/scp-dbus-service.py

Now reboot your system and try your printer setup again. Does it work now?

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

This bug was fixed in the package system-config-printer - 1.4.2+20130920-0ubuntu2

---------------
system-config-printer (1.4.2+20130920-0ubuntu2) trusty; urgency=low

  * debian/patches/40_scp-dbus-service-fix-dbus-signature-typo.patch: Fixed
    typo in a D-Bus method signature (LP: #1232947).
 -- Till Kamppeter <email address hidden> Thu, 24 Oct 2013 13:15:12 +0200

Changed in system-config-printer (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
In , Arik (arik-redhat-bugs) wrote :

Version-Release number of selected component:
system-config-printer-libs-1.4.3-1.fc20

Additional info:
reporter: libreport-2.1.8
cmdline: /usr/bin/python /usr/share/system-config-printer/scp-dbus-service.py
dso_list: dbus-python-1.1.1-6.fc20.x86_64
executable: /usr/share/system-config-printer/scp-dbus-service.py
kernel: 3.11.0-300.fc20.x86_64
runlevel: N 5
type: Python
uid: 1000

Truncated backtrace:
decorators.py:330:decorator:ValueError: Corrupt type signature

Traceback (most recent call last):
  File "/usr/share/system-config-printer/scp-dbus-service.py", line 297, in <module>
    class ConfigPrintingNewPrinterDialog(dbus.service.Object):
  File "/usr/share/system-config-printer/scp-dbus-service.py", line 370, in ConfigPrintingNewPrinterDialog
    signature='a{s}')
  File "/usr/lib/python2.7/site-packages/dbus/decorators.py", line 330, in decorator
    sig = tuple(Signature(signature))
ValueError: Corrupt type signature

Local variables in innermost frame:
member_name: 'DriverDownloadChecked'
emit_signal: <function emit_signal at 0x2073b18>
dbus_interface: 'org.fedoraproject.Config.Printing.NewPrinterDialog'
path_keyword: None
keyword: None
args: ['installed_files']
func: <function DriverDownloadChecked at 0x2073aa0>
signature: 'a{s}'
rel_path_keyword: None

Revision history for this message
In , Arik (arik-redhat-bugs) wrote :

Created attachment 816131
File: backtrace

Revision history for this message
In , Arik (arik-redhat-bugs) wrote :

Created attachment 816132
File: environ

Revision history for this message
In , Tim (tim-redhat-bugs) wrote :

This just needs "a{s}" changing to "a(s)".

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for the fix Till, could you SRU that to saucy as well?

Changed in system-config-printer (Ubuntu Saucy):
assignee: nobody → Till Kamppeter (till-kamppeter)
importance: Undecided → High
status: New → Triaged
Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

system-config-printer-1.4.3-2.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/FEDORA-2013-19710/system-config-printer-1.4.3-2.fc20

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

system-config-printer-1.4.3-2.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/FEDORA-2013-19726/system-config-printer-1.4.3-2.fc19

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

Package system-config-printer-1.4.3-2.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing system-config-printer-1.4.3-2.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-19726/system-config-printer-1.4.3-2.fc19
then log in and leave karma (feedback).

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

Fixed in system-config-printer upstream, commit 27b6803432fc. Thanks, Tim.

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

The fix for this bug for Saucy is uploaded to the -proposed repository. As soon as it gets approved instructions for testing it will get posted here. Please test and give your feedback. This is required for the package to get an official update.

SRU team: debdiff attached.

Changed in system-config-printer (Ubuntu Saucy):
status: Triaged → Fix Committed
milestone: none → saucy-updates
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Cristian, or anyone else affected,

Accepted system-config-printer into saucy-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/system-config-printer/1.4.2+20130920-0ubuntu1.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

tags: added: verification-needed
Revision history for this message
Miklos Juhasz (mjuhasz) wrote :

The proposed package fixed this bug for me. scp-dbus-service.py does not crash and keeps running.

tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package system-config-printer - 1.4.2+20130920-0ubuntu1.1

---------------
system-config-printer (1.4.2+20130920-0ubuntu1.1) saucy-proposed; urgency=low

  * debian/patches/40_scp-dbus-service-fix-dbus-signature-typo.patch: Fixed
    typo in a D-Bus method signature (LP: #1232947).
 -- Till Kamppeter <email address hidden> Tue, 29 Oct 2013 19:43:12 +0100

Changed in system-config-printer (Ubuntu Saucy):
status: Fix Committed → Fix Released
Revision history for this message
Stéphane Graber (stgraber) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regresssions.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

system-config-printer-1.4.3-2.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.

Revision history for this message
In , Fedora (fedora-redhat-bugs) wrote :

system-config-printer-1.4.3-2.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.

Revision history for this message
In , Jiri (jiri-redhat-bugs) wrote :

*** Bug 1029689 has been marked as a duplicate of this bug. ***

Changed in system-config-printer (Fedora):
importance: Unknown → Undecided
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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