Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book General > General Discussions

Notices

Reply
 
Thread Tools Search this Thread
Old 01-30-2024, 04:37 PM   #16
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,498
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Rather interesting how the OP managed to conflate the issue with Kindles randomly removing all sideloaded content which has nothing to do with USB connections and the Kobo database corruption issue which is due to the database not being closed before a USB connection is initiated.
DNSB is online now   Reply With Quote
Old 01-30-2024, 04:59 PM   #17
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,166
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Indeed even the Kobo issue may not exactly be USB (and thus USB protocol/mode is irrelevant), but purely the system initiating the USB connection and locking the screen without closing the database first. It's a quite strange bug because it seems to afflict certain users, no matter what incantations or OS, other than rebooting. Yet others are fine if they simply make sure the 'home' / 'my books' screen is showing. It also might be that sync has a negative impact and SideloadedMode=true has a positive impact.
I can't see that using MTP or Network USB would stop it happening. It's not specifically misuse of the USB by the host or user, it's a bug in the software that not everyone is suffering, which is no doubt why it's taking time for Kobo to solve it.
Quoth is offline   Reply With Quote
Old 01-30-2024, 05:24 PM   #18
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,498
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Nothing like an erratic and likely race issue to make locating a bug fun (for certain values of fun).
DNSB is online now   Reply With Quote
Old 01-30-2024, 05:40 PM   #19
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,319
Karma: 9999999
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Quote:
Originally Posted by DNSB View Post
Rather interesting how the OP managed to conflate the issue with Kindles...
Kindles apparently still use UMS. Therefore the issues are the same as with Kobos. Whether Amazon wipes Kindle sideloaded content is immaterial to me.
Renate is offline   Reply With Quote
Old 01-30-2024, 05:49 PM   #20
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,498
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Renate View Post
Kindles apparently still use UMS. Therefore the issues are the same as with Kobos. Whether Amazon wipes Kindle sideloaded content is immaterial to me.
Sadly, that is what the whole discussion which you spun this one out from was concerned with.
DNSB is online now   Reply With Quote
Old 01-30-2024, 07:03 PM   #21
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,319
Karma: 9999999
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Quote:
Originally Posted by DNSB View Post
Sadly, that is what the whole discussion which you spun this one out from was concerned with.
Then maybe you should start a thread on that.
Renate is offline   Reply With Quote
Old 01-30-2024, 07:10 PM   #22
Sirtel
Grand Sorcerer
Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.Sirtel ought to be getting tired of karma fortunes by now.
 
Sirtel's Avatar
 
Posts: 10,147
Karma: 224760044
Join Date: Jan 2014
Location: Estonia
Device: Kobo Sage & Libra 2
Quote:
Originally Posted by Renate View Post
Then maybe you should start a thread on that.
There are multiple threads on it already.
Sirtel is offline   Reply With Quote
Old 01-30-2024, 08:35 PM   #23
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,644
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by DNSB View Post
Rather interesting how the OP managed to conflate the issue with Kindles randomly removing all sideloaded content which has nothing to do with USB connections and the Kobo database corruption issue which is due to the database not being closed before a USB connection is initiated.
And the Kobo issue has some pretty easy workarounds; make sure you're on homescreen, reboot the device before connecting, use Kobo Utilities to make backups of the db.

Plus we know Kobo is planning to fix it.

Quote:
Originally Posted by Renate View Post
Then maybe you should start a thread on that.
What the hell is this thread for then?

Last edited by ownedbycats; 01-30-2024 at 08:41 PM.
ownedbycats is offline   Reply With Quote
Old 01-31-2024, 06:33 AM   #24
Quoth
the rook, bossing Never.
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 11,166
Karma: 85874891
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper11
Quote:
Originally Posted by DNSB View Post
Nothing like an erratic and likely race issue to make locating a bug fun (for certain values of fun).
Yes, the database corruption issue seems like that. It would still happen if the Kobos used MTP and the database is available to the user. Or maybe even if the database wasn't exposed.

I suspect that while Kindle's OS is multitasking and multiuser the the database and ebook import system is not, so it makes sense that the Kindle Scribe 'locks' the screen even though it uses MTP.

Similarly while my Andriod things don't lock the screen, I don't use the GUI on them and also close all apps before connecting USB for MTP. You just don't know how Google PlayBooks, PocketBook, Viber, Kindle app etc actually works.

