Skip to content

Opening footnote target in large notes chapters can run out of memory during indexing #299

Description

@eduardo-svg

Device

X4

Affected Version

1.3.3

Build Variant

tiny

EPUB Optimization

No / Not Applicable

Cache State

All of the above

Describe the Bug

On CrossInk, following a footnote link in heavily annotated EPUB chapters can cause the device to show Indexing for a long time and then fail with a memory error. This is not a case where the footnotes list is missing. The failure happens after selecting/following a footnote, while CrossInk is trying to open/index the target notes chapter.

I reproduced/observed this with the attached (compressed) EPUB.

The issue happens when following footnotes in at least:

  • Scylla And Charybdis
  • Circe

This issue does not happen in CrossPoint 1.3.0 or 1.4.0 RC4.

Steps to Reproduce

  1. Open EPUB.
  2. Navigate to chapter "Scylla and Charybdis" or "Circe"
  3. Follow the first footnote on the first page.

Expected Behavior

Following a footnote link should open the selected note, or at least index only what is needed to navigate to/render that note.

Relevant Log Output/Screenshots

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions