Some errors in the data can cause this error.
Please run the tools:

1/rebuild reference tables
2/rebuild sec indexes
3/check and repair tool

Note that working directly on XML files, means you loose your data on crash. This is why the database files are the standard (grdb files).
Note also that version 3.0.1 is available, ubuntu package on our website.


2008/6/29 Doug Lewis <>:
"User Information:

Error Details:

38418: ERROR: line 148: Unhandled exception
Traceback (most recent call last):
 File "/usr/share/gramps/", line 492, in quit
 File "/usr/share/gramps/GrampsDb/", line 75, in close
   if self.db_is_changed() or self.db_has_bm_changes():
 File "/usr/share/gramps/GrampsDb/", line 375, in db_is_changed
   (len(self.undodb) > 0 or
DBError: (0, 'DB object has been closed')

System Information:

Python version: 2.5.2 (r252:60911, Apr 21 2008, 11:12:42) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
BSDDB version:
Gramps version: 2.2.10-1
OS: Linux
Distribution: 2.6.24-16-generic

Check out the new Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
Gramps-bugs mailing list