From 11335bc6bcda3ead807bd8f8501cddb7e60366bf Mon Sep 17 00:00:00 2001 From: Brian Matherly Date: Sat, 2 Dec 2006 04:20:48 +0000 Subject: [PATCH] * src/GrampsDb/_GrampsBSDDB.py: comment out lsn_reset - it causes crashes. svn: r7747 --- ChangeLog | 3 +++ src/GrampsDb/_GrampsBSDDB.py | 10 ++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 501cc96a1..51b343b3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2006-12-01 Brian Matherly + * src/GrampsDb/_GrampsBSDDB.py: comment out lsn_reset - it causes crashes. + 2006-12-01 Martin Hawlisch * src/DataViews/_RelationView.py: Show buttons for reorder and add parents in case the toolbar is not visible. diff --git a/src/GrampsDb/_GrampsBSDDB.py b/src/GrampsDb/_GrampsBSDDB.py index 99525f17b..bb6983ae7 100644 --- a/src/GrampsDb/_GrampsBSDDB.py +++ b/src/GrampsDb/_GrampsBSDDB.py @@ -1087,10 +1087,12 @@ class GrampsBSDDB(GrampsDbBase,UpdateCallback): # Attempt to clear log sequence numbers, to make database portable # This will only work for python2.5 and higher - try: - self.env.lsn_reset(self.full_name) - except AttributeError: - pass +# Comment this our because it causes crashes. +# To reproduce the crash, create a new DB, import example.gramps, open and close the db a few times. +# try: +# self.env.lsn_reset(self.full_name) +# except AttributeError: +# pass self.env.close()