[Bug 981124] Re: software-center crashed with TypeError in _on_property_changed(): could not convert type dbus.Int64 to (null) required for parameter 0

Michael Vogt michael.vogt at ubuntu.com
Tue Jun 5 07:09:04 UTC 2012


I assume the issue here is that sometimes the value for "Space" is None,
a workaround might be:

=== modified file 'aptdaemon/client.py'
--- aptdaemon/client.py	2012-05-08 22:44:15 +0000
+++ aptdaemon/client.py	2012-06-05 07:05:13 +0000
@@ -638,7 +638,7 @@
             self.download = value
             self.emit("download-changed", value)
         elif property_name == "Space":
-            self.space = value
+            self.space = value or 0
             self.emit("space-changed", value)
         elif property_name == "HttpProxy":
             self.http_proxy = value

But I don't see in the code how this could happen that trans.space is
None.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to aptdaemon in Ubuntu.
https://bugs.launchpad.net/bugs/981124

Title:
  software-center crashed with TypeError in _on_property_changed():
  could not convert type dbus.Int64 to (null) required for parameter 0

Status in “aptdaemon” package in Ubuntu:
  Triaged
Status in “software-center” package in Ubuntu:
  Incomplete

Bug description:
  Crash happened after installing the Synergy 1.4.8 beta package.

  ProblemType: Crash
  DistroRelease: Ubuntu 12.04
  Package: software-center 5.1.14.2
  ProcVersionSignature: Ubuntu 3.2.0-23.36-generic 3.2.14
  Uname: Linux 3.2.0-23-generic i686
  NonfreeKernelModules: nvidia
  ApportVersion: 2.0.1-0ubuntu2
  Architecture: i386
  CrashCounter: 1
  Date: Fri Apr 13 15:08:45 2012
  ExecutablePath: /usr/share/software-center/software-center
  InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release i386 (20111012)
  InterpreterPath: /usr/bin/python2.7
  PackageArchitecture: all
  ProcCmdline: /usr/bin/python /usr/bin/software-center /home/username/Downloads/synergy-1.4.8-Linux-i686.deb
  ProcEnviron:
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  PythonArgs: ['/usr/bin/software-center', '/home/username/Downloads/synergy-1.4.8-Linux-i686.deb']
  SourcePackage: software-center
  Title: software-center crashed with TypeError in _on_property_changed(): could not convert type dbus.Int64 to (null) required for parameter 0
  UpgradeStatus: Upgraded to precise on 2012-03-07 (36 days ago)
  UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/aptdaemon/+bug/981124/+subscriptions




More information about the foundations-bugs mailing list