Device
Linux (AppImage)
KOReader version
2025.04
Model and firmware version
No response
Issue description
I was also able to reproduce the issue on a PocketBook device, thus it does not seem to depend on the device itself.
For some epub files, Koreader takes a long time to open them.
It is not something that has to do with the size alone, as I have bigger epub files that are opened nearly instantly.
Steps to reproduce
- Go to https://github.com/rrthomas/hpmor/
- Download the current epub file (current version sha256sum of hpmor.epub is 981fa5461289dcc3519f13cf38fc233257190cf2ef8db9ac83b4e9a6f2b84a34
- Open the file with Koreader
- wait until the file is open
Log
---------------------------------------------
launching...
_ _____ ____ _
| |/ / _ \| _ \ ___ __ _ __| | ___ _ __
| ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
| . \ |_| | _ < __/ (_| | (_| | __/ |
|_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|
It's a scroll... It's a codex... It's KOReader!
[*] Current time: 01/16/26-16:39:49
has monolibtic? no (libs/libkoreader-monolibtic.so: cannot open shared object file: No such file or directory)
lib_search_path: libs/?
lib_basic_format: lib%s.so
lib_version_format: lib%s.so.%s
[*] Version: v2025.04
ffi.load: rt.so.1 (RTLD_GLOBAL)
ffi.findlib: utf8proc [3]
ffi.load: libs/libutf8proc.so.3
ffi.findlib: blitbuffer
ffi.load: libs/libblitbuffer.so
ffi.findlib: SDL2-2.0 [0]
ffi.findlib: SDL2-2.0
ffi.findlib: SDL2
ffi.load: libSDL2-2.0.so.0
01/16/26-16:39:49 DEBUG fts: Preferred MONOTONIC clock source is CLOCK_MONOTONIC
01/16/26-16:39:49 DEBUG fts: Preferred REALTIME clock source is CLOCK_REALTIME
01/16/26-16:39:49 DEBUG fts: BOOTTIME clock source is supported
Starting SDL in /usr/lib/koreader/
01/16/26-16:39:50 DEBUG refresh on logical rectangle 960x1008+0+0
ffi.findlib: lodepng
ffi.load: libs/liblodepng.so
01/16/26-16:39:50 INFO initializing for device Linux
01/16/26-16:39:50 INFO framebuffer resolution: {
h = 1008,
w = 960
} --[[table: 0x7fde95964400]]
ffi.findlib: wrap-mupdf
ffi.load: libs/libwrap-mupdf.so
ffi.findlib: sqlite3 [0]
ffi.load: libs/libsqlite3.so.0
ffi.findlib: freetype [6]
ffi.load: libs/libfreetype.so.6
ffi.findlib: harfbuzz [0]
ffi.load: libs/libharfbuzz.so.0
ffi.findlib: zstd [1]
ffi.load: libs/libzstd.so.1
01/16/26-16:39:50 DEBUG FontList registered: Nimbus Mono
01/16/26-16:39:50 DEBUG FontList registered: Noto Sans Bengali UI
01/16/26-16:39:50 DEBUG FontList registered: Dingbats
01/16/26-16:39:50 DEBUG FontList registered: Nimbus Roman No9 L
01/16/26-16:39:50 DEBUG FontList registered: Nimbus Sans L
01/16/26-16:39:50 DEBUG FontList registered: Noto Serif
01/16/26-16:39:50 DEBUG FontList registered: Noto Sans Devanagari UI
01/16/26-16:39:50 DEBUG FontList registered: Droid Sans Mono
01/16/26-16:39:50 DEBUG FontList registered: Noto Naskh Arabic
01/16/26-16:39:50 DEBUG FontList registered: Standard Symbols L
01/16/26-16:39:50 DEBUG FontList registered: Noto Sans CJK SC
01/16/26-16:39:50 DEBUG FontList registered: Noto Sans
01/16/26-16:39:50 DEBUG FontList registered: NotoSans Nerd Font
01/16/26-16:39:50 DEBUG FontList registered: FreeSerif
01/16/26-16:39:50 DEBUG FontList registered: FreeSans
01/16/26-16:39:50 DEBUG FontList registered: Noto Sans Arabic UI
01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
01/16/26-16:39:50 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
01/16/26-16:39:50 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf
01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
01/16/26-16:39:50 DEBUG Allocating a 512MB budget for the global document cache
01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
01/16/26-16:39:50 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf
01/16/26-16:39:50 DEBUG ReadCollection: reading from collection file
01/16/26-16:39:50 DEBUG show reader ui
01/16/26-16:39:50 DEBUG DocSettings: data is read from /home/fekir/Downloads/hpmor.sdr/metadata.epub.lua
01/16/26-16:39:50 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
01/16/26-16:39:50 DEBUG ImageWidget: _render'ing resources/icons/mdlight/notice-info.svg 64 64
01/16/26-16:39:50 DEBUG renderSVG resources/icons/mdlight/notice-info.svg 1.3333333333333 48 48 > 64 64 0 0
01/16/26-16:39:50 DEBUG cache image|resources/icons/mdlight/notice-info.svg|64|64|alpha
01/16/26-16:39:50 DEBUG ImageWidget: initial offsets 0 0
01/16/26-16:39:50 DEBUG show widget: table: 0x7fde7ebe9860
01/16/26-16:39:50 DEBUG setDirty nil from widget table: 0x7fde7ebe9860 w/ NO region; dithering: nil
01/16/26-16:39:50 DEBUG setDirty via a func from widget table: 0x7fde7ebe9860
01/16/26-16:39:50 DEBUG painting widget: table: 0x7fde7ebe9860
01/16/26-16:39:50 DEBUG blitFrom 120 471 0 0 64 64
01/16/26-16:39:50 DEBUG _refresh: Enqueued ui update for region 109 440 742 127 dithering: false
01/16/26-16:39:50 DEBUG triggering refresh {
mode = "ui",
region = "742x127+109+440"
} --[[table: 0x7fde7ebc31b0]]
01/16/26-16:39:50 DEBUG refresh on logical rectangle 742x127+109+440
01/16/26-16:39:50 DEBUG close widget: table: 0x7fde7ebe9860
01/16/26-16:39:50 DEBUG setDirty via a func from widget nil
01/16/26-16:39:50 DEBUG creating coroutine for showing reader
01/16/26-16:39:50 INFO opening file /home/fekir/Downloads/hpmor.epub
01/16/26-16:39:50 DEBUG CreDocument: using cre call cache
01/16/26-16:39:50 INFO Inhibiting user input
01/16/26-16:39:50 DEBUG DocSettings: data is read from /home/fekir/Downloads/hpmor.sdr/metadata.epub.lua
01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
01/16/26-16:39:50 DEBUG ImageWidget: _render'ing resources/icons/mdlight/book.opened.svg 52 52
01/16/26-16:39:50 DEBUG renderSVG resources/icons/mdlight/book.opened.svg 1.0833333333333 48 48 > 52 52 0 0
01/16/26-16:39:50 DEBUG cache image|resources/icons/mdlight/book.opened.svg|52|52|flat
01/16/26-16:39:50 DEBUG ImageWidget: initial offsets 0 0
01/16/26-16:39:50 DEBUG Getting list of dictionaries
01/16/26-16:39:50 DEBUG found 0 dictionaries
01/16/26-16:39:50 DEBUG CreDocument: applied cr3.ini default settings.
01/16/26-16:39:50 DEBUG CreDocument: set fallback font faces: Noto Sans CJK SC|Noto Naskh Arabic|Noto Sans Devanagari UI|Noto Sans Bengali UI|FreeSans|FreeSerif|Noto Serif|Noto Sans
01/16/26-16:39:50 DEBUG CreDocument: set adjusted fallback font sizes true
01/16/26-16:39:50 DEBUG CreDocument: set monospace font scaling 100
01/16/26-16:39:50 INFO Looking for plugins in directory: plugins
01/16/26-16:39:50 INFO Looking for plugins in directory: /home/fekir/.config/koreader/plugins/
01/16/26-16:39:50 DEBUG Plugin loaded archiveviewer
01/16/26-16:39:50 DEBUG Plugin loaded autoturn
01/16/26-16:39:50 DEBUG Plugin loaded autowarmth
01/16/26-16:39:50 DEBUG Plugin loaded batterystat
01/16/26-16:39:50 DEBUG Plugin loaded bookshortcuts
01/16/26-16:39:50 DEBUG Plugin loaded calibre
01/16/26-16:39:50 DEBUG Plugin loaded coverbrowser
01/16/26-16:39:50 DEBUG Plugin loaded docsettingtweak
01/16/26-16:39:50 DEBUG Plugin loaded exporter
01/16/26-16:39:50 DEBUG Plugin loaded gestures
01/16/26-16:39:50 DEBUG Plugin loaded hotkeys
01/16/26-16:39:50 DEBUG Plugin loaded httpinspector
01/16/26-16:39:50 DEBUG japanese.koplugin deinflector: loaded inflection table with 36 rules and 569 variants
01/16/26-16:39:50 DEBUG Plugin loaded japanese
01/16/26-16:39:50 DEBUG Plugin loaded keepalive
01/16/26-16:39:50 DEBUG Plugin loaded kosync
01/16/26-16:39:50 DEBUG Plugin loaded movetoarchive
01/16/26-16:39:50 DEBUG CacheSQLite: /home/fekir/.config/koreader/cache/newsdownloader.sqlite current size: 16384
01/16/26-16:39:50 DEBUG Plugin loaded newsdownloader
01/16/26-16:39:50 DEBUG Plugin loaded opds
01/16/26-16:39:50 DEBUG Plugin loaded perceptionexpander
01/16/26-16:39:50 DEBUG Plugin loaded profiles
01/16/26-16:39:50 DEBUG Plugin loaded qrclipboard
01/16/26-16:39:50 DEBUG Plugin loaded readtimer
01/16/26-16:39:50 DEBUG Plugin loaded statistics
01/16/26-16:39:50 DEBUG Plugin loaded systemstat
01/16/26-16:39:50 DEBUG Plugin loaded terminal
01/16/26-16:39:50 DEBUG Plugin loaded texteditor
01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf
01/16/26-16:39:50 DEBUG Found font: NotoSans-Italic.ttf in ./fonts/noto/NotoSans-Italic.ttf
01/16/26-16:39:50 DEBUG Plugin loaded vocabbuilder
01/16/26-16:39:50 DEBUG Plugin loaded wallabag
01/16/26-16:39:50 DEBUG RD loaded plugin archiveviewer at plugins/archiveviewer.koplugin
01/16/26-16:39:50 DEBUG RD loaded plugin autoturn at plugins/autoturn.koplugin
01/16/26-16:39:50 DEBUG AutoWarmth: scheduleMidnightUpdate
01/16/26-16:39:50 DEBUG RD loaded plugin autowarmth at plugins/autowarmth.koplugin
01/16/26-16:39:50 DEBUG RD loaded plugin batterystat at plugins/batterystat.koplugin
01/16/26-16:39:50 DEBUG RD loaded plugin bookshortcuts at plugins/bookshortcuts.koplugin
01/16/26-16:39:50 DEBUG RD loaded plugin calibre at plugins/calibre.koplugin
01/16/26-16:39:50 DEBUG CoverBrowser: setting FileManager display mode to: list_image_meta
01/16/26-16:39:50 DEBUG CoverBrowser: setting display mode: history mosaic_image
01/16/26-16:39:50 DEBUG CoverBrowser: setting display mode: collections mosaic_image
01/16/26-16:39:50 DEBUG RD loaded plugin coverbrowser at plugins/coverbrowser.koplugin
01/16/26-16:39:50 DEBUG RD loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin
01/16/26-16:39:50 DEBUG RD loaded plugin exporter at plugins/exporter.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin gestures at plugins/gestures.koplugin
01/16/26-16:39:51 DEBUG Hotkey ReaderBookmark:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey ReaderFont:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey ReaderLink:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey ReaderSearch:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey ReaderToc:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey ReaderThumbnail:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey ReaderUI:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey ReaderDictionary:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey ReaderWikipedia:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Hotkey FileSearcher:registerKeyEvents() overridden.
01/16/26-16:39:51 DEBUG Total number of hotkey events registered successfully: 50
01/16/26-16:39:51 DEBUG RD loaded plugin hotkeys at plugins/hotkeys.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin httpinspector at plugins/httpinspector.koplugin
01/16/26-16:39:51 DEBUG language support: registering japanese plugin
01/16/26-16:39:51 DEBUG RD loaded plugin japanese at plugins/japanese.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin keepalive at plugins/keepalive.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin kosync at plugins/kosync.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin movetoarchive at plugins/movetoarchive.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin newsdownloader at plugins/newsdownloader.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin opds at plugins/opds.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin profiles at plugins/profiles.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin qrclipboard at plugins/qrclipboard.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin readtimer at plugins/readtimer.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin statistics at plugins/statistics.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin systemstat at plugins/systemstat.koplugin
01/16/26-16:39:51 DEBUG Terminal: default shell is /bin/zsh
01/16/26-16:39:51 DEBUG RD loaded plugin terminal at plugins/terminal.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin texteditor at plugins/texteditor.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin vocabbuilder at plugins/vocabbuilder.koplugin
01/16/26-16:39:51 DEBUG RD loaded plugin wallabag at plugins/wallabag.koplugin
01/16/26-16:39:51 DEBUG CreDocument: set view mode page
01/16/26-16:39:51 DEBUG CreDocument: set page info
01/16/26-16:39:51 DEBUG CreDocument: set status line property 1
01/16/26-16:39:51 DEBUG made tweak css:
*[type~="note"],
*[type~="endnote"],
*[type~="footnote"],
*[type~="rearnote"],
*[role~="doc-note"],
*[role~="doc-endnote"],
*[role~="doc-footnote"],
*[role~="doc-rearnote"]
{
-cr-only-if: -fb2-document;
-cr-hint: footnote-inpage;
margin: 0 !important;
font-size: 0.8rem !important;
}
body[name="notes"] section {
-cr-only-if: fb2-document;
-cr-hint: footnote-inpage;
margin: 0 !important;
}
body[name="notes"] > section {
-cr-only-if: fb2-document;
font-size: 0.75rem;
}
body[name="notes"] > title {
-cr-only-if: fb2-document;
margin-bottom: 0;
padding-bottom: 0.5em;
}[END]
01/16/26-16:39:51 DEBUG CreDocument: set style sheet: ./data/epub.css and appended content (649 bytes)
01/16/26-16:39:51 DEBUG CreDocument: set embedded fonts 1
01/16/26-16:39:51 DEBUG CreDocument: set embedded style sheet 1
01/16/26-16:39:51 DEBUG CreDocument: set block rendering flags 0x7fffffff
01/16/26-16:39:51 DEBUG CreDocument: set render dpi 96
01/16/26-16:39:51 DEBUG CreDocument: set page margins 16 24 16 49
01/16/26-16:39:51 DEBUG CreDocument: set txt preformatted 1
01/16/26-16:39:51 DEBUG CreDocument: set smooth scaling false
01/16/26-16:39:51 DEBUG CreDocument: set nightmode images true
01/16/26-16:39:51 DEBUG CreDocument: set font face Noto Serif
01/16/26-16:39:51 DEBUG CreDocument: set header font Noto Sans
01/16/26-16:39:51 DEBUG CreDocument: set font size 36
01/16/26-16:39:51 DEBUG CreDocument: set font base weight 0 = 400
01/16/26-16:39:51 DEBUG CreDocument: set font hinting mode 2
01/16/26-16:39:51 DEBUG CreDocument: set font kerning mode 3
01/16/26-16:39:51 DEBUG CreDocument: set space width scale 95
01/16/26-16:39:51 DEBUG CreDocument: set space condensing 75
01/16/26-16:39:51 DEBUG CreDocument: set word expansion 0
01/16/26-16:39:51 DEBUG CreDocument: set cjk width scaling 100
01/16/26-16:39:51 DEBUG CreDocument: set interline space 100
01/16/26-16:39:51 DEBUG CreDocument: set gamma index 15
01/16/26-16:39:51 DEBUG CreDocument: set font-family font faces: ||||||FreeSerif||
01/16/26-16:39:51 DEBUG building font face menu table
01/16/26-16:39:51 DEBUG CreDocument: set textlang embedded langs true
01/16/26-16:39:51 DEBUG CreDocument: set textlang hyphenation enabled true
01/16/26-16:39:51 DEBUG CreDocument: set hyphenation trust soft hyphens 0
01/16/26-16:39:51 DEBUG CreDocument: set textlang hyphenation soft hyphens only false
01/16/26-16:39:51 DEBUG CreDocument: set textlang hyphenation force algorithmic false
01/16/26-16:39:51 DEBUG CreDocument: set hyphenation left hyphen min 0
01/16/26-16:39:51 DEBUG CreDocument: set hyphenation right hyphen min 0
01/16/26-16:39:51 DEBUG CreDocument: set floating punctuation 0
01/16/26-16:39:51 DEBUG Typography lang: using en-US from doc settings
01/16/26-16:39:51 DEBUG CreDocument: set textlang main lang en-US
01/16/26-16:39:51 DEBUG UserHyph: reset user hyphenation dict
01/16/26-16:39:51 DEBUG CreDocument: requesting DOM version: 20240114
01/16/26-16:39:51 DEBUG CreDocument: set visible page count 1
01/16/26-16:39:51 DEBUG CreDocument: loading document...
01/16/26-16:39:51 DEBUG CreDocument: loading done.
01/16/26-16:39:51 DEBUG loading took 0.058 seconds
01/16/26-16:39:51 DEBUG Typography lang: not overriding en-US with doc language: en-US
01/16/26-16:39:51 DEBUG CreDocument: rendering document...
01/16/26-16:39:51 DEBUG CreDocument: rendering done.
01/16/26-16:39:51 DEBUG rendering took 0.026 seconds
01/16/26-16:39:51 DEBUG validateAndFixToc(): quick scan
01/16/26-16:39:51 DEBUG validateAndFixToc(): TOC is fine
01/16/26-16:39:51 DEBUG CreDocument: set alt document prop authors Eliezer Yudkowsky
01/16/26-16:39:51 DEBUG CreDocument: set alt document prop title Harry Potter and the Methods of Rationality
01/16/26-16:39:51 DEBUG CreDocument: goto page 1 flow 0
01/16/26-16:39:51 DEBUG _refresh: Enqueued partial update for region 0 0 960 1008 dithering: false
01/16/26-16:39:51 DEBUG setDirty partial from widget ReaderUI w/ NO region; dithering: nil
01/16/26-16:39:51 DEBUG CreDocument: set page info
01/16/26-16:39:51 DEBUG CreDocument: goto xpointer /body/DocFragment[1]/body/div/svg.0
01/16/26-16:39:51 DEBUG _refresh: Enqueued partial update for region 0 0 960 1008 dithering: false
01/16/26-16:39:51 DEBUG setDirty partial from widget ReaderUI w/ NO region; dithering: nil
01/16/26-16:39:51 DEBUG CreDocument: set bookmarks highlight and internal history false
01/16/26-16:39:51 DEBUG _refresh: Enqueued partial update for region 0 0 960 1008 dithering: false
01/16/26-16:39:51 DEBUG setDirty partial from widget ReaderUI w/ NO region; dithering: nil
01/16/26-16:39:51 DEBUG CreDocument: set page info
01/16/26-16:39:51 DEBUG Spinning up new ReaderUI instance table: 0x7fde7ededd38
01/16/26-16:39:51 DEBUG show widget: ReaderUI
01/16/26-16:39:51 DEBUG update_mode: Update refresh mode partial to full
01/16/26-16:39:51 DEBUG _refresh: Enqueued full update for region 0 0 960 1008 dithering: false
01/16/26-16:39:51 DEBUG setDirty full from widget ReaderUI w/ NO region; dithering: nil
01/16/26-16:39:51 DEBUG painting widget: ReaderUI
01/16/26-16:39:51 DEBUG readerview painting "960x1008+0+0" to 0 0
01/16/26-16:39:51 DEBUG CreDocument: goto page 1 flow 0
01/16/26-16:39:51 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf
01/16/26-16:39:51 DEBUG setDirty full on no specific widget: found a dithered widget, infecting the refresh queue
01/16/26-16:39:51 DEBUG update_dither: Update dither hint false to true
01/16/26-16:39:51 DEBUG _refresh: Enqueued full update for region 0 0 960 1008 dithering: true
01/16/26-16:39:51 DEBUG setDirty full from widget nil w/ NO region; dithering: true
01/16/26-16:39:51 DEBUG _repaint: it was dithered, infecting the refresh queue
01/16/26-16:39:51 DEBUG _refresh: Enqueued full update for region 0 0 960 1008 dithering: true
01/16/26-16:39:51 DEBUG triggering refresh {
mode = "full",
region = "960x1008+0+0"
} --[[table: 0x7fde7cb6db58]]
01/16/26-16:39:51 DEBUG refresh on logical rectangle 960x1008+0+0
01/16/26-16:39:51 DEBUG ReaderStatistics: Initializing average time per page at 50% of the max value, i.e., 60
01/16/26-16:39:51 DEBUG Explicit widgetRepaint: table: 0x7fde958d4ef8 @ 0 0
01/16/26-16:39:51 DEBUG setDirty via a func from widget nil
01/16/26-16:39:51 DEBUG _refresh: Enqueued ui update for region 0 983 960 25 dithering: false
01/16/26-16:39:51 DEBUG triggering refresh {
mode = "ui",
region = "960x25+0+983"
} --[[table: 0x7fde7d11cdb0]]
01/16/26-16:39:51 DEBUG refresh on logical rectangle 960x25+0+983
01/16/26-16:39:51 INFO Restoring user input handling
Additional information
Since I've enabled debug logs the opening process is much faster, even after disabling debug logs.
I'm not sure how to reproduce the issue or what type of information I can gather.
Device
Linux (AppImage)
KOReader version
2025.04
Model and firmware version
No response
Issue description
I was also able to reproduce the issue on a PocketBook device, thus it does not seem to depend on the device itself.
For some epub files, Koreader takes a long time to open them.
It is not something that has to do with the size alone, as I have bigger epub files that are opened nearly instantly.
Steps to reproduce
Log
--------------------------------------------- launching... _ _____ ____ _ | |/ / _ \| _ \ ___ __ _ __| | ___ _ __ | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__| | . \ |_| | _ < __/ (_| | (_| | __/ | |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_| It's a scroll... It's a codex... It's KOReader! [*] Current time: 01/16/26-16:39:49 has monolibtic? no (libs/libkoreader-monolibtic.so: cannot open shared object file: No such file or directory) lib_search_path: libs/? lib_basic_format: lib%s.so lib_version_format: lib%s.so.%s [*] Version: v2025.04 ffi.load: rt.so.1 (RTLD_GLOBAL) ffi.findlib: utf8proc [3] ffi.load: libs/libutf8proc.so.3 ffi.findlib: blitbuffer ffi.load: libs/libblitbuffer.so ffi.findlib: SDL2-2.0 [0] ffi.findlib: SDL2-2.0 ffi.findlib: SDL2 ffi.load: libSDL2-2.0.so.0 01/16/26-16:39:49 DEBUG fts: Preferred MONOTONIC clock source is CLOCK_MONOTONIC 01/16/26-16:39:49 DEBUG fts: Preferred REALTIME clock source is CLOCK_REALTIME 01/16/26-16:39:49 DEBUG fts: BOOTTIME clock source is supported Starting SDL in /usr/lib/koreader/ 01/16/26-16:39:50 DEBUG refresh on logical rectangle 960x1008+0+0 ffi.findlib: lodepng ffi.load: libs/liblodepng.so 01/16/26-16:39:50 INFO initializing for device Linux 01/16/26-16:39:50 INFO framebuffer resolution: { h = 1008, w = 960 } --[[table: 0x7fde95964400]] ffi.findlib: wrap-mupdf ffi.load: libs/libwrap-mupdf.so ffi.findlib: sqlite3 [0] ffi.load: libs/libsqlite3.so.0 ffi.findlib: freetype [6] ffi.load: libs/libfreetype.so.6 ffi.findlib: harfbuzz [0] ffi.load: libs/libharfbuzz.so.0 ffi.findlib: zstd [1] ffi.load: libs/libzstd.so.1 01/16/26-16:39:50 DEBUG FontList registered: Nimbus Mono 01/16/26-16:39:50 DEBUG FontList registered: Noto Sans Bengali UI 01/16/26-16:39:50 DEBUG FontList registered: Dingbats 01/16/26-16:39:50 DEBUG FontList registered: Nimbus Roman No9 L 01/16/26-16:39:50 DEBUG FontList registered: Nimbus Sans L 01/16/26-16:39:50 DEBUG FontList registered: Noto Serif 01/16/26-16:39:50 DEBUG FontList registered: Noto Sans Devanagari UI 01/16/26-16:39:50 DEBUG FontList registered: Droid Sans Mono 01/16/26-16:39:50 DEBUG FontList registered: Noto Naskh Arabic 01/16/26-16:39:50 DEBUG FontList registered: Standard Symbols L 01/16/26-16:39:50 DEBUG FontList registered: Noto Sans CJK SC 01/16/26-16:39:50 DEBUG FontList registered: Noto Sans 01/16/26-16:39:50 DEBUG FontList registered: NotoSans Nerd Font 01/16/26-16:39:50 DEBUG FontList registered: FreeSerif 01/16/26-16:39:50 DEBUG FontList registered: FreeSans 01/16/26-16:39:50 DEBUG FontList registered: Noto Sans Arabic UI 01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf 01/16/26-16:39:50 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf 01/16/26-16:39:50 DEBUG Found font: NotoSans-Bold.ttf in ./fonts/noto/NotoSans-Bold.ttf 01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf 01/16/26-16:39:50 DEBUG Allocating a 512MB budget for the global document cache 01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf 01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf 01/16/26-16:39:50 DEBUG Found font: DroidSansMono.ttf in ./fonts/droid/DroidSansMono.ttf 01/16/26-16:39:50 DEBUG ReadCollection: reading from collection file 01/16/26-16:39:50 DEBUG show reader ui 01/16/26-16:39:50 DEBUG DocSettings: data is read from /home/fekir/Downloads/hpmor.sdr/metadata.epub.lua 01/16/26-16:39:50 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf 01/16/26-16:39:50 DEBUG ImageWidget: _render'ing resources/icons/mdlight/notice-info.svg 64 64 01/16/26-16:39:50 DEBUG renderSVG resources/icons/mdlight/notice-info.svg 1.3333333333333 48 48 > 64 64 0 0 01/16/26-16:39:50 DEBUG cache image|resources/icons/mdlight/notice-info.svg|64|64|alpha 01/16/26-16:39:50 DEBUG ImageWidget: initial offsets 0 0 01/16/26-16:39:50 DEBUG show widget: table: 0x7fde7ebe9860 01/16/26-16:39:50 DEBUG setDirty nil from widget table: 0x7fde7ebe9860 w/ NO region; dithering: nil 01/16/26-16:39:50 DEBUG setDirty via a func from widget table: 0x7fde7ebe9860 01/16/26-16:39:50 DEBUG painting widget: table: 0x7fde7ebe9860 01/16/26-16:39:50 DEBUG blitFrom 120 471 0 0 64 64 01/16/26-16:39:50 DEBUG _refresh: Enqueued ui update for region 109 440 742 127 dithering: false 01/16/26-16:39:50 DEBUG triggering refresh { mode = "ui", region = "742x127+109+440" } --[[table: 0x7fde7ebc31b0]] 01/16/26-16:39:50 DEBUG refresh on logical rectangle 742x127+109+440 01/16/26-16:39:50 DEBUG close widget: table: 0x7fde7ebe9860 01/16/26-16:39:50 DEBUG setDirty via a func from widget nil 01/16/26-16:39:50 DEBUG creating coroutine for showing reader 01/16/26-16:39:50 INFO opening file /home/fekir/Downloads/hpmor.epub 01/16/26-16:39:50 DEBUG CreDocument: using cre call cache 01/16/26-16:39:50 INFO Inhibiting user input 01/16/26-16:39:50 DEBUG DocSettings: data is read from /home/fekir/Downloads/hpmor.sdr/metadata.epub.lua 01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf 01/16/26-16:39:50 DEBUG ImageWidget: _render'ing resources/icons/mdlight/book.opened.svg 52 52 01/16/26-16:39:50 DEBUG renderSVG resources/icons/mdlight/book.opened.svg 1.0833333333333 48 48 > 52 52 0 0 01/16/26-16:39:50 DEBUG cache image|resources/icons/mdlight/book.opened.svg|52|52|flat 01/16/26-16:39:50 DEBUG ImageWidget: initial offsets 0 0 01/16/26-16:39:50 DEBUG Getting list of dictionaries 01/16/26-16:39:50 DEBUG found 0 dictionaries 01/16/26-16:39:50 DEBUG CreDocument: applied cr3.ini default settings. 01/16/26-16:39:50 DEBUG CreDocument: set fallback font faces: Noto Sans CJK SC|Noto Naskh Arabic|Noto Sans Devanagari UI|Noto Sans Bengali UI|FreeSans|FreeSerif|Noto Serif|Noto Sans 01/16/26-16:39:50 DEBUG CreDocument: set adjusted fallback font sizes true 01/16/26-16:39:50 DEBUG CreDocument: set monospace font scaling 100 01/16/26-16:39:50 INFO Looking for plugins in directory: plugins 01/16/26-16:39:50 INFO Looking for plugins in directory: /home/fekir/.config/koreader/plugins/ 01/16/26-16:39:50 DEBUG Plugin loaded archiveviewer 01/16/26-16:39:50 DEBUG Plugin loaded autoturn 01/16/26-16:39:50 DEBUG Plugin loaded autowarmth 01/16/26-16:39:50 DEBUG Plugin loaded batterystat 01/16/26-16:39:50 DEBUG Plugin loaded bookshortcuts 01/16/26-16:39:50 DEBUG Plugin loaded calibre 01/16/26-16:39:50 DEBUG Plugin loaded coverbrowser 01/16/26-16:39:50 DEBUG Plugin loaded docsettingtweak 01/16/26-16:39:50 DEBUG Plugin loaded exporter 01/16/26-16:39:50 DEBUG Plugin loaded gestures 01/16/26-16:39:50 DEBUG Plugin loaded hotkeys 01/16/26-16:39:50 DEBUG Plugin loaded httpinspector 01/16/26-16:39:50 DEBUG japanese.koplugin deinflector: loaded inflection table with 36 rules and 569 variants 01/16/26-16:39:50 DEBUG Plugin loaded japanese 01/16/26-16:39:50 DEBUG Plugin loaded keepalive 01/16/26-16:39:50 DEBUG Plugin loaded kosync 01/16/26-16:39:50 DEBUG Plugin loaded movetoarchive 01/16/26-16:39:50 DEBUG CacheSQLite: /home/fekir/.config/koreader/cache/newsdownloader.sqlite current size: 16384 01/16/26-16:39:50 DEBUG Plugin loaded newsdownloader 01/16/26-16:39:50 DEBUG Plugin loaded opds 01/16/26-16:39:50 DEBUG Plugin loaded perceptionexpander 01/16/26-16:39:50 DEBUG Plugin loaded profiles 01/16/26-16:39:50 DEBUG Plugin loaded qrclipboard 01/16/26-16:39:50 DEBUG Plugin loaded readtimer 01/16/26-16:39:50 DEBUG Plugin loaded statistics 01/16/26-16:39:50 DEBUG Plugin loaded systemstat 01/16/26-16:39:50 DEBUG Plugin loaded terminal 01/16/26-16:39:50 DEBUG Plugin loaded texteditor 01/16/26-16:39:50 DEBUG Found font: NotoSans-Regular.ttf in ./fonts/noto/NotoSans-Regular.ttf 01/16/26-16:39:50 DEBUG Found font: NotoSans-Italic.ttf in ./fonts/noto/NotoSans-Italic.ttf 01/16/26-16:39:50 DEBUG Plugin loaded vocabbuilder 01/16/26-16:39:50 DEBUG Plugin loaded wallabag 01/16/26-16:39:50 DEBUG RD loaded plugin archiveviewer at plugins/archiveviewer.koplugin 01/16/26-16:39:50 DEBUG RD loaded plugin autoturn at plugins/autoturn.koplugin 01/16/26-16:39:50 DEBUG AutoWarmth: scheduleMidnightUpdate 01/16/26-16:39:50 DEBUG RD loaded plugin autowarmth at plugins/autowarmth.koplugin 01/16/26-16:39:50 DEBUG RD loaded plugin batterystat at plugins/batterystat.koplugin 01/16/26-16:39:50 DEBUG RD loaded plugin bookshortcuts at plugins/bookshortcuts.koplugin 01/16/26-16:39:50 DEBUG RD loaded plugin calibre at plugins/calibre.koplugin 01/16/26-16:39:50 DEBUG CoverBrowser: setting FileManager display mode to: list_image_meta 01/16/26-16:39:50 DEBUG CoverBrowser: setting display mode: history mosaic_image 01/16/26-16:39:50 DEBUG CoverBrowser: setting display mode: collections mosaic_image 01/16/26-16:39:50 DEBUG RD loaded plugin coverbrowser at plugins/coverbrowser.koplugin 01/16/26-16:39:50 DEBUG RD loaded plugin docsettingtweak at plugins/docsettingtweak.koplugin 01/16/26-16:39:50 DEBUG RD loaded plugin exporter at plugins/exporter.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin gestures at plugins/gestures.koplugin 01/16/26-16:39:51 DEBUG Hotkey ReaderBookmark:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey ReaderFont:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey ReaderLink:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey ReaderSearch:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey ReaderToc:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey ReaderThumbnail:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey ReaderUI:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey ReaderDictionary:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey ReaderWikipedia:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Hotkey FileSearcher:registerKeyEvents() overridden. 01/16/26-16:39:51 DEBUG Total number of hotkey events registered successfully: 50 01/16/26-16:39:51 DEBUG RD loaded plugin hotkeys at plugins/hotkeys.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin httpinspector at plugins/httpinspector.koplugin 01/16/26-16:39:51 DEBUG language support: registering japanese plugin 01/16/26-16:39:51 DEBUG RD loaded plugin japanese at plugins/japanese.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin keepalive at plugins/keepalive.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin kosync at plugins/kosync.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin movetoarchive at plugins/movetoarchive.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin newsdownloader at plugins/newsdownloader.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin opds at plugins/opds.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin perceptionexpander at plugins/perceptionexpander.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin profiles at plugins/profiles.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin qrclipboard at plugins/qrclipboard.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin readtimer at plugins/readtimer.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin statistics at plugins/statistics.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin systemstat at plugins/systemstat.koplugin 01/16/26-16:39:51 DEBUG Terminal: default shell is /bin/zsh 01/16/26-16:39:51 DEBUG RD loaded plugin terminal at plugins/terminal.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin texteditor at plugins/texteditor.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin vocabbuilder at plugins/vocabbuilder.koplugin 01/16/26-16:39:51 DEBUG RD loaded plugin wallabag at plugins/wallabag.koplugin 01/16/26-16:39:51 DEBUG CreDocument: set view mode page 01/16/26-16:39:51 DEBUG CreDocument: set page info 01/16/26-16:39:51 DEBUG CreDocument: set status line property 1 01/16/26-16:39:51 DEBUG made tweak css: *[type~="note"], *[type~="endnote"], *[type~="footnote"], *[type~="rearnote"], *[role~="doc-note"], *[role~="doc-endnote"], *[role~="doc-footnote"], *[role~="doc-rearnote"] { -cr-only-if: -fb2-document; -cr-hint: footnote-inpage; margin: 0 !important; font-size: 0.8rem !important; } body[name="notes"] section { -cr-only-if: fb2-document; -cr-hint: footnote-inpage; margin: 0 !important; } body[name="notes"] > section { -cr-only-if: fb2-document; font-size: 0.75rem; } body[name="notes"] > title { -cr-only-if: fb2-document; margin-bottom: 0; padding-bottom: 0.5em; }[END] 01/16/26-16:39:51 DEBUG CreDocument: set style sheet: ./data/epub.css and appended content (649 bytes) 01/16/26-16:39:51 DEBUG CreDocument: set embedded fonts 1 01/16/26-16:39:51 DEBUG CreDocument: set embedded style sheet 1 01/16/26-16:39:51 DEBUG CreDocument: set block rendering flags 0x7fffffff 01/16/26-16:39:51 DEBUG CreDocument: set render dpi 96 01/16/26-16:39:51 DEBUG CreDocument: set page margins 16 24 16 49 01/16/26-16:39:51 DEBUG CreDocument: set txt preformatted 1 01/16/26-16:39:51 DEBUG CreDocument: set smooth scaling false 01/16/26-16:39:51 DEBUG CreDocument: set nightmode images true 01/16/26-16:39:51 DEBUG CreDocument: set font face Noto Serif 01/16/26-16:39:51 DEBUG CreDocument: set header font Noto Sans 01/16/26-16:39:51 DEBUG CreDocument: set font size 36 01/16/26-16:39:51 DEBUG CreDocument: set font base weight 0 = 400 01/16/26-16:39:51 DEBUG CreDocument: set font hinting mode 2 01/16/26-16:39:51 DEBUG CreDocument: set font kerning mode 3 01/16/26-16:39:51 DEBUG CreDocument: set space width scale 95 01/16/26-16:39:51 DEBUG CreDocument: set space condensing 75 01/16/26-16:39:51 DEBUG CreDocument: set word expansion 0 01/16/26-16:39:51 DEBUG CreDocument: set cjk width scaling 100 01/16/26-16:39:51 DEBUG CreDocument: set interline space 100 01/16/26-16:39:51 DEBUG CreDocument: set gamma index 15 01/16/26-16:39:51 DEBUG CreDocument: set font-family font faces: ||||||FreeSerif|| 01/16/26-16:39:51 DEBUG building font face menu table 01/16/26-16:39:51 DEBUG CreDocument: set textlang embedded langs true 01/16/26-16:39:51 DEBUG CreDocument: set textlang hyphenation enabled true 01/16/26-16:39:51 DEBUG CreDocument: set hyphenation trust soft hyphens 0 01/16/26-16:39:51 DEBUG CreDocument: set textlang hyphenation soft hyphens only false 01/16/26-16:39:51 DEBUG CreDocument: set textlang hyphenation force algorithmic false 01/16/26-16:39:51 DEBUG CreDocument: set hyphenation left hyphen min 0 01/16/26-16:39:51 DEBUG CreDocument: set hyphenation right hyphen min 0 01/16/26-16:39:51 DEBUG CreDocument: set floating punctuation 0 01/16/26-16:39:51 DEBUG Typography lang: using en-US from doc settings 01/16/26-16:39:51 DEBUG CreDocument: set textlang main lang en-US 01/16/26-16:39:51 DEBUG UserHyph: reset user hyphenation dict 01/16/26-16:39:51 DEBUG CreDocument: requesting DOM version: 20240114 01/16/26-16:39:51 DEBUG CreDocument: set visible page count 1 01/16/26-16:39:51 DEBUG CreDocument: loading document... 01/16/26-16:39:51 DEBUG CreDocument: loading done. 01/16/26-16:39:51 DEBUG loading took 0.058 seconds 01/16/26-16:39:51 DEBUG Typography lang: not overriding en-US with doc language: en-US 01/16/26-16:39:51 DEBUG CreDocument: rendering document... 01/16/26-16:39:51 DEBUG CreDocument: rendering done. 01/16/26-16:39:51 DEBUG rendering took 0.026 seconds 01/16/26-16:39:51 DEBUG validateAndFixToc(): quick scan 01/16/26-16:39:51 DEBUG validateAndFixToc(): TOC is fine 01/16/26-16:39:51 DEBUG CreDocument: set alt document prop authors Eliezer Yudkowsky 01/16/26-16:39:51 DEBUG CreDocument: set alt document prop title Harry Potter and the Methods of Rationality 01/16/26-16:39:51 DEBUG CreDocument: goto page 1 flow 0 01/16/26-16:39:51 DEBUG _refresh: Enqueued partial update for region 0 0 960 1008 dithering: false 01/16/26-16:39:51 DEBUG setDirty partial from widget ReaderUI w/ NO region; dithering: nil 01/16/26-16:39:51 DEBUG CreDocument: set page info 01/16/26-16:39:51 DEBUG CreDocument: goto xpointer /body/DocFragment[1]/body/div/svg.0 01/16/26-16:39:51 DEBUG _refresh: Enqueued partial update for region 0 0 960 1008 dithering: false 01/16/26-16:39:51 DEBUG setDirty partial from widget ReaderUI w/ NO region; dithering: nil 01/16/26-16:39:51 DEBUG CreDocument: set bookmarks highlight and internal history false 01/16/26-16:39:51 DEBUG _refresh: Enqueued partial update for region 0 0 960 1008 dithering: false 01/16/26-16:39:51 DEBUG setDirty partial from widget ReaderUI w/ NO region; dithering: nil 01/16/26-16:39:51 DEBUG CreDocument: set page info 01/16/26-16:39:51 DEBUG Spinning up new ReaderUI instance table: 0x7fde7ededd38 01/16/26-16:39:51 DEBUG show widget: ReaderUI 01/16/26-16:39:51 DEBUG update_mode: Update refresh mode partial to full 01/16/26-16:39:51 DEBUG _refresh: Enqueued full update for region 0 0 960 1008 dithering: false 01/16/26-16:39:51 DEBUG setDirty full from widget ReaderUI w/ NO region; dithering: nil 01/16/26-16:39:51 DEBUG painting widget: ReaderUI 01/16/26-16:39:51 DEBUG readerview painting "960x1008+0+0" to 0 0 01/16/26-16:39:51 DEBUG CreDocument: goto page 1 flow 0 01/16/26-16:39:51 DEBUG Found font: NotoSansCJKsc-Regular.otf in ./fonts/noto/NotoSansCJKsc-Regular.otf 01/16/26-16:39:51 DEBUG setDirty full on no specific widget: found a dithered widget, infecting the refresh queue 01/16/26-16:39:51 DEBUG update_dither: Update dither hint false to true 01/16/26-16:39:51 DEBUG _refresh: Enqueued full update for region 0 0 960 1008 dithering: true 01/16/26-16:39:51 DEBUG setDirty full from widget nil w/ NO region; dithering: true 01/16/26-16:39:51 DEBUG _repaint: it was dithered, infecting the refresh queue 01/16/26-16:39:51 DEBUG _refresh: Enqueued full update for region 0 0 960 1008 dithering: true 01/16/26-16:39:51 DEBUG triggering refresh { mode = "full", region = "960x1008+0+0" } --[[table: 0x7fde7cb6db58]] 01/16/26-16:39:51 DEBUG refresh on logical rectangle 960x1008+0+0 01/16/26-16:39:51 DEBUG ReaderStatistics: Initializing average time per page at 50% of the max value, i.e., 60 01/16/26-16:39:51 DEBUG Explicit widgetRepaint: table: 0x7fde958d4ef8 @ 0 0 01/16/26-16:39:51 DEBUG setDirty via a func from widget nil 01/16/26-16:39:51 DEBUG _refresh: Enqueued ui update for region 0 983 960 25 dithering: false 01/16/26-16:39:51 DEBUG triggering refresh { mode = "ui", region = "960x25+0+983" } --[[table: 0x7fde7d11cdb0]] 01/16/26-16:39:51 DEBUG refresh on logical rectangle 960x25+0+983 01/16/26-16:39:51 INFO Restoring user input handlingAdditional information
Since I've enabled debug logs the opening process is much faster, even after disabling debug logs.
I'm not sure how to reproduce the issue or what type of information I can gather.