Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen always freezes after opening 2-3 pages of pdf or epub file via koreader #576

Closed
VitaeSpace opened this issue May 11, 2014 · 10 comments

Comments

@VitaeSpace
Copy link

Hi,
I have a problem with koreader. I can read 3 pages of file then everything freezing. After that I have to restart my Kobo.
Please help resolve this issue, Thanks :)

Steps to reproduce:

  1. Turn on Kobo then open Koreader
  2. Select a file to open via koreader
  3. 1st page appears then go to page 2 and 3
  4. Screen and the whole system freeze, I try press on all buttons to go back to Home but it still gets stuck at the page 3. So, I have to restart my Kobo.

My device is Kobo Glo with firmware version 3.2.0 (doa9bf18ea, 2/11/14).

The issue happens with these builds:
koreader-nightly-20140313
koreader-stable-v2014.04
koreader-nightly-20140502
(downloaded them from https://github.com/koreader/koreader/releases)

crash.log

NtxHwCfg_GetCfgFldStrVal:[WARNING]Config version too old !! Please update config file !!

koreader_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"

# stop Nickel
killall -STOP nickel

# store the content of the framebuffer
#dd if=/dev/fb0 of=.last_screen_content

# finally call reader
./reader.lua /mnt/onboard 2> crash.log

# continue with nickel
#cat .last_screen_content | /usr/local/Kobo/pickel showpic
#rm .last_screen_content
killall -CONT nickel
@Markismus
Copy link
Member

Most likely this is not a valid crash.log.
Its first line is a response of ntx_hwconfig and can be ignored.
The rest is the content of an older version of koreader_kobo.sh as should not appear in the crash.log, as the log is created in this shell-script at the line ../reader.lua /mnt/onboard 2> crash.log.

Could you please update to the latest version of koreader?

On the mobileread forums there is a lot of talk about firmware version 3.2.0. Best is probably to skip that version and install firmware version 3.1 or 3.3. If the firmware doesn't automatically update to version 3.3, please search the mobileread forum for down- or upgrading the firmware.

@VitaeSpace
Copy link
Author

Now, I did factory reset and already upgraded firmware to 3.3.0 (8eb9c1f8b2, 4/17/2014). And also installed the latest version of koreader, koreader-nightly-20140509. But the issue still happens.

3.3.0 - koreader-nightly-20140509
crash.log

NtxHwCfg_GetCfgFldStrVal:[WARNING]Config version too old !! Please update config file !!

3.3.0 - koreader-stable-v2014.04
crash.log

./luajit: ./frontend/docsettings.lua:60: attempt to index field 'data' (a nil value)
stack traceback:
    ./frontend/docsettings.lua:60: in function 'readSetting'
    ./reader.lua:14: in main chunk
    [C]: in function 'dofile'
    ./koreader-base:37: in main chunk
    [C]: at 0x0000c440

@Markismus
Copy link
Member

No idea yet.

What you could do is delete the file settings.reader.lua. If you have obsolete settings it will give rather unexpected results.

For more info you can change the lines in koreader_kobo.sh to:

# finally call reader
./reader.lua -d /mnt/onboard > ./koreader_debug.log 2>&1

It enables debugging output and saves it together with the crash info to a file named koreader_debug.log. You'll get more info this way.

@thotypous
Copy link
Member

The only way I can think of v2014.04 giving this crash.log is if settings.reader.lua was empty, had invalid Lua code, or Lua code not containing a return statement (which perhaps would only happen if it became corrupted?). Removing the file like Markismus said should solve this crash when opening KOReader, but it would be nice to see the contents of the file before removing it, to see if we can have a clue on what happened.

@VitaeSpace
Copy link
Author

After deleting settings.reader.lua or re-install koreader folder, the error like in crash log of v2014.04 seems to disappear. But it still freezes when open koreader.

settings.reader.lua

-- we can read Lua syntax here!
return {
    ["lastfile"] = "/mnt/onboard/koboglo_userguide_en.pdf"
}

However, before I enable the debugging, I did the factory reset again to re-install FW 3.3.0 (8eb9c1f8b2, 4/17/2014) but unfortunately the issue still happens.
Everything freezing after opening koreader and not tab anything on the screen for a minute. It can freeze on file manager screen also.

Below is debug log:

NtxHwCfg_GetCfgFldStrVal:[WARNING]Config version too old !! Please update config file !!
Auto-detected Kobo
Device model=
Kobo_kraken
Firmware revision
3.3.0
Screen height =
1024
Screen width =
758
# in tap state...
# set up hold timer
# in tap state...
# in tap state...
# in tap state...
# in tap state...
# in tap state...
# in tap state...
# set up tap timer
# in tap timer true
# single tap detected in slot 0
# in tap state...
# set up hold timer
# in tap state...
# in tap state...
# in tap state...
# in tap state...
# in tap state...
# set up tap timer
# in tap timer true
# single tap detected in slot 0
# in tap state...
# set up hold timer
# in tap state...
# in tap state...
# in tap state...
# set up tap timer
# in tap timer true
# single tap detected in slot 0

@Markismus
Copy link
Member

I just installed KoboLaucher and koreader on a Kobo Glo 3.3.0 and everything works. Even dictionary support works like it should. Maybe you don't have a problem with koreader?! That would explain the logs without pertinent information.

What I would do is delete/rename the koreader directory and reinstall KoboLaucher and koreader.
Make sure KoboLauncher works! It has a feature called USBnet which allows you to plug it into you computer and telnet and ftp into your machine. That way you can actually give the commands in the shell and see what happens.
Than reinstall koreader including the Koboroot.tgz which links the koreader.png to KoboLaucher's filemonitor fmon.

@VitaeSpace
Copy link
Author

I installed KoboLauncher and it works. I can access ssh
Then I reinstalled Koreader and it still has problem. I don't understand how to link the koreader.png to KoboLaucher's filemonitor fmon.

Please help if I misunderstand anything.

@Markismus
Copy link
Member

Normally that is done by copying the Koboroot.tgz to the .kobo directory.

@Markismus
Copy link
Member

When you run the koreader_kobo.sh script from the shell prompt, you can quit koreader with ctrl-C. So now there is no need to reboot. That allows you to try things out.

@VitaeSpace
Copy link
Author

The problem seems to less happen after running from shell. Sleep function doesn't work but that's fine for me. Thanks a lot for your kindly help. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants