Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 08-02-2015, 02:39 PM   #31
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
I don't believe there is anything of Koreader left running when you exit Koreader. (Unlike with Nickel.) The only program that provides me a means of checking the database would be calibre, at the moment. How are you finding that the database is corrupted?

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 08-02-2015, 04:45 PM   #32
johnnyb
Cloud Reader
johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.johnnyb ought to be getting tired of karma fortunes by now.
 
Posts: 1,124
Karma: 4000066
Join Date: Aug 2010
Device: Kindle Oasis, Kindle Scribe, iPad Pro 11
Quote:
Originally Posted by Ken Maltby View Post
But you can easily do that, the make the default folder for File Manager. You just long press on the link to that folder and a window will appear with the option to "Set as HOME directory". I assume you have set "Show hidden files" as default in the advanced options, or at least have it checked in the File Manager menu.

You could do the "then hide all hidden files again to unclutter the folder a bit)..." by unchecking the Show hidden files option, but the hidden folder is the one that has a name that starts with a dot/period, it is that - and all the folders and files inside that folder, that are hidden and shown. I have my library in ~50 folders inside a hidden folder.

Luck;
Ken
Last time I checked, when unchecking the "show hidden files" option, Koreader didnt default to my previous choice anymore, a hidden folder named .PDF
Has that behavior changed?
johnnyb is offline   Reply With Quote
Advert
Old 08-02-2015, 04:56 PM   #33
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by johnnyb View Post
Last time I checked, when unchecking the "show hidden files" option, Koreader didnt default to my previous choice anymore, a hidden folder named .PDF
Has that behavior changed?
Hmm... Right, without the "show hidden files" option checked, your .PDF hidden folder is not shown.

Luck;
Ken
Ken Maltby is offline   Reply With Quote
Old 08-02-2015, 08:14 PM   #34
Patricius
Enthusiast
Patricius has learned how to buy an e-book online
 
Patricius's Avatar
 
Posts: 44
Karma: 86
Join Date: Apr 2015
Location: Taiwan, Taipei
Device: Kobo Aura H2O
Quote:
Originally Posted by had View Post
Patricius maybe that issue could be completely avoided if in
/mnt/onboard/.adds/koreader/koreader.sh you cause a shutdown when koreader exits?
Instead of that, I prefer to make koreader run in foreground and reboot after it exists in rcS. This could make the patch koreader-update-independent. The original patch is dirty enough (wait nickel to launch and kill it), so I don't care to add up some more dirtiness in exchange of the ease of update-handling.

The new version: http://pastebin.com/iXMztd2F

Last edited by Patricius; 08-02-2015 at 08:17 PM.
Patricius is offline   Reply With Quote
Old 08-02-2015, 08:32 PM   #35
Patricius
Enthusiast
Patricius has learned how to buy an e-book online
 
Patricius's Avatar
 
Posts: 44
Karma: 86
Join Date: Apr 2015
Location: Taiwan, Taipei
Device: Kobo Aura H2O
Quote:
How are you finding that the database is corrupted?
There are three ways to know it:
1. Calibre pops communication error dialog in file transfer.
2. Like johnnyb has said, nickel home tiles don't responsive to modification.
3. Random books in nickel home/shelves/library having blank cover and a "buy" drop down menu on the right-hand side.

Is it possible for Koreader to broke some presumptions needed by nickel and other background processes?
Patricius is offline   Reply With Quote
Advert
Old 08-03-2015, 02:02 AM   #36
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Patricius View Post
There are three ways to know it:
1. Calibre pops communication error dialog in file transfer.
2. Like johnnyb has said, nickel home tiles don't responsive to modification.
3. Random books in nickel home/shelves/library having blank cover and a "buy" drop down menu on the right-hand side.
KSM users can check the integrity by selecting: tools > kobo diverse.msh > db chk integrity.sh

Quote:
Originally Posted by Patricius View Post
Is it possible for Koreader to broke some presumptions needed by nickel and other background processes?
I am rather sure that KSM is the culprit.
tshering is offline   Reply With Quote
Old 08-03-2015, 02:51 AM   #37
Patricius
Enthusiast
Patricius has learned how to buy an e-book online
 
Patricius's Avatar
 
