Well, add me to @franklekens. The
identical problem just happened to me too. I've had five Kobo readers and
never have I had this occur. Since it's new, I was in the process of sideloading additional books and did not yet have a backup. I hope this isn't the beginning of a buggy new device!
I hope the logout/login is the answer.
BTW, 1) I always use Kobo's supplied cables, 2) I always confirm there is no activity in progress before ejecting, and 3) never have any other apps open at the time (Win 10).
Code:
CorruptError: database disk image is malformed
Traceback (most recent call last):
File "calibre\gui2\device.py", line 89, in run
File "calibre\gui2\device.py", line 515, in _books
File "calibre\devices\kobo\driver.py", line 1974, in books
apsw.CorruptError: CorruptError: database disk image is malformed