![]() |
#16 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 2724
Join Date: Nov 2011
Device: Multiple Kobos, multiple Kindles
|
Hi,
my next steps: - re-enabled KSM and started Nickel without fmon - plugged in the reader and checked the database (ok) - added a few books with calibre - checked the database (ok) - unplugged the reader and let Nickel process the new books - plugged the reader back in and checked the database. It was corrupted. So, KSM corrupts the database even without fmon. What kinds of scripts are running and how could they do this? Is there any way I could provide debugging info or do some additional tests that could shed some light on this? I would very much like to have KSM on my reader, but in the worst case I would have to find another way to start koreader (I need the reflow capability...). What could that be? Cheers, Joe PS: I have a very large collection with 475 books in calibre, which is not created on the reader. What is the maximum number of books that the Kobo Glo accepts in a collection? |
![]() |
![]() |
![]() |
#17 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
Have you tried the "AdvBoot" launcher I mentioned? Luck; Ken Last edited by Ken Maltby; 07-31-2015 at 05:26 PM. |
|
![]() |
![]() |
Advert | |
|
![]() |
#18 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Maybe you could also check whether adding the books without calibre also results in a corrupted database on your device. Depending on the result we might think of further possibilities. Currently, I have no idea what we could check. As for the scripts, as I said, they are doing basically nothing apart from waiting that nickel exists. |
|
![]() |
![]() |
![]() |
#19 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
I detailed the updates made by the KoboTouch driver earlier in the thread. I am using this most days on one or other of my four Kobos. I rarely see corrupted database.
Calibre also updates the metadata and cover in the book, but I doubt that is the problem. But, disabling the driver and using "Save to disk" is probably the simplest way for a calibre user to get a lot of books to the device. |
![]() |
![]() |
![]() |
#20 |
frumious Bandersnatch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 7,550
Karma: 19500001
Join Date: Jan 2008
Location: Spaniard in Sweden
Device: Cybook Orizon, Kobo Aura
|
I've also had similar problems with my Aura, but I couldn't decide KSM (or starting Nickel through KSM) was the culprit. Could you repeat your test with KSM disabled a few more times? In my experience, the corruptions are random, and I have to do my transfers in small batches (sometimes 1 by 1), with backups between them and often in several tries.
|
![]() |
![]() |
Advert | |
|
![]() |
#21 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Then one difference between transferring books with and without calibre would be, that after ejecting and disconnecting, in one case the database on disk and the copy in reading cache are identical, and in the other case they are different. I am not sure whether this thought leads to somewhere. @jbaumann, one thing I was remainded by this post is that if vlasovsoft is installed on your reader, depending on how you installed it, there might be running instances of fmon, even if KSM does not start them. I am not sure however whether this really makes a difference. Last edited by tshering; 08-01-2015 at 07:44 AM. |
|
![]() |
![]() |
![]() |
#22 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 2724
Join Date: Nov 2011
Device: Multiple Kobos, multiple Kindles
|
Hi,
sorry that I omitted that. Yes, the Kobotouch driver is involved whenever I use calibre to copy books to the reader. Here is what I have done today: Spoiler:
So, if I copy a very low number of books (1 in my experiments), nothing untoward happens. As soon as I copy a relevant number of books, an active KSM leads to a corrupted database. If I copy a valid database file using the usb connection under KSM and then reboot without KSM, everything works fine. I have to trigger a scan with Nickel by plugging the reader in though to recognize new books copied to the device. Don't know how to do it directly. If I copy 100 books under KSM and then again reboot without KSM to let Nickel scan the new books, it works fine as well (with the limitation of Nickel recognizing the new books only after another cycle of plugging and unplugging the reader). Now, it seems that the process of copying the data itself works fine with KSM enabled, in KSM and in Nickel. The subsequent scan of new books and the modification of the database does not work correctly with KSM enabled. Important: Without KSM I can copy large numbers of books onto the reader without problems. The next experiment could be to install fmon directly. Any recommendations about which package to use? And should I uninstall KSM first or is it enough to have it configured as never to run? This way I could find out whether fmon works without problems. Earlier experiments showed already that KSM leads to problems even with fmon disabled. Any other ideas what I should test? And how could I determine the KSM problem in more detail (without first having to understand the source)? Cheers, Joe |
![]() |
![]() |
![]() |
#23 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,535
Karma: 78910202
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
|
Actually you had an issue here
Code:
plug in DB ok copy 1 book with calibre unplug plug in (hung up on connection) plug in DB ok |
![]() |
![]() |
![]() |
#24 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
So the issue seems to occur when (1) KSM is active and (2) nickel has to deal with a newly modified database and (3) at the same time with newly added books. I do not see what exactly is the problem with this setting. But maybe we can change it a little, and see what happens:
The issue mentioned by Peter is also alarming. |
|
![]() |
![]() |
![]() |
#25 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 2724
Join Date: Nov 2011
Device: Multiple Kobos, multiple Kindles
|
Hi,
ok, did that. Here are the results: Spoiler:
So, my first question: What is the difference between the two types of usb connections? Second, what happened directly after simulating the usb connection? It seems as if Nickel simply lost its db connection and could no longer find the books. It also didn't touch the database, it seems because the db was ok after rebooting (I didn't check file size or content, should have done that). Curiouser and Curiouser... Cheers, Joachim |
![]() |
![]() |
![]() |
#26 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 2724
Join Date: Nov 2011
Device: Multiple Kobos, multiple Kindles
|
Hi Ken,
regarding the "AdvBoot" launcher: That one lets me decide only at boot time whether to use koreader or nickel, right? I would very much like to have an icon on the normal user interface with which to start koreader, or even better, have it start automatically when opening PDF files... Cheers, Joe Last edited by jbaumann; 08-02-2015 at 06:22 AM. |
![]() |
![]() |
![]() |
#27 | ||
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
What is happening is odd. When you say "simulate usb connection worked", does this mean that you saw the process screen with the progress bar? Or was there only the short flash of the display? This is not the expeted result, of course. Quote:
Edit: To sum it up, the actually effective steps in this case were: Newly booted device select enable usb id like nickel (what is the difference to the other?) add new books eject, disable and disconnect reboot without ksm (should not matter, the important point is to start nickel) new books not there plug in unplug Books are there plug in db ok Last edited by tshering; 08-02-2015 at 07:57 AM. |
||
![]() |
![]() |
![]() |
#28 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 107
Karma: 2724
Join Date: Nov 2011
Device: Multiple Kobos, multiple Kindles
|
The simulation seemed to work ok i.e., I got the connect dialog and pressed it in time (ca. 1 second after it popped up). Then a few seconds it showed the "connected" screen.
Instead of the progress bar I got this short flash and then the normal Nickel screen. Before starting this experiment I already had some books on the reader. But Nickel showed none of them. I thought the database had been be corrupted. After a reboot though the database was ok and Nickel again knew about the books. Plugging in and then unplugging the reader brought up the progress bar and Nickel had, after finishing the scan, all the books accessible. Cheers, Joe |
![]() |
![]() |
![]() |
#29 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
|
Quote:
Strangely, it can also happen that nickel does not process newly added books after a real connect/disconnect too. I have seen this some weeks ago happening to my wife's Glo, which is running on the original firmware without any modifications. After copying books, ejecting and disconnecting, nickel did not process the books. Even after repeated connecting/unconnecting and powering on and off nothing happened. Then after some further trials, all of a sudden nickel processed the books. |
|
![]() |
![]() |
![]() |
#30 |
Linux User
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,282
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
nickel has a way to quickly check whether books were added. It probably relies on some timestamp somewhere and unless the time changed it won't walk the entire filesystem tree looking for new files. I haven't actually investigated this in detail though, so I'm just guessing.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Glo Kobo glo and calibre 1.25.0 : kobo database version not suported ? | gperrot | Kobo Reader | 2 | 07-13-2014 10:24 AM |
Kobo sqlite database | darkadept | Kobo Reader | 38 | 09-08-2013 08:12 PM |
Sqlite database clean up | mapline | Kobo Reader | 2 | 08-01-2012 11:12 PM |
Kobo Database Browser - SQLite | JBlyth | Kobo Reader | 2 | 06-06-2010 09:27 PM |