-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Does not start on Kobo Touch (attempt to call field 'isKindle') #5717
Comments
Quick and dirty patch to
|
The crash is similar to the one we investigated in #5688, but not the reason. Lines 139 to 158 in d647c62
I think the real fix is moving lines 139-142 after line 158, as Although I know nothing about that tools/kobo_touch_probe.lua. Is that supposed to be a one-time thingy? Would it be too late to have that done on line 158? |
The probe is done on Device init, IIRC. Possibly once only, I can't recall. EDIT: Or it's its result that's used on Device init, which would explain the current order... :/. |
Should be only once because it stores the result. |
OK, so it should be an issue only on first install on Kobo touch (so, hopefully no real need to release a 2019-12.2...) --- a/reader.lua
+++ b/reader.lua
@@ -134,23 +134,26 @@ if Device:hasEinkScreen() then
end
if Device.screen.sw_dithering and G_reader_settings:isTrue("dev_no_sw_dither") then
Device.screen:toggleSWDithering()
end
end
--- Touch screen
-if Device:needsTouchScreenProbe() then
- Device:touchScreenProbe()
-end
-- Handle global settings migration
local SettingsMigration = require("ui/data/settings_migration")
SettingsMigration:migrateSettings(G_reader_settings)
-- Document renderers canvas
local CanvasContext = require("document/canvascontext")
CanvasContext:init(Device)
+-- Touch screen (this may display some widget, on first install on Kobo Touch,
+-- so have it done after CanvasContext:init() but before Bidi.setup() to not
+-- have mirroring mess x/y probing).
+if Device:needsTouchScreenProbe() then
+ Device:touchScreenProbe()
+end
+
-- UI mirroring for RTL languages, and text shaping configuration
local Bidi = require("ui/bidi")
Bidi.setup(lang_locale)
-- Avoid loading UIManager and widgets before here, as they may
-- cache Bidi mirroring settings. Check that with: @RenaKunisaki : can you try by just replacing koreader/reader.lua with this one: reader.lua.txt |
Yep, that seems to have done it. |
Issue
Koreader crashes immediately at startup.
Steps to reproduce
crash.log
(if applicable)crash.log
The text was updated successfully, but these errors were encountered: