Skip to content

Font selection sometimes crashes koreader #14462

Description

@alva-seal

Device

Kobo

KOReader version

2035-08-105

Model and firmware version

Kobo libra color

Issue description

When selectin a font sometimes it works but often it crashes koreader, but it seems not be the font that is the problem if i set it in the metadata lua file for the book it opens the book with. the intended font

Steps to reproduce

  1. Go to the second menu while reading a book
  2. Click on Font
  3. Select font
  4. See error

Log

10/15/25-20:01:55 INFO  [KoInsight] Added to menu order using module: ui/elements/reader_menu_order 
10/15/25-20:01:57 INFO  Restoring user input handling 
./luajit: frontend/apps/reader/modules/readerfont.lua:300: attempt to index a nil value
stack traceback:
        frontend/apps/reader/modules/readerfont.lua:300: in function 'onSetFont'
        frontend/apps/reader/modules/readerfont.lua:121: in function 'callback'
        frontend/ui/widget/touchmenu.lua:872: in function 'onMenuSelect'
        frontend/ui/widget/touchmenu.lua:218: in function 'handleEvent'
        frontend/ui/widget/container/inputcontainer.lua:266: 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: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/uimanager.lua:896: in function 'sendEvent'
        frontend/ui/uimanager.lua:53: in function '__default__'
        frontend/ui/uimanager.lua:1423: in function 'handleInputEvent'
        frontend/ui/uimanager.lua:1523: in function 'handleInput'
        frontend/ui/uimanager.lua:1567: in function 'run'
        ./reader.lua:265: in main chunk
        [C]: at 0x00013ea1
!!!!

Additional information

the fonts are placed in /mnt/onboard/fonts

koreader lists them correctly in the selection menu but then it fails after selecting the font

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