Skip to content

[BUG] Memory leak when editing a big encrypted notes #3627

Closed

Description

@ipariparipa

ver: 26.5.15; ubuntu-22
I have already sent you a really long encrypted note previously, you can try to reproduce with that one.

Activity

  1. pbek commented on May 26, 2026

    @pbek
    Owner

    Can you please describe what you expected, what the actual behavior was, and step by step what you did?

  2. ipariparipa commented on May 26, 2026

    @ipariparipa
    Author
  3. added 2 commits that reference this issue on May 26, 2026
  4. changed the title [-][BUG] this is a massive memleak when editing a big encrypted(?) note[/-] [+][BUG] Memory leak when editing a big encrypted notes[/+] on May 26, 2026
  5. pbek commented on May 26, 2026

    @pbek
    Owner

    26.5.16

    • Fixed a memory leak when switching between notes, especially noticeable with
      large encrypted notes, by reusing the scripting current-note API object instead
      of allocating a new one on every note change, releasing temporary note objects
      from note-store script hooks, and clearing the decrypted encrypted-note editor
      plus undo history when switching back to the regular editor; encrypted-note
      typing now also avoids writing and refetching the full decrypted note text from
      the in-memory database on every keystroke (for #3627)
  6. pbek commented on May 26, 2026

    @pbek
    Owner

    There now is a new release, could you please test it and report if it works for you?

  7. ipariparipa commented on May 27, 2026

    @ipariparipa
    Author

    this is now ok. (26.5.16)

  8. pbek commented on May 27, 2026

    @pbek
    Owner

    Great, thank you for testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions