Skip to content

Memory leak when reaching the last page of a PDF book #1800

@francoishernandez

Description

@francoishernandez

Steps to reproduce

  1. Open a book (in my case a PDF magazine) in reading mode (tested with Chrome browser)
  2. Move to the last page
  3. Press the right arrow key when on last page
  4. Memory is shooting up and the JVM is not happy (it's stuck, I need to manually restart the docker container)

Expected behavior

Not exactly sure what is happening. There should probably some form of safeguard to prevent this behaviour. Or prevent moving past the last page.

Actual behavior

Memory usage is shooting up, saturating the allocated JVM memory.

Capture d’écran 2024-12-20 à 22 42 42

Logs

_komga_logs (1).txt

Komga version

1.15.1

Operating system

Ubuntu 24.04 w. docker

Installation method

Docker

Other details

I have seen various discussions around memory usage. I don't think that's the same issue here, as there seems to be a bug with the reader when reaching beyond the last page of a book.

Docker image sha: c8430f2cde3239868ae186aae88a1f1bbbfec4d9afa378de5927fd9c0d7bfc14

Acknowledgements

  • I have searched the existing issues (open AND closed) and this is a new ticket, NOT a duplicate or related to another open issue.
  • I have written a short but informative title.
  • I have checked the FAQ.
  • I have updated the app to the latest version.
  • I will fill out all of the requested information in this form.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions