koreader / kpvbooklet

KPVBooklet is a Kindle booklet for starting koreader/kindlepdfviewer and updating last access and percentage finished information in Kindle content catalog entry of the opened document.
MIT License
208 stars 21 forks source link

Can not open files FB2,PDF,DJVU and etc with version 0.6.6 #33

Open dmyger opened 6 years ago

dmyger commented 6 years ago

Now it has bin folder with script and ini file. But, it still does not work: tap on file show error that can't run selected application.

Kindle Whitepaper 3 (5.6.5) with koreader-kindle-arm-linux-gnueabi-v2015.11-1287-g5a2c8e4.zip

dmyger commented 6 years ago

Is the way manually install this extension? To find out where it brokes, and why 0.6.4 works, but any new one does not.

cytown commented 6 years ago

Hi @dmyger , could you please post the log file here?

dmyger commented 6 years ago

Yes I can, if you tell me where to take it from?

mzelyony commented 6 years ago

Same here. This is all I got in the Installer's log:


[2017-11-19 @ 13:09:27 -0500] - Beginning the processing of package 'update_kpvbooklet_0.6.6_install.bin' (kpvbooklet 0.6.6 I) . . .

-- Running 'install.ffs' for 'kpvbooklet 0.6.6 I' (update_kpvbooklet_0.6.6_install.bin) @ Sun, 19 Nov 2017 13:09:28 -0500

eips: pixel_in_range> (768, 288) pixel not in range (0..758, 0..1024) system: I mntroot:def:Making root filesystem writeable eips: pixel_in_range> (768, 288) pixel not in range (0..758, 0..1024) eips: pixel_in_range> (768, 288) pixel not in range (0..758, 0..1024) eips: pixel_in_range> (768, 288) pixel not in range (0..758, 0..1024) eips: pixel_in_range> (768, 288) pixel not in range (0..758, 0..1024) eips: pixel_in_range> (768, 288) pixel not in range (0..758, 0..1024) eips: pixel_in_range> (768, 288) pixel not in range (0..758, 0..1024) system: I mntroot:def:Making root filesystem read-only eips: pixel_in_range> (768, 288) pixel not in range (0..758, 0..1024)

Success! :)

cytown commented 6 years ago

Please check and provide the last 50 lines of file /tmp/kpvbooklet.log.

dmyger commented 6 years ago

After installing 0.6.6 there is no any /tmp/kpvbooklet.log file. This file existed while the old version was installed, but I had deleted it to make clear installation. But there are following messages in the KUAL.log file:

Extracting update package 'update_kpvbooklet_0.6.6_install.bin' to '/mnt/us/mrpackages/staging'.
Bundle         SP01 (Signing Envelope)
Cert number    0
Cert file      pubdevkey01.pem (Developer)
Bundle         FD04 (Versionless [vls])
Bundle Type    OTA V2
Minimum OTA    0
Target OTA     18446744073709551615
Devices        40
Device         Kindle 5 Touch WiFi (0x11)
Device         Kindle 5 Touch WiFi+3G (0x0F)
Device         Kindle 5 Touch WiFi+3G Europe (0x10)
Device         Kindle PaperWhite WiFi (0x24)
Device         Kindle PaperWhite WiFi+3G (0x1B)
Device         Kindle PaperWhite WiFi+3G Canada (0x1C)
Device         Kindle PaperWhite WiFi+3G Europe (0x1D)
Device         Kindle PaperWhite WiFi+3G Japan (0x1F)
Device         Kindle PaperWhite WiFi+3G Brazil (0x20)
Device         Kindle PaperWhite 2 (2013) WiFi (0xD4)
Device         Kindle PaperWhite 2 (2013) WiFi Japan (0x5A)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (0xD5)
Device         Kindle PaperWhite 2 (2013) WiFi+3G Canada (0xD6)
Device         Kindle PaperWhite 2 (2013) WiFi+3G Europe (0xD7)
Device         Kindle PaperWhite 2 (2013) WiFi+3G Russia (0xD8)
Device         Kindle PaperWhite 2 (2013) WiFi+3G Japan (0xF2)
Device         Kindle PaperWhite 2 (2013) WiFi (4GB) International (0x17)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (4GB) Europe (0x60)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (4GB) (0x62)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (4GB) Canada (0x5F)
Device         Kindle PaperWhite 2 (2013) WiFi+3G (4GB) Brazil (0x61)
Device         Kindle Basic (2014) (0xC6)
Device         Kindle Basic (2014) Australia (0xDD)
Device         Kindle Voyage WiFi (0x13)
Device         Kindle Voyage WiFi+3G (0x54)
Device         Kindle Voyage WiFi+3G Europe (0x53)
Device         Kindle Voyage WiFi+3G Japan (0x2A)
Device         Kindle PaperWhite 3 (2015) WiFi (0G1 -> 0x201)
Device         Kindle PaperWhite 3 (2015) WiFi+3G Japan (0G7 -> 0x207)
Device         Kindle PaperWhite 3 (2015) WiFi+3G Canada (0G6 -> 0x206)
Device         Kindle PaperWhite 3 (2015) WiFi+3G (0G2 -> 0x202)
Device         Kindle PaperWhite 3 (2015) WiFi+3G Europe (0G5 -> 0x205)
Device         Kindle PaperWhite 3 (2015) WiFi+3G Mexico (0G4 -> 0x204)
Device         White Kindle PaperWhite 3 (2016) WiFi (0KB -> 0x26B)
Device         White Kindle PaperWhite 3 (Unknown Variant 0KC) (0KC -> 0x26C)
Device         Kindle Oasis WiFi (0GC -> 0x20C)
Device         Kindle Oasis WiFi+3G (0GD -> 0x20D)
Device         Kindle Oasis WiFi+3G Europe (0GU -> 0x21C)
Device         Kindle Basic 2 (2016) (Unknown Variant 0K9) (0K9 -> 0x269)
Device         Kindle Basic 2 (2016) (Unknown Variant 0KA) (0KA -> 0x26A)
Critical       0
Padding Byte   0 (0x00)
MD5 Hash       f31f1a7428b59b8903ef3a4c7ab15c99
Metadata       0
x mimes.install.sql
x whispertouch.install.sql
x KPVBooklet.jar
x extensions/
x install.ffs
x extensions/kpvbooklet/
x extensions/kpvbooklet/bin/
x extensions/kpvbooklet/config.xml
x extensions/kpvbooklet/menu.json
x extensions/kpvbooklet/bin/booklet.sh
x mimes.install.sql.sig
x whispertouch.install.sql.sig
x KPVBooklet.jar.sig
x install.ffs.sig
x extensions/kpvbooklet/config.xml.sig
x extensions/kpvbooklet/menu.json.sig
x extensions/kpvbooklet/bin/booklet.sh.sig
x update-filelist.dat.sig
x update-filelist.dat

KUAL: ***** started v2.7 (20160721,g) on Mon Nov 20 16:00:19 GMT+3:0100 2017
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdf=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdf=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdf=0$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^txt=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^txt=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^txt=2$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^txt=0$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^epub=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^epub=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^epub=2$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdb=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdb=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdb=2$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^fb2=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^fb2=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^fb2=2$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^rtf=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^rtf=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^rtf=2$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^chm=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^chm=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^chm=2$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdf=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdf=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^pdf=0$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^txt=" -g! "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^txt=1$" -g || || : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"
KUAL: "/mnt/us/extensions/kpvbooklet": JSON "if": "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" -f "/mnt/us/extensions/kpvbooklet/bin/booklet.ini" "^txt=0$" -g && : not found: "/mnt/us/extensions/kpvbooklet/bin/booklet.ini"

My file booklet.ini has one line:

#cat /mnt/us/extensions/kpvbooklet/bin/booklet.ini
pdf=0
cytown commented 6 years ago

You should operate kpvbooklet extensions for few times and try open some book, then it will be created.

dmyger commented 6 years ago

@cytown Yes, I had tried, but the file was not created. BTW, second part of messages in KUAL.log with "not found" words were appeared exactly after had try open some file. Following attempts just add more such messages in the log. v0.6.4 create such file, do you need it?

cytown commented 6 years ago

@dmyger I think the KUAL.log was fine, the not found logs were occurred when ini file was not created, which sure will be in the first running script time.

dmyger commented 6 years ago

@cytown Ok, one more clarification: after installing, I had opened kpvbooklet menu and toggle item for PDF files. (Just don't remember was it one or twice). As I had said earlier, that file exists with one line: pdf=0. I did it special to create such file. And only after it I'd tried open a book's file. I'm going to repeat test tomorrow to ensure, that all correct in my post above.

mzelyony commented 6 years ago

it took a couple of flips in the kpvbooklet's config on/off to activate it for me on .pdf

dmyger commented 6 years ago

@cytown Retested again.

  1. Just after installing KUAL.log ended on first part of messages (see above my comment with the log).
  2. Then I tried open PDF file, got error popup:

Application Error The selected application could not be started. Please try again.

No any changes in the logs.

  1. Then I had opened kpvbooklet's settings and toggled PDF option. In the KUAL.log was appeared block of messages with not found text. And file /mnt/us/extensions/kpvbooklet/bin/booklet.ini got one line pdf=0.
  2. Again tried open PDF file, with the same error. No changes in the log.
  3. Tried open .fb2.zip file. In the KUAL.log was appeared the second block with not found.
  4. Tried open others files (pdf, fb2) - no new messages in the log and no any kpvbooklet.log created.
chrox commented 6 years ago

@dmyger If you have a root shell access to your Kindle, could you get the native system log with tail -f /var/log/messages when opening file with kpvbooklet?

dmyger commented 6 years ago

@chrox I see there several different java exceptions.

  1. First file had been got on reboot just after installing kpvbooklet and two attempt to open files.
  2. Second file with manual rebooting and following tries to open two books.
cytown commented 6 years ago

@chrox seems it's jdk version issue, maybe need try compile them in different jdk and give it try.

aerickson commented 5 years ago

Please try https://github.com/aerickson/kpvbooklet/releases/tag/v0.6.7.pre3 and let me know if it works.

0cean commented 5 years ago

Please try https://github.com/aerickson/kpvbooklet/releases/tag/v0.6.7.pre3 and let me know if it works. @aerickson It work on my kindle oasis.

arooni commented 5 years ago

somewhat unrelated; is this a tool that will help list all epub files on my device then open them from my kindle browser (jailbroken kindle paperwhite 4 user here)

aerickson commented 5 years ago

@dmyger Please try the release I posted above. I had the same issue and it fixed it for me.

dmyger commented 5 years ago

v0.6.7.pre3 it seems as working, at least on PDF files. Installed successful, lets me switch default application and then opens a file in the desired viewer.

videni commented 5 years ago

@aerickson I tried, the v0.6.7.pre3 does not work on pw4 5.10.3 firmware