Those errors both indicate invalid data is being fed into the database. The most likely cause of the problem is a misbehaving third party plugin. The first thing to do is disable all of them. Then if that does not solve the issues, attach the metadata.db file from your calibre library folder.
|