sublime_text icon indicating copy to clipboard operation
sublime_text copied to clipboard

Really high memory usage and then a crash with a lot of new files

Open Monochrome-Sauce opened this issue 1 year ago • 7 comments

Description of the bug

When there are a lot of files, Sublime Text's memory usage starts to rise (it reached higher than in the attached picture) and it ends up crashing. When the crash happens, the inotify system limit is reached. The system has enough memory to keep operating.

Additional information: the files were added by a build system and appear in the .gitignore file.

image

Steps to reproduce

  1. Start Sublime Text.
  2. Generate thousands of build files for good measure.

Expected behavior

Not crash when many files get created, and to not use a dozen gigs of memory.

Actual behavior

Crash with high memory usage because of inotify limit.

Sublime Text build number

4175

Operating system & version

Fedora Kionite 40

(Linux) Desktop environment and/or window manager

KDE 6

Additional information

No response

OpenGL context information

No response

Monochrome-Sauce avatar May 17 '24 14:05 Monochrome-Sauce

Does it happen in safe mode?

BenjaminSchaaf avatar May 17 '24 14:05 BenjaminSchaaf

Yes, and even faster.

Monochrome-Sauce avatar May 17 '24 15:05 Monochrome-Sauce

It also happens on an Arch (Sway) machine with completely different hardware (same Sublime Text build)

Monochrome-Sauce avatar May 17 '24 15:05 Monochrome-Sauce

How many files are being created?

BenjaminSchaaf avatar May 17 '24 15:05 BenjaminSchaaf

My case has over 1000, but it also happens at ~600.

Monochrome-Sauce avatar May 17 '24 16:05 Monochrome-Sauce

Memory usage rose by hundreds of MiB for subl --safe-mode open over the weekend with much less files.

Monochrome-Sauce avatar May 18 '24 18:05 Monochrome-Sauce

Creating 100,000 files very quickly on my end locks up ST for a little bit, but memory usage goes up barely 100MB and the process goes back to idle afterwards. As such I really can't reproduce this issue.

BenjaminSchaaf avatar Jun 18 '24 05:06 BenjaminSchaaf