Comment 14 for bug 507836

Revision history for this message
Stefanita Ciobotaru (stefanita1201) wrote : Re: [Bug 507836] Re: [master] software-center crashed with DatabaseModifiedError in _database_gen_postlist_iter()

Thank you! I was figuring out a way out of that error!
And it worked!
Uninstall and reinstall the programs, that was it!

Thank you for your concern to that problem!
S.

________________________________
From:Michael Vogt <email address hidden>
To:<email address hidden>
Sent: Fri, September 24, 2010 2:57:32 PM
Subject: [Bug 507836] Re: [master] software-center crashed with
DatabaseModifiedError in _database_gen_postlist_iter()

It looks like the following is triggering this problem (a clasical race
condition):

- a update() operation from the backend (reload, enable channel) triggers a
apt-xapian-index update with --update
- when the update is finished, a cache-ready signal is emited, that causes the
various views to be refreshed
- during this refresh the gtk event loop keeps running to keep the UI alive
- when apt-xapian-index finishes, it reopens the DB
- if the a-x-i update finishes quicker than the refresh triggered by the cache
update finishes (its runs with --update so that can happen) then it can be in
the middle of a "for m in self.xapiandb.postlist() operation. at this point the
returned iterators are no longer valid because the DB got reopenend and xapian
detects that (the iterators are for the previous generation of the DB)

--
[master] software-center crashed with DatabaseModifiedError in
_database_gen_postlist_iter()
https://bugs.launchpad.net/bugs/507836
You received this bug notification because you are a direct subscriber
of a duplicate bug (619142).

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

Bug description:
Binary package hint: software-center

I was browsing the software store, after Delete Solitaire, the software store
crashed.
I'm running Lucid Lynx from USB, 2GB and was trying to get some free space.
Ubuntu 10.4 AMD64

ProblemType: Crash
Architecture: amd64
Date: Fri Jan 15 09:08:52 2010
DistroRelease: Ubuntu 10.04
ExecutablePath: /usr/share/software-center/software-center
InterpreterPath: /usr/bin/python2.6
LiveMediaBuild: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100113)
Package: software-center 1.1.8
PackageArchitecture: all
ProcCmdline: /usr/bin/python /usr/bin/software-center
ProcEnviron:
LANG=de_DE.UTF-8
SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.32-10.14-generic
PythonArgs: ['/usr/bin/software-center']
SourcePackage: software-center
Tags: lucid
Title: software-center crashed with DatabaseModifiedError in
_database_gen_postlist_iter()
Uname: Linux 2.6.32-10-generic x86_64
UserGroups: adm admin cdrom dialout lpadmin plugdev sambashare

To unsubscribe from this bug, go to:
https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/507836/+subscribe