Skip to content

ReaderPagemap crashes exiting books in latest nightly #15005

Description

@kodermike

Device

Kobo

KOReader version

2025.10-140-g9e6b15878_2026-02-17

Model and firmware version

Kobo Clara Color

Issue description

Returning to the file manager from inside a book crashes

Steps to reproduce

  1. Open Book
  2. exit book

Log

02/18/26-08:15:00 INFO  Inhibiting user input
02/18/26-08:15:01 INFO  Restoring user input handling
./luajit: frontend/apps/reader/modules/readerpagemap.lua:179: attempt to index local 'label' (a nil value)
stack traceback:
	frontend/apps/reader/modules/readerpagemap.lua:179: in function 'cleanPageLabel'
	frontend/apps/reader/modules/readerpagemap.lua:356: in function 'getLastPageLabel'
	frontend/apps/reader/modules/readerpagemap.lua:390: in function 'handleEvent'
	frontend/ui/widget/container/widgetcontainer.lua:83: in function 'propagateEvent'
	frontend/ui/widget/container/widgetcontainer.lua:101: in function 'handleEvent'
	frontend/apps/reader/readerui.lua:832: in function 'onClose'
	frontend/apps/reader/modules/readermenu.lua:50: in function 'callback'
	frontend/ui/widget/touchmenu.lua:765: in function 'switchMenuTab'
	frontend/ui/widget/touchmenu.lua:402: in function 'callback'
	frontend/ui/widget/iconbutton.lua:137: in function 'handleEvent'
	frontend/ui/widget/container/inputcontainer.lua:269: 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 0x00013ea1
!!!!
Uh oh, something went awry... (Crash n°1: 02/18/26 @ 08:15:03)
Running FW 4.44.23552 on Linux 4.9.77 (#1 SMP PREEMPT d226bc7bf-20250103T160218-B0103160930)
Attempting to restart KOReader . . .
!!!!

Additional information

I've disabled all patches, all plugins (including core plugins), restarted, still crashes. Doesn't seem to be universal for all books, but I can reproduce consistently.

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