Skip to content

Long click on unopened books having "on hold" and "finished" status from Filebrowser crashes #14943

Description

@shuvashish76

Device

Linux (AppImage)

KOReader version

2025.10-115-g0fb2840a0_2026-02-05

Model and firmware version

No response

Issue description

Some items are shown like this:

Image

Crashes for (2) but not for (1). If I open the file (2) then next time it shows pages details on filebrowser and no more crashes. As per testing happens for multiple such "on hold" and "finished" items as well.

Steps to reproduce

Simply long click an item from filebrowser that was never opened before.

Log

---------------------------------------------
                launching...
  _  _____  ____                _
 | |/ / _ \|  _ \ ___  __ _  __| | ___ _ __
 | ' / | | | |_) / _ \/ _` |/ _` |/ _ \ '__|
 | . \ |_| |  _ <  __/ (_| | (_| |  __/ |
 |_|\_\___/|_| \_\___|\__,_|\__,_|\___|_|

 It's a scroll... It's a codex... It's KOReader!

 [*] Current time: 02/06/26-23:23:46
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.10-115-g0fb2840a0_2026-02-05

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.load: libs/libSDL2-2.0.so.0
ffi.findlib: archive [13]
ffi.load: libs/libarchive.so.13
Starting SDL in /tmp/.mount_koreadEJNkcD/
ffi.findlib: lodepng
ffi.load: libs/liblodepng.so
02/06/26-23:23:47 INFO  initializing for device AppImage 
02/06/26-23:23:47 INFO  framebuffer resolution: {
  h = 797,
  w = 599
} --[[table: 0x72e8d48eb900]] 
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
02/06/26-23:23:47 INFO  Looking for plugins in directory: plugins 
02/06/26-23:23:47 INFO  Looking for plugins in directory: /home/ss/.config/koreader/plugins/ 
ffi.findlib: leptonica [6]
ffi.load: libs/libleptonica.so.6
ffi.findlib: k2pdfopt [2]
ffi.load: libs/libk2pdfopt.so.2
./luajit: frontend/apps/filemanager/filemanager.lua:289: attempt to get length of a nil value
stack traceback:
        frontend/apps/filemanager/filemanager.lua:289: in function 'showFileDialog'
        frontend/apps/filemanager/filemanager.lua:177: in function 'onFileHold'
        frontend/ui/widget/filechooser.lua:400: in function 'onMenuHold'
        plugins/coverbrowser.koplugin/listmenu.lua:814: in function 'handleEvent'
        frontend/ui/widget/container/inputcontainer.lua:269: in function 'handleEvent'
        frontend/ui/widget/container/widgetcontainer.lua:83: in function 'propagateEvent'
        frontend/ui/widget/container/widgetcontainer.lua:101: in function 'handleEvent'
        frontend/ui/widget/container/widgetcontainer.lua:83: in function 'propagateEvent'
        frontend/ui/widget/container/widgetcontainer.lua:101: in function 'handleEvent'
        frontend/ui/widget/container/widgetcontainer.lua:83: in function 'propagateEvent'
        frontend/ui/widget/container/widgetcontainer.lua:101: in function 'handleEvent'
        ...
        frontend/ui/widget/container/widgetcontainer.lua:101: in function 'handleEvent'
        frontend/ui/widget/container/widgetcontainer.lua:83: in function 'propagateEvent'
        frontend/ui/widget/container/widgetcontainer.lua:101: in function 'handleEvent'
        frontend/ui/uimanager.lua:910: in function 'sendEvent'
        frontend/ui/uimanager.lua:53: in function '__default__'
        frontend/ui/uimanager.lua:1437: in function 'handleInputEvent'
        frontend/ui/uimanager.lua:1537: in function 'handleInput'
        frontend/ui/uimanager.lua:1581: in function 'run'
        ./reader.lua:295: in main chunk
        [C]: at 0x5e5f0a8443b0

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions