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

Segfault on PocketBook Inkpad X #5887

Closed
KucharczykL opened this issue Feb 20, 2020 · 9 comments · Fixed by #5890
Closed

Segfault on PocketBook Inkpad X #5887

KucharczykL opened this issue Feb 20, 2020 · 9 comments · Fixed by #5890

Comments

@KucharczykL
Copy link
Contributor

KucharczykL commented Feb 20, 2020

  • KOReader version: v2020.02-12-g611c423_2020-02-18
  • Device: PocketBook InkPad X

Issue

After installation the application didn't launch. I have added a new device entry to the device file but then it crashes with a different error message. Before it crashes, two message boxes are displayed on top of each other. One saying which file is being loaded, the one underneath says something about color and memory usage.

Steps to reproduce

Install on InkPad X and add these entries to the koreader\frontend\device\pocketbook file:

-- PocketBook Inkpad X
local PocketBook1040 = PocketBook:new{
    model = "PB1040",
    isTouchDevice = yes,
    hasKeys = yes,
    hasFrontlight = yes,
    hasColorScreen = yes,
    isAlwaysPortrait = yes,
    display_dpi = 227,
    emu_events_dev = "/var/dev/shm/emu_events",
}

and

elseif codename == "PB1040" then
    return PocketBook1040

Then open the application via the bottom slide-up menu.

crash.log (if applicable)

crash.log

@NiLuJe
Copy link
Member

NiLuJe commented Feb 20, 2020

Not actually a color screen, so, that can go away at the very least ^^.

(i.e., start from an Inkpad Pro 3 instead of the Color Lux. Quick maths says your dpi should be correct, though).

@NiLuJe
Copy link
Member

NiLuJe commented Feb 20, 2020

It might also not need isAlwaysPortrait either, but that's for once it no longer faceplants on startup, since it should only affect touch input.

@NiLuJe
Copy link
Member

NiLuJe commented Feb 20, 2020

Other than that, it, err, eerily sounds like InkView is once again doign some nasty crap behind our back.

Ideally, a core dump and/or a strace would be mightily helpful, like it was in #5861...

Also, that appears to be a new FW release, so I wouldn't mind having a look at a copy of your /usr/lib/libinkview.so to double-check that theory...

@KucharczykL
Copy link
Contributor Author

Just removing the color and portrait options didn't solve it. As for your last comment, I don't know how to do it. I tried to search for an answer but in vain. Could you give me some advice?

@Frenzie
Copy link
Member

Frenzie commented Feb 20, 2020

As for strace, I understand you might be able to run something like strace -o log.txt -f koreader.app on the device itself without any mods. Not sure though.

As for /usr/lib/libinkview.so, that should be a file on the device itself.

@NiLuJe
Copy link
Member

NiLuJe commented Feb 20, 2020

You'll need shell access to the device for all of those things. There ought to be some somewhat current info about how to achieve that buried in the PocketBook forum on MobileRead, but since I've never held a PB device myself, I can't really say much more.

@KucharczykL
Copy link
Contributor Author

Thanks for the pointers! Managed to get root ssh access. These are the spoils of my endeavor:

log.txt

libinkview.zip

@NiLuJe
Copy link
Member

NiLuJe commented Feb 21, 2020

Ah.

Good news: No new InkView shenanigans \o/.

Best news: You're using a build affected by #5861 (for... some reason? Did you move an existing installation?).

TL;DR: A clean install from >= 2020.02-11 should do the trick ;).

(Well, with the new device block ^^).

(Alternatively, make sure you have a libcurl_ko.so.4 file in koreader's libs folder, and delete the libcurl.so.4 you'll find in the same place).

@KucharczykL
Copy link
Contributor Author

You are right. During testing different builds I probably forgot to replace the .app file as well. It works now! Thank you for your help.

Frenzie pushed a commit that referenced this issue Feb 22, 2020
mwoz123 pushed a commit to mwoz123/koreader that referenced this issue Mar 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants