rnote icon indicating copy to clipboard operation
rnote copied to clipboard

High memory usage

Open Danacus opened this issue 1 year ago • 7 comments

Describe the bug

In some documents (with a lot of written text and images), memory usage jumps to multiple gigabytes when panning and zooming out aggressively.

To Reproduce

I don't really know which things in the document are causing the issue, but I can provide a document that triggers the issue (it's some notes I took while studying for an exam, shouldn't contain anything sensitive).

dss.zip

Steps to reproduce the behavior:

  1. Open the provided file
  2. Zoom in and start panning the window
  3. Zoom out as far as you can
  4. Repeat until memory usage increases to multiple gigabytes. It may take a little while to reproduce (a few minutes at most), but after a seemingly random amount of time, memory usage instantly jumps from around 1.5GB to 4GB.

Expected behavior

I expected memory usage to be much lower.

Console Output

Nothing besides the initial log message: DEBUG rnote::app::imp > ... env_logger initialized.

Desktop:

  • OS: Fedora Linux
  • Version: 37
  • Installation source: Flatpak (Rnote 0.5.12)
  • Desktop Environment: GNOME 43.2

Additional context

I don't know what exactly causes it. Maybe some tools can be used to figure out what's consuming so much memory?

Danacus avatar Jan 20 '23 08:01 Danacus