View Single Post
Old 10-12-2017, 07:36 AM   #512
compurandom
Wizard
compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.compurandom ought to be getting tired of karma fortunes by now.
 
Posts: 1,016
Karma: 500000
Join Date: Jun 2015
Device: Rocketbook, kobo aura h2o, kobo forma, kobo libra color
Quote:
Originally Posted by davidfor View Post
Having said all that, have you restarted the device? That might fix it as it means the database is reread.
I forgot about that -- it is possible for the in-memory copy of the database to be corrupt but the on disk version to be OK. In that case, restarting fixes it. I had that happen once.

If restarting doesn't fix it, then a wrong count is a sign of something deeper wrong in the database. Repairing indexes might fix it. If it doesn't, then short of a program to verify the semantics of the database vs. the the books on the device and all the books, not just the ones calibre knows about, you're going to have more problems later that are just easier to fix by rebuilding the database from scratch.
compurandom is offline