software-center crashed with DatabaseError in _database_gen_postlist_iter()

Bug #438639 reported by João Pinto
56
This bug affects 12 people
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: software-center

This happened during the Rebuilding database... after upgrading to the latest package version: 0.4.3

ProblemType: Crash
Architecture: i386
Date: Tue Sep 29 11:14:24 2009
DistroRelease: Ubuntu 9.10
ExecutablePath: /usr/share/software-center/software-center
InterpreterPath: /usr/bin/python2.6
Package: software-center 0.4.3
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcEnviron:
 LANGUAGE=pt_PT.utf8
 PATH=(custom, user)
 LANG=pt_PT.utf8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.36-generic
PythonArgs: ['/usr/bin/software-center']
SourcePackage: software-center
Title: software-center crashed with DatabaseError in _database_gen_postlist_iter()
Uname: Linux 2.6.31-11-generic i686
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

Revision history for this message
João Pinto (joaopinto) wrote :
João Pinto (joaopinto)
visibility: private → public
tags: removed: need-duplicate-check
Revision history for this message
Michael Vogt (mvo) wrote :

Thanks for your bugreport.

I tried to reproduce this in various way but I was not successful. Has this ever appeared again? Did:
$ sudo update-software-center
trigger the crash (maybe running it multiple times)?

Revision history for this message
João Pinto (joaopinto) wrote :

Hello,
I didn't launched anything from the terminal.
I am not able to reproduce the problem, if no one reports is better close it.

Revision history for this message
Michael Vogt (mvo) wrote :

I can imagine there is a race condition somewhere when the db is rebuild, I just haven't figured a way to reproduce it. I will leave it open and add some defensive code.

Changed in software-center (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Michael Vogt (mvo) wrote :

I added some code that (hopefully - i can not reproduce it myself, but that is not unusual for a race-condition) fixes the issue.

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

This bug was fixed in the package software-center - 0.4.6

---------------
software-center (0.4.6) karmic; urgency=low

  * debian/control:
    - add versionized dependency to aptdaemon (needs some of the
      latest API for the async calls) LP: #444218
  * softwarecenter/view/pendingview.py:
    - display the operation (Install Packages, Remove Packages,
      Applying Changes) for operations that come from outside
      software-center (LP: #444254)
  * softwarecenter/app.py:
    - do not crah on corrupted database
  * utils/update-software-center:
    - ignore if dbus can not be imported (e.g. because we are in
      the middle of a upgrade and python packages are unavailable)
      LP: #443177)
    - do not show full stacktrace if dbus is not available
      (LP: #444089)
    - add a small delay between dubs rebuild signal and actual rebuild
      (LP: #438639)

 -- Michael Vogt <email address hidden> Tue, 06 Oct 2009 11:27:09 +0200

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
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.