Sublime Forum

Sublime consumes cpu on Mac after update

#39

Thanks for the suggestion.
I will try to determine if one of the package is the reason.

0 Likes

#40

Post your Console contents and we can likely identify the cause.

0 Likes

#41

Which log do you want me to post?

0 Likes

#42

View > Show Console.

0 Likes

#43

As suggested I have reverted ST3 to a fresh install state.
I have deleted the folder to obtain a fresh state of the software.
But when I launch SublimeText 3, I have the same problem.

Here pictures of the monitor activity and the the new console output.

Any new suggestion please ? Thanks in advance.

startup, version: 3197 osx x64 channel: dev
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/ims/Library/Application Support/Sublime Text 3/Packages
state path: /Users/ims/Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/ims/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.303573
using gpu buffer for window
startup time: 0.38403
no output from shell "/bin/bash" in 1000ms
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.detect_indentation
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
plugins loaded
0 Likes

#44

Based on the tasks that are using all of the CPU, it looks like you might have mcfly set up incorrectly.

0 Likes

#45

I’m having a similar issue with the latest version. Just reverted to a fresh state and the repos that I’m working on are large and tracked on git.

Here are my logs:

0 Likes

#46

0 Likes

#47

It was effectively the mcfly command that caused this.
Thank you very much.

0 Likes

#48

Please post the full contents of your Console as text.

0 Likes

#49

Same issue here, constantly @ 100% CPU

startup, version: 3200 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users//Library/Application Support/Sublime Text 3/Packages
state path: /Users//Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users//Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: [“Vintage”]
pre session restore time: 0.265294
using gpu buffer for window
using gpu buffer for window
startup time: 0.418328
git: tracking working dir /Users/
no output from shell “/bin/bash” in 1000ms
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.detect_indentation
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
plugins loaded

0 Likes

#50

Hi, I get the very same problem after updating. Here’s my console output:

startup, version: 3200 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/xxx/Library/Application Support/Sublime Text 3/Packages
state path: /Users/xxx/Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/xxx/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: ["Vintage"]
pre session restore time: 0.507753
using gpu buffer for window
using gpu buffer for window
using gpu buffer for window
using gpu buffer for window
startup time: 0.848548
git: tracking working dir /Users/xxxx/Projects/....
git: tracking working dir /Users/xxxx/Projects/....
environment variables loaded using: /bin/zsh -l
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.detect_indentation
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
reloading plugin 0_package_control_loader.00-package_control
reloading plugin 0_package_control_loader.01-pygments
reloading plugin 0_package_control_loader.50-markupsafe
reloading plugin 0_package_control_loader.50-pymdownx
reloading plugin 0_package_control_loader.50-python-markdown
reloading plugin 0_package_control_loader.50-pyyaml
reloading plugin 0_package_control_loader.51-python-jinja2
reloading plugin 0_package_control_loader.55-jsonschema
reloading plugin 0_package_control_loader.55-mdpopups
reloading plugin A File Icon.plugin
reloading plugin ayu.activation
reloading plugin ayu.Icons
reloading plugin DocBlockr.jsdocs
reloading plugin EditorConfig.EditorConfig
reloading plugin Emmet.emmet-plugin
reloading plugin Git.git_commands
reloading plugin GitGutter.plugin
reloading plugin Laravel 5 Artisan.Laravel 5 Artisan
reloading plugin LESS.less_completions
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin PHP Companion.PHP Companion
reloading plugin Sass.sass_completions
reloading plugin SideBarEnhancements.SideBar
reloading plugin SideBarEnhancements.SideBarAPI
reloading plugin SideBarEnhancements.SideBarDefaultDisable
reloading plugin SublimeLinter-php.linter
reloading plugin SublimeLinter.__init__
reloading plugin SublimeLinter.active_linters_view
reloading plugin SublimeLinter.busy_indicator_view
reloading plugin SublimeLinter.goto_commands
reloading plugin SublimeLinter.highlight_view
reloading plugin SublimeLinter.log_handler
reloading plugin SublimeLinter.message_view
reloading plugin SublimeLinter.panel_view
reloading plugin SublimeLinter.status_bar_view
reloading plugin SublimeLinter.sublime_linter
reloading plugin Sublimerge 3.Sublimerge
reloading plugin Babel.Babel
plugins loaded
Emmet: No need to update PyV8
reloading /Users/xxxx/Projects/....
reloading /Users/xxxx/Projects/....
reloading /Users/xxxx/Projects/....
SublimeLinter: WARNING: Waited in queue for 0.66s
SublimeLinter: WARNING: Waited in queue for 0.69s
SublimeLinter: WARNING: Waited in queue for 0.42s
SublimeLinter: WARNING: Waited in queue for 0.85s
SublimeLinter: WARNING: Waited in queue for 1.16s
Package Control: No updated packages
SublimeLinter: WARNING: Waited in queue for 0.13s
SublimeLinter: WARNING: Waited in queue for 0.16s
SublimeLinter: WARNING: Waited in queue for 0.18s
SublimeLinter: WARNING: Waited in queue for 0.25s
SublimeLinter: WARNING: Waited in queue for 0.22s
SublimeLinter: WARNING: Waited in queue for 0.26s
SublimeLinter: WARNING: Waited in queue for 0.28s
SublimeLinter: WARNING: Waited in queue for 0.29s
SublimeLinter: WARNING: Waited in queue for 0.29s
indexing [job 40]: no files were indexed out of the 1 queued, abandoning crawl
indexing [job 46]: no files were indexed out of the 1 queued, abandoning crawl
SublimeLinter: WARNING: Waited in queue for 0.13s
SublimeLinter: WARNING: Waited in queue for 0.19s
SublimeLinter: WARNING: Waited in queue for 0.20s
SublimeLinter: WARNING: Waited in queue for 0.24s
SublimeLinter: WARNING: Waited in queue for 0.67s
SublimeLinter: WARNING: Waited in queue for 0.73s
SublimeLinter: WARNING: Waited in queue for 0.80s
SublimeLinter: WARNING: Waited in queue for 0.80s
SublimeLinter: WARNING: Waited in queue for 0.83s
SublimeLinter: WARNING: Waited in queue for 0.84s
SublimeLinter: WARNING: Waited in queue for 0.95s
SublimeLinter: WARNING: Waited in queue for 0.98s
indexing [job 54]: no files were indexed out of the 1 queued, abandoning crawl
git: tracking working dir /Users/xxxx/Projects/....
git: untracking working dir /Users/xxxx/Projects/....
git: untracking working dir /Users/xxxx/Projects/....
git: tracking working dir /Users/xxxx/Projects/....
git: untracking working dir /Users/xxxx/Projects/....
git: tracking working dir /Users/xxxx/Projects/....

I hope you guys found a fix for this. Thank you!

1 Like

#51

Same problem 100%+ CPU usage on macOS. macOS Mojave 10.14.2.

Hope you can find a fix. Have switched to Atom until fixed.

