![]() |
#886 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
@xping Thanks. Did it get more frequent with the changes? Could you also send an ev.log?
Too bad that you didn't get rid of the config error. Better delete the entire koreader directory before you update to get rid of the [WARNING]Config version too old !! Please update config file !! UPDATE: I see the bug now. You can get rid of the concatenate-error by changing in gesturedetector.lua in koreader/frontend/ui/:
You can also get rid of the concatenate-error by not using the -d flag while calling reader.lua. I would still like to see the ev.log's. Appearently, rather often there are touch events without x- or y-coordinates. Eventually, this should be fixed in input.lua. I didn't see it, because I confused it with this error: Code:
/luajit: ./frontend/ui/gesturedetector.lua:149: attempt to perform arithmetic on field 'y' (a nil value) Last edited by Markismus; 12-16-2013 at 05:07 AM. |
![]() |
![]() |
![]() |
#887 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
@xping Could you replace all ".." by "," in line 84 of gesturedetector.lua and see if you get rid of the error?
The DEBUG function could allow nil values, while the string concatenate function ".." doesn't. |
![]() |
![]() |
Advert | |
|
![]() |
#888 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 765
Join Date: Nov 2013
Location: Italy
Device: kobo aura hd, kobo mini, Sony prs-t3
|
fixing koreader gesture errors
Quote:
Give me instructions on how to activate event logging... Now will try mods proposed up.... For now I can say that I get out from koreader almost on a page turning on ten (every 8/10 pages)... thx |
|
![]() |
![]() |
![]() |
#889 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
I usually get ev.log as soon as I enable debugging mode with the flag -d after reader.lua. I have no idea why on your reader ev.log is not or cannot be created.
Could you try the modification of post #887 first? Last edited by Markismus; 12-16-2013 at 07:09 AM. |
![]() |
![]() |
![]() |
#890 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 765
Join Date: Nov 2013
Location: Italy
Device: kobo aura hd, kobo mini, Sony prs-t3
|
fixing gesture errors
Quote:
On my aura hd I have accidental exit when I modified back (restored to original) lines 440 662 and 665.... Now I am trying devices (mini and aura hd)... A question: If I comment (adding --) line 84 in gestures.lua, do I get useful log files?? I have to say that I use ken maltby mod to koboreader_kobo.sh: #!/bin/sh export LC_ALL="en_US.UTF-8" # we're always starting from our working directory cd /mnt/onboard/.kobo/koreader/ # export trained OCR data directory export TESSDATA_PREFIX="data" # export dict directory export STARDICT_DATA_DIR="data/dict" # Decrease the reasons for crashes. Search forum for cgm999's explanation. exec 3<&- # stop Nickel killall -STOP nickel killall -STOP hindenburg # finally call reader ./reader.lua /mnt/sd/.Library 1> koreader.log.`date +%s` 2>&1 # continue with nickel killall -CONT hindenburg killall -CONT nickel to return to nickel after exiting koreader. I noticed that with this mod I get more responsiveness to koreader. Instead, if I use standart koboreader_kobo.sh, the reader is so slow that hardly can be used. Is it right???? |
|
![]() |
![]() |
Advert | |
|
![]() |
#891 | |||
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Quote:
Quote:
Either you prefix with "--" and the line is turned into a comment and ignored, or you swap and you get the info. I used that line to compare the touch events in ev.log to the events table processed by the function GestureDetector:feedEvent(tevs). Without the first, the second is near useless. It would only give an insight as to how some events are without x- or y-coordinates. Quote:
Could you upload the working Mini and Aura HD koreader.log's? Last edited by Markismus; 12-16-2013 at 08:23 AM. Reason: extra request |
|||
![]() |
![]() |
![]() |
#892 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 765
Join Date: Nov 2013
Location: Italy
Device: kobo aura hd, kobo mini, Sony prs-t3
|
fixing gesture errors
Quote:
Here is "debugfiles.zip" of my kobo mini with conf that allow to use koreader without making it crash. It seems to work with PDF reflow wich is (according to me) the most "delicate" point of the questions. With EPUB till now no problem The speed is optimal: turning page happens in a moment! With my aura hd the question is harder. Some attempts with the same changes result in a complete failure. koboreader is too slow and often it crashes exiting to nikel. I will post crash and koreader logs this evening when I will be at home (I haven't my aura HD with me, sorry). Anyway, just think that "," instead of ".." allowing nil value is the right choice! Goood Last edited by xping; 12-16-2013 at 09:34 AM. Reason: forgot to link zip file |
|
![]() |
![]() |
![]() |
#893 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Quote:
I would keep input.lua in its original state and only swap ".." with "," in line 84 of gesturedetector.lua These changes will be in future builds of koreader. Last edited by Markismus; 12-16-2013 at 10:30 AM. Reason: commits are merged |
|
![]() |
![]() |
![]() |
#894 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
It "sounds" like you two are getting it straight for two devices (and probably all Mark 4).
My AuraHD doesn't seem to have the issue anymore, although I do still get the occasional koreader.log with an "x" or "y" (a nil value) error. The code in my devices includes what I have found to work the best for me, and includes all the good advice from many great postings here. Most certainly "Markismus's" advice is included in my koreader_kobo.sh file. I try and remember to give credit when I provide others with "what I am using" or "what works for me", but sometimes there are many and I am not always sure what originated with who. My current line 84: DEBUG("tev fed to GestureDetector|",tev.x.."|"..tev.y.."|"..tev.id.. "|"..tev.slot.."|"..tev.timev.sec.."|"..tev.timev. usec) Are you guys talking about replacing all the ".." with "," ? Or just certain ones, like the trailing or leading ones? Or do you mean to replace the "," in ",tev.x.." with ".." to match the others? Luck; Ken Last edited by Ken Maltby; 12-16-2013 at 12:18 PM. |
![]() |
![]() |
![]() |
#895 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Quote:
Code:
DEBUG("tev fed to GestureDetector|",tev.x,"|",tev.y,"|",tev.id,"|",tev.slot,"|",tev.timev.sec,"|",tev.timev.usec) |
|
![]() |
![]() |
![]() |
#896 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Ok made the changes.
Now it is actually doing it again. Maybe it didn't take, I'll try power off and restart. Now it is working with no crash to nickel. And the koreader.log has no error listed. Looks like the changes are working. Luck; Ken Last edited by Ken Maltby; 12-16-2013 at 01:29 PM. |
![]() |
![]() |
![]() |
#897 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 74
Karma: 765
Join Date: Nov 2013
Location: Italy
Device: kobo aura hd, kobo mini, Sony prs-t3
|
Nil value error
Quote:
![]() |
|
![]() |
![]() |
![]() |
#898 |
Time Waster
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 422
Karma: 289160
Join Date: May 2011
Device: Kobo Glo and Aura HD
|
Wouldn't it be simpler to just comment out the line? If it's needed for testing, a developer can easily re-enable it, and for most people it would be useless.
|
![]() |
![]() |
![]() |
#899 | |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 955
Karma: 149907
Join Date: Jul 2013
Location: Rotterdam
Device: HiSenseA5ProCC, Cracked OnyxNotePro, Note5, Kobo Glo, Aura
|
Quote:
However, it also nice to know whether the DEBUG function has a problem with nil-values. It doesn't. |
|
![]() |
![]() |
![]() |
#900 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
|
Quote:
How many? Luck; Ken |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
KOReader: a document reader for PDF, DJVU, EPUB, FB2, HTML, ... (GPLv3) | hawhill | Kindle Developer's Corner | 1289 | 04-07-2025 10:18 AM |
Touch Using two Kobos | tkavan | Kobo Reader | 4 | 06-23-2017 02:47 AM |
2 kobos at once | tsarinaerika | Kobo Reader | 14 | 06-03-2013 04:13 AM |
Syncing between two Kobos | fx3000se | Kobo Reader | 4 | 01-24-2013 02:10 PM |
2 kobos 1 account | retired05 | Kobo Reader | 9 | 05-05-2012 08:25 AM |