calvinaquino / LNReader-Android

Light novel reader for android test project collab
Apache License 2.0
120 stars 36 forks source link

Error code 266 #159

Closed NaqS closed 9 years ago

NaqS commented 9 years ago

Hello, I need help here when I go to Light Novels/Watched List, this popped up, I tried clearing cache and reinstalled( without unistalling first ) it. I even restarted my phone. I don't know what to do, do you have any solutions because I don't want to unistall it( there's 2GB worth of LN) and reinstall it again. Here's a picture for reference, Thanks in advance screenshot_2014-08-31-22-46-24

Nandaka commented 9 years ago

from sqlite error code page:

(266) SQLITE_IOERR_READ

The SQLITE_IOERR_READ error code is an extended error code for SQLITE_IOERR indicating an I/O error in the VFS layer while trying to read from a file on disk. This error might result from a hardware malfunction or because a filesystem came unmounted while the file was open.

Looks like the db got corrupted or your storage/sd card got bad sector.

Try to go Settings > Storage > tap Database Save Location, it will run sqlite db check (your app might be non-responsive for a while) and it will pop up the message. If still not working, try to restore the backup.

NaqS commented 9 years ago

Thanks for replying. I did as you told me and it says DB Ok, but the same thing happened as before so I restored my backup. It worked but my novels were gone, so I checked Bakareader EX Application in Android Settings to check if the data still remained and fortunately it's still there. But, the novels in Bakareader EX were marked not downloaded so is there anyway to relink the novels back to the stored data in my phone. Thank you

Nandaka commented 9 years ago

There should be multiple backup in your phone.

The contents of the novel is in the database, external data is mainly for images and saved external page (if enabled).

NaqS commented 9 years ago

Sorry for the late reply. Thanks it worked the novels are back. Hopefully something like that won't happen again. Thank you again for the quick response and helpfulness :D