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

Go Back   MobileRead Forums > E-Book Readers > Onyx Boox

Notices

Reply
 
Thread Tools Search this Thread
Old 08-21-2024, 05:08 AM   #1
denisuu
Zealot
denisuu has learned how to buy an e-book online
 
denisuu's Avatar
 
Posts: 136
Karma: 98
Join Date: Dec 2018
Device: Onyx Leaf 2 (White)
'Button rotation patch' makes KoReader crash

Does anyone use KoReader with the 2-disable-hw-button-rotation.lua patch?

Since updating to version my Leaf 2 to 3.5.3 (7f5c78ff3), I've been experiencing crashes whenever I apply the patch and then press the volume up or down button, or swipe to go back.

I tried various versions of KoReader, but it might be a ROM issue, not a KoReader problem. I also tried factory resetting the device.
I expect it to be the case for other Onyx or Android devices too.

Interesting lines in crash.log
Code:
07-25 17:13:57.213 V/dlopen  ( 2818): sys_dlopen - loading library /data/user/0/org.koreader.launcher/files/common/ssl.so (in local namespace)
07-25 17:13:57.214 W/linker  ( 2818): Warning: "/data/user/0/org.koreader.launcher/files/common/ssl.so" unused DT entry: DT_RPATH (type 0xf arg 0x129b) (ignoring)
07-25 17:13:57.354 I/KOReader( 2818): Loading plugins from directory: /storage/emulated/0/koreader/plugins/
07-25 17:13:58.613 E/NativeThread( 2818): Failed to run script: frontend/device/input.lua:704: attempt to index field 'rotation_map' (a nil value)
Interesting lines in pidcat.log
Code:
Unable to open libbeluga.so: dlopen failed: library "libbeluga.so" not found.'
Full logs:
Github: Koreader page turn buttons do not switch with rotation
denisuu is offline   Reply With Quote
Old 08-21-2024, 01:26 PM   #2
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,118
Karma: 12439909
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
I know nothing about KOReader or Lua.
Does the KOReader.apk have any libs in it?
Or does it presume your device is "Lua-ready"?
The easiest would be to add the libbeluga.so (I presume some pun on "Lua") to the KOReader.apk.
Of, course, if this is the only thing that uses Lua maybe it would be more useful to just patch the code that it doesn't need a foreign language to rotate the screen.
Unless KOReader is all Lua???
Renate is offline   Reply With Quote
Advert
Old 08-21-2024, 05:08 PM   #3
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,118
Karma: 12439909
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
I still don't have a clue what libbeluga is.
It appears that it is an optional lib used/not used by libandroid_runtime.so
So it's not like it's not finding a required lib.
Renate is offline   Reply With Quote
Old 08-24-2024, 11:29 AM   #4
denisuu
Zealot
denisuu has learned how to buy an e-book online
 
denisuu's Avatar
 
Posts: 136
Karma: 98
Join Date: Dec 2018
Device: Onyx Leaf 2 (White)
Quote:
Originally Posted by Renate View Post
I still don't have a clue what libbeluga is.
It appears that it is an optional lib used/not used by libandroid_runtime.so
So it's not like it's not finding a required lib.
I have no idea what libbeluga is or whether it's an Android component or something related to KoReader.

Initially, I thought I might have removed too many apps, but even after restoring all uninstalled and disabled apps, and performing a factory reset, the crash persists.

This issue started after Onyx's latest update, I’ve decided not to update anymore. It seems more stuff breaks than it adds benefits for me. I'm even considering restoring a backup to the version the device shipped with.

Maybe I should post this in the KoReader MobileRead Forums?
denisuu is offline   Reply With Quote
Old 08-24-2024, 11:46 AM   #5
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,118
Karma: 12439909
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
Curse you! You're making me learn this Lua stuff.

Change your mod as so:
Code:
local logger = require("logger")
local Device = require("device")
Device.input.rotation_map = map()
logger.info("Hardware button rotation disabled by user patch")
Renate is offline   Reply With Quote
Advert
Old 08-24-2024, 12:20 PM   #6
denisuu
Zealot
denisuu has learned how to buy an e-book online
 
denisuu's Avatar
 
Posts: 136
Karma: 98
Join Date: Dec 2018
Device: Onyx Leaf 2 (White)
Quote:
Originally Posted by Renate View Post
Curse you! You're making me learn this Lua stuff.
Oh no, the Lua curse is spreading! But seriously, thanks for diving into this. Appreciate you taking the time!

That patch doesn't load.

Code:
Error applying patch: /storage/emulated/0/koreader/patches/2-disable-hw-button-rotation.lua
denisuu is offline   Reply With Quote
Old 08-24-2024, 01:15 PM   #7
Renate
Onyx-maniac
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 3,118
Karma: 12439909
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5, Go6
I can't believe I made an error. Me, an experienced (10 minutes) Lua programmer.
Code:
Device.input.rotation_map = {[0]={}, [1]={}, [2]={}, [3]={}}
Renate is offline   Reply With Quote
Old 08-24-2024, 02:42 PM   #8
denisuu
Zealot
denisuu has learned how to buy an e-book online
 
denisuu's Avatar
 
Posts: 136
Karma: 98
Join Date: Dec 2018
Device: Onyx Leaf 2 (White)
Code:
local logger = require("logger")
local Device = require("device")
Device.input.rotation_map = {[0]={}, [1]={}, [2]={}, [3]={}}
logger.info("Hardware button rotation disabled by user patch")
That fixed it lol, the crashes are gone and the buttons are correctly mapped when I rotate the device.

Thanks again Renate!

denisuu is offline   Reply With Quote
Reply

Tags
android, android 11, koreader, onyx

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
koreader crash kevinkingk Kindle Developer's Corner 6 04-26-2023 01:13 PM
Auto-rotation for KOReader on Android? drawson1 KOReader 5 11-29-2021 04:23 PM
Calibre makes my whole system freeze/crash scarlettruin Calibre 2 10-30-2018 07:31 PM
Beware : Calibre 2.66 makes Mac OS X crash tahitibub Calibre 8 11-12-2016 11:11 AM
Touch Home button causes crash kirschschreib Kobo Reader 4 09-06-2011 06:14 AM


All times are GMT -4. The time now is 06:35 AM.


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