Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 05-30-2017, 10:52 AM   #1051
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Then that is probably a report BY reader.lua could not find something it needed.
Although that is a bit strange, Lua usually have very good error messages (and a stack back-trace).

Read the reader.lua file (it is human readable, only compiled at runtime) and check for things listed in a 'require' statement not being present.
You will have to check against the search paths used by the Lua that is being executed (Lua has its own search paths compiled in).

Last edited by knc1; 05-30-2017 at 10:56 AM.
knc1 is offline   Reply With Quote
Old 05-30-2017, 12:01 PM   #1052
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by emcintosh View Post
In kpdf.sh (which happens to be located in /mnt/us/kindlepdfviewer/):
Line 08: cd /mnt/us/kindlepdfviewer/
Line 25: ./reader.lua "$1" 2> crash.log

Alternative line 25 I had tried: /mnt/us/kindlepdfviewer/reader.lua "$1" 2> crash.log

- - - - -
And the first line of reader.lua:
Code:
#!./koreader-base
Ref: https://github.com/koreader/kindlepd...ter/reader.lua

And the first line of koreader-base:
Code:
#!./luajit
Ref: https://github.com/koreader/koreader.../koreader-base

Which ends with:
Code:
if not arg[1] then
	error("you must give the name of the main lua executable as the first argument")
end
local file = arg[1]
table.remove(arg, 1)

ARGV=arg

dofile(file)
Note that the error test only tests for the presence of an argument, not if it makes any sense in the context that the script is called.

So, what are you passing as arg[1]?
Does it include a full path to the file?
knc1 is offline   Reply With Quote
Advert
Old 06-03-2017, 08:56 AM   #1053
ellamasarms
Junior Member
ellamasarms began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jun 2017
Device: Kindle Keyboard 3 (WIFI+3G) Europe
Quote:
Originally Posted by emcintosh View Post
I had a similar problem to Fralik - jailbroken Kindle Keyboard on firmware 3.4.2, launching KindlePDFViever gives 'Success!' message then returns me to native menu. I looked in the crash.log file and found that reader.lua wasn't being found, even though it was clearly present in the same directory as the launching script.

Changing the line in kpdf.sh to give the path explicitly (mnt/us/…) didn't work. I could get the script to find (and fail to execute, obviously) other files, but reader.lua remained invisible.

I tried the latest stable (2013.1) build, latest nightly (93, 7/7/13) and the previous stable (2012.11) but none worked. I noticed that the last two nightlies were labelled 'deprecated' and therefore tried the one before them (85, 14/5/13). This worked.

I put this post here in case anyone else has 'reader.lua not found' problems - Google turns up three copies of a question about this (after someone used the devs' fix to issue 814 on Github), but no solutions.
honestly, i'm so grateful for this! i finally got launchpad installed and kpv running!!!
ellamasarms is offline   Reply With Quote
Old 07-25-2017, 11:58 PM   #1054
Philip Man
Member
Philip Man began at the beginning.
 
Posts: 20
Karma: 10
Join Date: Jul 2017
Device: Kindle Keyboard
Link to last snapshot of KPV is missing.
https://github.com/koreader/kindlepd.../wiki/Download
Is there another source to the binary files?
Philip Man is offline   Reply With Quote
Old 10-02-2017, 04:10 PM   #1055
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
Quote:
Originally Posted by Philip Man View Post
Link to last snapshot of KPV is missing.
https://github.com/koreader/kindlepd.../wiki/Download
Is there another source to the binary files?
This reply is probably a bit late, but Archive.org preserved it in case you have an old device that won't run KOReader: http://web.archive.org/web/201601171...er-v2013.1.zip
Frenzie is offline   Reply With Quote
Advert
Old 11-10-2017, 09:28 PM   #1056
MarjaE
Guru
MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.MarjaE ought to be getting tired of karma fortunes by now.
 
Posts: 924
Karma: 53902736
Join Date: Jun 2015
Device: multiple
Since Librerator is no longer supported, are there any plans to make KindlePdfViewer easier to open?

Shift-P-D assumes two-handed coordination.
MarjaE is offline   Reply With Quote
Old 11-11-2017, 03:07 AM   #1057
Frenzie
Wizard
Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.Frenzie ought to be getting tired of karma fortunes by now.
 
Posts: 1,611
Karma: 724945
Join Date: Oct 2014
Location: Antwerp
Device: Kobo Aura H2O
It's no more supported than Librerator, but it looks like you should be able to change it in the launchpad/kpdf.ini file.

Code:
[Actions]
# start kindlepdfviewer with filebrowser in /mnt/us/documents
P D = !/mnt/us/kindlepdfviewer/kpdf.sh /mnt/us/documents
# start kindlepdfviewer with last document
P P = !/mnt/us/kindlepdfviewer/kpdf.sh
# start kindlepdfviewer without framework in /mnt/us/documents
P K = !/mnt/us/kindlepdfviewer/kpdf.sh --framework_stop /mnt/us/documents
# start kindlepdfviewer without framework on last read document
P L = !/mnt/us/kindlepdfviewer/kpdf.sh --framework_stop
# restart amazon framework - when it got irritated
P R = !/etc/init.d/framework restart
Frenzie is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) hawhill Kindle Developer's Corner 1269 02-27-2024 11:49 AM
Librerator - multi-format e-reader, fork of KPV Kai771 Kindle Developer's Corner 432 10-06-2017 12:20 PM
Yet another PDF viewer (muPDF based) melihron PocketBook 66 09-02-2014 03:03 AM
Text-based PDF to Mobi, etc./Kindle 3 kidblue Calibre 41 07-20-2012 03:19 PM
muPDF on Kindle DX!! DairyKnight Kindle Developer's Corner 8 03-21-2010 03:39 AM


All times are GMT -4. The time now is 09:31 AM.


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