Console output:
startup, version: 3200 osx x64 channel: stable
executable: /Applications/Sublime Text.app/Contents/MacOS/Sublime Text
working dir: /
packages path: /Users/***/Library/Application Support/Sublime Text 3/Packages
state path: /Users/***/Library/Application Support/Sublime Text 3/Local
zip path: /Applications/Sublime Text.app/Contents/MacOS/Packages
zip path: /Users/***/Library/Application Support/Sublime Text 3/Installed Packages
ignored_packages: [“Markdown”, “Vintage”]
pre session restore time: 0.615745
using gpu buffer for window
startup time: 0.78066
environment variables loaded using: /bin/zsh -l
reloading plugin Default.arithmetic
reloading plugin Default.auto_indent_tag
reloading plugin Default.block
reloading plugin Default.colors
reloading plugin Default.comment
reloading plugin Default.convert_color_scheme
reloading plugin Default.convert_syntax
reloading plugin Default.copy_path
reloading plugin Default.detect_indentation
reloading plugin Default.echo
reloading plugin Default.exec
reloading plugin Default.fold
reloading plugin Default.font
reloading plugin Default.goto_line
reloading plugin Default.history_list
reloading plugin Default.indentation
reloading plugin Default.install_package_control
reloading plugin Default.kill_ring
reloading plugin Default.mark
reloading plugin Default.new_templates
reloading plugin Default.open_context_url
reloading plugin Default.open_in_browser
reloading plugin Default.pane
reloading plugin Default.paragraph
reloading plugin Default.paste_from_history
reloading plugin Default.profile
reloading plugin Default.quick_panel
reloading plugin Default.rename
reloading plugin Default.run_syntax_tests
reloading plugin Default.save_on_focus_lost
reloading plugin Default.scroll
reloading plugin Default.set_unsaved_view_name
reloading plugin Default.settings
reloading plugin Default.show_scope_name
reloading plugin Default.side_bar
reloading plugin Default.sort
reloading plugin Default.switch_file
reloading plugin Default.symbol
reloading plugin Default.transform
reloading plugin Default.transpose
reloading plugin Default.ui
reloading plugin CSS.css_completions
reloading plugin Diff.diff
reloading plugin HTML.encode_html_entities
reloading plugin HTML.html_completions
reloading plugin ShellScript.ShellScript
reloading plugin 0_package_control_loader.00-package_control
reloading plugin All Autocomplete.all_views_completions
reloading plugin Git.git_commands
reloading plugin Github Tools.github
reloading plugin Github Tools.github_blame
reloading plugin Github Tools.github_copy_link
reloading plugin Github Tools.github_create_pr
reloading plugin Github Tools.github_file_history
reloading plugin Github Tools.github_issues
reloading plugin Github Tools.github_open
reloading plugin Github Tools.github_plugin_settings
reloading plugin Github Tools.github_pulls
reloading plugin Github Tools.github_repository
reloading plugin LaTeX Word Count.WordCount
reloading plugin Package Control.1_reloader
reloading plugin Package Control.2_bootstrap
reloading plugin Package Control.Package Control
reloading plugin Sass.sass_completions
reloading plugin SideBarEnhancements.SideBar
reloading plugin SideBarEnhancements.SideBarAPI
reloading plugin SideBarEnhancements.SideBarDefaultDisable
reloading plugin Simple FTP Deploy.main
reloading plugin Babel.Babel
reloading plugin HTML-CSS-JS Prettify.HTMLPrettify
reloading plugin SFTP.SFTP
plugins loaded
Package Control: Skipping automatic upgrade, last run at 2019-03-18 12:13:06, next run at 2019-03-18 13:13:06 or after
git: tracking working dir /Users/***/Documents/***/GIT
git: tracking working dir /Users/***/Documents/***/GIT/***
scan: /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Versions/Current has been seen before, skipping (using inode) previous path: /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Versions/A inode: 8608756246
scan: symlink to /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Versions/A/Helpers has been seen before, superseding (using inode) previous path: /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Helpers inode: 8608756249
scan: symlink to /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Versions/A/Internet Plug-Ins has been seen before, superseding (using inode) previous path: /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Internet Plug-Ins inode: 8608756251
scan: symlink to /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Versions/A/Libraries has been seen before, superseding (using inode) previous path: /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Libraries inode: 8608756253
scan: symlink to /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Versions/A/XPCServices has been seen before, superseding (using inode) previous path: /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/XPCServices inode: 8608756398
scan: symlink to /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Versions/A/Resources has been seen before, superseding (using inode) previous path: /Users/***/Documents/***/GIT/***/python/templates/screen-capture/node_modules/puppeteer/.local-chromium/mac-579032/chrome-mac/Chromium.app/Contents/Versions/70.0.3508.0/Chromium Framework.framework/Resources inode: 8608756261

