Comment 26 for bug 1523291

David Forrester (davidfor) wrote :

That's "interesting".

The metadata.calibre file is read just before database is opened. That shouldn't have an affect the database opening, but that's the only thing I can think of. Something about reading this file is preventing the database from being opened. The problem is, I can't think of what. If the file couldn't be read, the error should have been raised earlier. I can only think that reading the file is leaving the driver in a state that the next file opened, the database, can't be opened. But, I can't see how that could happen. The Kobo devices are just presenting the SD card's partition for access, so it would almost have to be in the OSes MSD driver or FAT32 support.

Things that come to mind while writing this are:

- How big are the metadata.calibre and KoboReader.sqlite files?
- How big is the SD card?
- Have you mounted the card directly in a computer and checked it was OK?

The only other thing I can think of is that the debug logs look to come from restarting in debug mode. Can you try running "calibre-debug -g" from the terminal? I don't know if the output will be different, but I'm hoping it will.