Posts: 44
Karma: 86
Join Date: Apr 2015
Location: Taiwan, Taipei
Device: Kobo Aura H2O
Quote:
Originally Posted by tshering View Post
I am rather sure that KSM is the culprit.
But it appears there are two kinds of scenarios that causes the database corruption:

1. Calibre with kobo plugins (touch, touch_extend) and any running fmon process, after file transferred.
I've done the isolation test for this (without Koreader). Since KSM uses fmon, I consider the corruption with KSM is due to the same reason. Without the source, I don't know what exactly fmon does besides file-watching and process-spawning.

2. Kill the nickel after it have killed the on-animator, lauch koreader.sh and some transfers with Calibre after it brings back the nickel.
This is simply what my first modification does. I'm still a layman about nickel, maybe frostschutz would be kind enough to explain the reason of corruption in this case? I have no time to test upon this scenario in detail (without calibre/koreader, or even kill and relaunch nickel then do some transfers).
Patricius is offline   Reply With Quote
Old 08-03-2015, 03:28 AM   #38
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by Patricius View Post
But it appears there are two kinds of scenarios that causes the database corruption:

1. Calibre with kobo plugins (touch, touch_extend) and any running fmon process, after file transferred.
I've done the isolation test for this (without Koreader). Since KSM uses fmon, I consider the corruption with KSM is due to the same reason. Without the source, I don't know what exactly fmon does besides file-watching and process-spawning.

2. Kill the nickel after it have killed the on-animator, lauch koreader.sh and some transfers with Calibre after it brings back the nickel.
This is simply what my first modification does. I'm still a layman about nickel, maybe frostschutz would be kind enough to explain the reason of corruption in this case? I have no time to test upon this scenario in detail (without calibre/koreader, or even kill and relaunch nickel then do some transfers).
When nickel is started from KSM, there are still some scripts running that are located on the user partition (and in many cases instances of fmon). That being the case, the user partition cannot be unmounted when nickel connects via usb. This is not pretty, and becomes dangerous if (and I think, but am not sure, only if) files are modified that are currently in use (which seems to be the case with the database when one adds books with calibre.)
tshering is offline   Reply With Quote
Old 08-03-2015, 05:45 AM   #39
Patricius
Enthusiast
Patricius has learned how to buy an e-book online
 
Patricius's Avatar
 
Posts: 44
Karma: 86
Join Date: Apr 2015
Location: Taiwan, Taipei
Device: Kobo Aura H2O
Quote:
Originally Posted by tshering View Post
When nickel is started from KSM, there are still some scripts running that are located on the user partition (and in many cases instances of fmon). That being the case, the user partition cannot be unmounted when nickel connects via usb. This is not pretty, and becomes dangerous if files are modified that are currently in use (the database)
So you are talking about the first case?
But I would whether think the user partition is umount successfully (maybe forced, regardless of opened database) because the device entered the "slave mode" after all.
This explains the behaviour I've mentioned in #19:
Quote:
1. install fmon (or uncomment the on_start.sh & reboot) ->
2. connect and transfer with calibre (success or communication error, database malformed) ->
3. disconnected, content processed (or not), books and shelves disappear ->
4. comment out on_start.sh and reboot ->
5. broken items still broken, but newly transferred items shows normally.
Which means the database has been damaged sometimes during the `umount -f` process.

If this is true, maybe adding a script that kills/re-spawns all fmon processes then make it triggered by an udev rule will solve the problem.

But what about the second case? Someone with shell access of the device can try my setup and lsof the user partition after koreader has brought nickel back. :/
Or, I'll do it in /etc/init.d/rcS if my database get ruined again. :P

Last edited by Patricius; 08-03-2015 at 05:50 AM.
Patricius is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
advboot: a new approach to launch nickel or koreader at startup shadoooo Kobo Developer's Corner 127 03-11-2018 04:48 PM
database disk image is malformed fxp33 Calibre 10 09-02-2015 11:58 PM
Aura H2O Problem with KSM and/or Koreader -> Nickel full freeze johnnyb Kobo Developer's Corner 8 04-15-2015 02:18 AM
help: 'malformed database' with kobo prairiegal Devices 2 03-10-2011 09:50 PM
Malformed Database Request timlegge Kobo Reader 0 02-18-2011 10:44 PM


All times are GMT -4. The time now is 04:33 PM.


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