Sublime Forum

Huge memory leak associated with Shellcheck freezes computer completely

#1

Good evening,

I hope it’s my fault, not Sublime Text’s (ST4 build 4200, unregistered version), because it started quite recently. I’m working on a personal Bash/Shell project, which is roughly 2-3K lines of code, with all the Shell scripts open.

In the system monitor, I can see a lot of running shellcheck processes consuming hundreds of megabytes each. I had to pkill -15 shellcheck to stop the memory heap…

I also tried this tip from Github, but it still fails miserably. Disabling hardware acceleration in settings doesn’t help either.

My specs:
Operating system: Pop!_OS 24.04 Cosmic
Linux kernel: 6.17.9
Shellcheck: 0.11.0

Plugins:
Dracula Color Scheme
GitHub Theme
LSP
LSP-bash
LSP-json
Package Control
Solarized Color Scheme
SublimeLinter
SublimeLinter-shellcheck

Settings:
{
“added_words”: [
“shellcheck”,
“https”,
“github”,
“jsonschema”,
“coreutils”,
],
“caret_style”: “phase”,
“color_scheme”: “Mariana.sublime-color-scheme”,
“dark_theme”: “Adaptive.sublime-theme”,
“dictionary”: “Packages/Language - English/en_GB.dic”,
“font_face”: “JetBrains Mono”,
“font_size”: 11,
“hardware_acceleration”: “opengl”,
“highlight_line”: true,
“hot_exit”: “only_on_quit”,
“index_files”: true,
“light_theme”: “Default Dark.sublime-theme”,
“remember_workspace”: true,
“save_on_focus_lost”: true,
“spell_check”: true,
“theme”: “GitHub Adaptive.sublime-theme”,
“translate_tabs_to_spaces”: true,
“trim_trailing_white_space_on_save”: “all”,
“ignored_packages”: [
“Vintage”,
],
}

Thank you!

Rustam

0 Likes