koreader icon indicating copy to clipboard operation
koreader copied to clipboard

Crash on `Forward to next location` (likely only fixed-layout set to cont. mode)

Open jonnyl2 opened this issue 1 year ago • 0 comments

  • KOReader version: koreader-appimage-x86_64-linux-gnu-v2024.11-54-ga43c9ab53_2024-12-06.AppImage
  • Device: Linux PC (also happens on Kobo)

Issue

Crash on going Forward to next location (possibly sometimes also on Back to previous location)

(Seems to occur only on fixed-layout books set to Continuous view.)

Steps to reproduce

(Create gestures/QuickMenu for Back to previous location and Forward to next location for quick access.)

  1. Load a PDF book and set view to continuous.
  2. Jump to a page in the back of the book (e.g. via Book map).
  3. Jump to previous location
  4. Turn page to next page
  5. Actuate Forward to next location (immediate crash occurs)

(The above steps seem to reliably reproduce the crash. However, crashes could also occur with slightly different steps, but I'm not sure what triggers them.)

Crash traceback

crash.log
./luajit: frontend/apps/reader/modules/readerpaging.lua:606: attempt to index a nil value
stack traceback:
	frontend/apps/reader/modules/readerpaging.lua:606: 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/modules/readerlink.lua:952: 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:911: in function 'sendEvent'
	frontend/dispatcher.lua:1184: in function 'execute'
	plugins/gestures.koplugin/main.lua:1172: in function 'handler'
	frontend/ui/widget/container/inputcontainer.lua:258: in function 'handleEvent'
	frontend/ui/uimanager.lua:911: in function 'sendEvent'
	frontend/ui/uimanager.lua:53: in function '__default__'
	frontend/ui/uimanager.lua:1438: in function 'handleInputEvent'
	frontend/ui/uimanager.lua:1538: in function 'handleInput'
	frontend/ui/uimanager.lua:1582: in function 'run'
	./reader.lua:280: in main chunk
	[C]: at 0x5ca7018f2260
Segmentation fault (core dumped)

jonnyl2 avatar Dec 07 '24 20:12 jonnyl2