Crash on load DB

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Crash on load DB

Theo Carr-Brion
User Information:
===================

I am trying to import a large database. It imports fine and I can change
it and
save the changes but when I go into gramps again it crashes.


Error Details:
===================

3085: ERROR: dbloader.py: line 430: Failed to open database.
Traceback (most recent call last):
   File "I:\Program Files\gramps\DbLoader.py", line 419, in read_file
     self.dbstate.db.load(filename,self.uistate.pulse_progressbar,mode)
   File "I:\Program Files\gramps\GrampsDb\_GrampsBSDDB.py", line 385, in
load
     gstats = self.metadata.get('gender_stats',default=None)
   File "I:\Program Files\Python25\lib\bsddb\dbshelve.py", line 172, in get
     data = apply(self.db.get, args, kw)
DBPageNotFoundError: (-30987, 'DB_PAGE_NOTFOUND: Requested page not found')
17484: ERROR: gramps.py: line 175: Gramps failed to start.
Traceback (most recent call last):
   File "I:\Program Files\gramps\gramps.py", line 173, in run
     gramps_main.Gramps(args)
   File "I:\Program Files\gramps\gramps_main.py", line 223, in __init__
     state.change_active_person(state.db.get_default_person())
   File "I:\Program Files\gramps\GrampsDb\_GrampsBSDDB.py", line 290, in
get_default_person
     person = self.get_person_from_handle(self.get_default_handle())
   File "I:\Program Files\gramps\GrampsDb\_GrampsDbBase.py", line 1626,
in get_default_handle
     if self.metadata:
ValueError: __nonzero__ should return >= 036141: ERROR: dbloader.py:
line 430: Failed to open database.
Traceback (most recent call last):
   File "I:\Program Files\gramps\DbLoader.py", line 419, in read_file
     self.dbstate.db.load(filename,self.uistate.pulse_progressbar,mode)
   File "I:\Program Files\gramps\GrampsDb\_GrampsBSDDB.py", line 385, in
load
     gstats = self.metadata.get('gender_stats',default=None)
   File "I:\Program Files\Python25\lib\bsddb\dbshelve.py", line 172, in get
     data = apply(self.db.get, args, kw)
DBPageNotFoundError: (-30987, 'DB_PAGE_NOTFOUND: Requested page not found')

System Information:
===================

Python version: 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32
bit (Intel)]
Gramps version: 2.2.2-1
LANG:
OS: win32
Distribution:

Theo Carr-Brion


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gramps-bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-bugs
Reply | Threaded
Open this post in threaded view
|

Re: Crash on load DB

Alex Roitman
Theo,

On Fri, 2006-12-22 at 17:04 +0000, Theo Carr-Brion wrote:
>    File "I:\Program Files\gramps\GrampsDb\_GrampsBSDDB.py", line 385, in
> load
>      gstats = self.metadata.get('gender_stats',default=None)
>    File "I:\Program Files\Python25\lib\bsddb\dbshelve.py", line 172, in get
>      data = apply(self.db.get, args, kw)
> DBPageNotFoundError: (-30987, 'DB_PAGE_NOTFOUND: Requested page not found')

It seems like there's a bug in python's bsddb on windows. Try deleting
the following lines:
        try:
            self.env.lsn_reset(self.full_name)
        except AttributeError:
            pass

and then creating new database and importing your data into it.
Alex

--
Alexander Roitman   http://www.gramps-project.org

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gramps-bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-bugs

signature.asc (196 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Crash on load DB

Theo Carr-Brion
Alex Roitman wrote:

>
> It seems like there's a bug in python's bsddb on windows. Try deleting
> the following lines:
>         try:
>             self.env.lsn_reset(self.full_name)
>         except AttributeError:
>             pass
>
> and then creating new database and importing your data into it.
> Alex
>

That seems to have fixed the problem, thank you.

Theo Carr-Brion


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gramps-bugs mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-bugs