/Users/davidframpton/Documents/git_source/blockheads/ThirdParty/liblmdb/mdb.c:2621: Assertion 'mp->mp_pgno != pgno' failed in mdb_page_touch()


#1

When loading a world that is corrupted, this is logged and BlockheadsServer crashes:

/Users/davidframpton/Documents/git_source/blockheads/ThirdParty/liblmdb/mdb.c:2621: Assertion 'mp->mp_pgno != pgno' failed in mdb_page_touch()
Abort trap: 6

Can this be caught, the world id logged, then crashed?

(Probably not the actual ID because loading the DB with the world ID would crash, so it’d have to be the directory name)


#2

Why does it say David Frampton though?


#3

It can’t be caught. lmdb calls abort, which immediately kills the process.


#4

I don’t know. It’s a bit odd :slight_smile:


#5

Oh okay. Must be a deeper issue. The server app corrupts sometimes?