Unlike MSDE, MS SQL, Oracle, DB2, MySQL, MariaDB the SQLight, just like Access or Excel data, is simply files and an API. So two processes / apps accessing the SQLight database will corrupt it, though with Kobo and USB, normally you are only accessing ebook files and cover image files while USB is connected and the Kobo accesses the database when you disconnect USB. It could even be that it's that process that causes the damage because it hasn't checked what last state was, or the process last using the database didn't close it before locking screen and opening USB connection.

The fact that the database corruption can occur just by copying a single epub file to the Kobo, without touching the database files, shows it's not specifically a USB issue and that it could occur even if the SQLight files were on the system partition that's not shared. The database import occurs after USB is disconnected, so as the exposed files show the issue is not the kind of USB connection but something amiss when the USB connection request is triggered.

I always wait a little before clicking on the connect message when I plug in USB cable. I've no idea if that helps, but I don't have the problem. I also always thought 'auto-connect' sounded like a risky developer tool. Android used to autoconnect and last few versions I have it asks even though a default mode is set.
ADB needs Developer mode on for many Android devices and that's not recommended for general use, nor is ADB which I've used as an Android developer and to do funky command line fast transfers or web cam/photo capture modes. ADB is not a system for regular users.

Last edited by Quoth; 01-31-2024 at 06:51 AM.
Quoth is offline   Reply With Quote
Old 01-31-2024, 10:39 PM   #25
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 35,498
Karma: 145557716
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Forma, Clara HD, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Quoth View Post
Unlike MSDE, MS SQL, Oracle, DB2, MySQL, MariaDB the SQLight, just like Access or Excel data, is simply files and an API. So two processes / apps accessing the SQLight database will corrupt it, though with Kobo and USB, normally you are only accessing ebook files and cover image files while USB is connected and the Kobo accesses the database when you disconnect USB. It could even be that it's that process that causes the damage because it hasn't checked what last state was, or the process last using the database didn't close it before locking screen and opening USB connection.
The issue for me is that one or both of the databases are not properly closed. I not only see KoboReader.sqlite and BookReader.sqlite when database corruption is reported but the KoboReader.sqlite-wal and KoboReader.sqlite-shm files and/or the BookReader.sqlite-wal and BookReader.sqlite-shm files. Since the write ahead logging and shared memory files will be removed during the database close operation, this says the database(s) were not properly closed before the USB connection. This also leaves the dirty bit set so Windows pops up the "an error was seen, do you want to scan and fix the drive" message

Quote:
Originally Posted by Quoth View Post
The fact that the database corruption can occur just by copying a single epub file to the Kobo, without touching the database files, shows it's not specifically a USB issue and that it could occur even if the SQLight files were on the system partition that's not shared. The database import occurs after USB is disconnected, so as the exposed files show the issue is not the kind of USB connection but something amiss when the USB connection request is triggered..
Again, calibre pops up the error message when attempting to open the KoboReader.sqlite as part of mounting the Kobo since it will write to the file.

Quote:
Originally Posted by Quoth View Post
I always wait a little before clicking on the connect message when I plug in USB cable. I've no idea if that helps, but I don't have the problem. I also always thought 'auto-connect' sounded like a risky developer tool. Android used to autoconnect and last few versions I have it asks even though a default mode is set.
For what it's worth, I've set the sleep timeout to 15 minutes and telneting to my Kobo Sage shows the -wal and -shm file present after 12 minutes of idle time. So far all I can say is that the issue happens most often on my Sage after I have been reading a book, my Clara HD and others trigger the issue very rarely.
DNSB is online now   Reply With Quote
Old 01-31-2024, 11:16 PM   #26
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 8,644
Karma: 61234567
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Quoth View Post
I always wait a little before clicking on the connect message when I plug in USB cable. I've no idea if that helps, but I don't have the problem. I also always thought 'auto-connect' sounded like a risky developer tool. Android used to autoconnect and last few versions I have it asks even though a default mode is set.
I use auto-connect without issue, though I make sure I'm on the homescreen first.

I use NickelMenu to reboot following the import of new books - I've mentioned that some of my random instances of the db being left open were a reconnect immediately following import. It'll automatically reconnect itself right afterwards, which is convenient.
ownedbycats is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Clara Is occasional database corruption to be expected? Desertway Kobo Reader 25 05-23-2022 07:53 PM
Database Corruption / FW 3.5.0 PeterT Kobo Reader 7 08-26-2014 04:10 PM
Database Corruption during Installation aronan Calibre 3 09-10-2010 01:17 AM
Problems after database corruption ficbot Calibre 2 09-25-2009 02:11 PM
Database Corruption!! Alexander Turcic Announcements 0 07-22-2003 10:08 AM


All times are GMT -4. The time now is 02:42 AM.


MobileRead.com is a privately owned, operated and funded community.