0 Likes

#52

I am having the same problem with abnormally high CPU usage after upgrade to Sublime text build 3200 on Windows 10 on a PC.
The only helpful clue I have is the the CPU usage only occurs when I am working on a project which synchronizes to a remote unix machine with via SFTP (but not on project that is not synchronized).

The CPU usage is so high that its sublime text is virtually unusable.

I’d appreciate suggestions on debugging.

0 Likes

High CPU on OS X on 3200 with .git folder in ~
Sublime 3.2.1 (3207) keeps on indexing
#53

How to diagnose high CPU usage:

  1. Look at the Indexing Status window - use the menu Help > Indexing Status…. If you see activity here, that means extra processes are running in the background making Goto Definition work. The indexing will need to be done once for each project you have. Once complete, the extra background processes will go away.

  2. If you do not have indexing going on, look for git: tracking working dir message in the Console. If one of them is git: tracking working dir YOUR_HOME_DIR this is likely the issue. Do you really have a git repository that is your entire folder? If not, try renaming ~/.git to something else. Otherwise, change the Preference show_git_status to false to disable git integration.

  3. If you have waited for indexing to finish and disabled git integration, and still see high CPU usage, try reverting to a fresh state: https://www.sublimetext.com/docs/3/revert.html. Save your data dir since it contains your preferences and packages. Test to see if the high CPU usage happens with no third-party packages.

  4. If you have tried all of the above and still see high CPU usage, please file an issue at https://github.com/SublimeTextIssues/Core/issues. Be sure to include as much information as you can so we may further help diagnose the issue.

4 Likes

Mojave/ST3: Sudden Consumption of CPU
Constant High CPU usage after update
#54

Many Thanks wbond. It was indeed .git repository in my home location - moving it resolved the issue.

0 Likes

#55

Is there a way to set the git working dir in the preferences so that Sublime is tracking the right dir, e.g. /Users/user/.git instead of /Users/user? Would prefer that to renaming ~/.git and disabling git integration altogether. Thanks.

0 Likes

#56

We track both the git dir and the working copy (we need to know if either change). If you are seeing git status information, it means everything is correct.

Renaming the .git folder is only a temporary workaround for a folder named .git that is not contain a git repository. The next dev build (and the next stable build) will ensure we are only looking for filesystem notifications when a real git repository is found.

Disabling git integration is an option for users who have a legitimately giant git repo that has constant filesystem activity. It is just that quite a number of users have accidentally created a git repo in their home dir, and are paying the performance cost of monitoring their entire home dir for filesystem activity and git status information.

0 Likes

#57

@wbond
I had the same issue. For some reason, my main user folder was a git repo so sublime was indexing all my files so I had 100% CPU usage. One I removed that It was back to normal. you can see in the console that it stop tracking that directory

git: untracking working dir /Users/juanfelipegarcia

Dont you think this is something that shouldn’t happen? Why is tracking every single repo I have on my computer?

0 Likes

#58

I’m having a possibly-similar problem of high CPU usage on my Mac OS 10.14.3 installation with no plugins or themes installed.

After a fresh download of build 3200 and deleting the folder ~/Library/Application Support/Sublime Text 3, everything is fine until I open the settings window (Preferences -> Settings). After that ST3 uses 40-200% CPU until I quit (closing the settings window doesn’t fix it). After quitting and relaunching, CPU usage is fine until I open the preferences window again.

More testing reveals that opening a folder with many sub-directories is fine, however opening the Keybindings settings also triggers the issue. During all of this, indexing activity is idle.

I took a sample (via Activity Monitor) during low and high cpu states:

Sample of Sublime Text - low CPU after start
Sample of Sublime Text - high CPU after prefs window opened and closed

0 Likes