Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High memory usage when adding region annotation with huge link #5950

Closed
rchl opened this issue Apr 22, 2023 · 1 comment
Closed

High memory usage when adding region annotation with huge link #5950

rchl opened this issue Apr 22, 2023 · 1 comment
Assignees
Labels
Milestone

Comments

@rchl
Copy link

rchl commented Apr 22, 2023

Description of the bug

Creating region annotation using view.add_regions() with a huge link (1MB, for example) results in ST using more than 30GB of memory (hard to say exactly how much as I don't have that much RAM).

Steps to reproduce

  1. Start in safe mode
  2. Create a plugin (note that this includes about 1MB of text): https://gist.github.com/rchl/4d2745ad56475690f4d771d089dfbece
  3. Change caret position in a file

Expected behavior

Not blow up due to high memory usage

Actual behavior

Uses more than dozen GB of RAM while creating annotation

Sublime Text build number

4148

Operating system & version

macOS

(Linux) Desktop environment and/or window manager

No response

Additional information

No response

OpenGL context information

No response

@BenjaminSchaaf
Copy link
Member

Fixed in build 4149.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants