Skip to content

High CPU usage issue #50

Open
Open
@alexbet

Description

@alexbet

Actual Behavior

Many times CPU goes to 100% when saving an SCSS file for some reason and locks SublimeText for 5-10 seconds. At the time that his happens, I can see that a process called "plugin_host" which is a Sublime process use up 100% of the CPU. If I disable the Javascript Enhancements plugin, everything is normal. Very weird because the SCSS file has nothing to do with Javascript.

Sublime Text console logs

PARSING SAVED VIEW
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 389, in run_callback
expr()
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 488, in
run_callback('on_modified', callback, lambda: callback.on_modified(v))
File "/Users/AlexBet/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/SublimeCodeIntel.py", line 1439, in on_modified
sublime_scope = getSublimeScope(view)
File "/Users/AlexBet/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/SublimeCodeIntel.py", line 394, in getSublimeScope
return view.scope_name(pos)
File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 873, in scope_name
return sublime_api.view_scope_name(self.view_id, pt)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 4: invalid start byte
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 389, in run_callback
expr()
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 488, in
run_callback('on_modified', callback, lambda: callback.on_modified(v))
File "/Users/AlexBet/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/SublimeCodeIntel.py", line 1439, in on_modified
sublime_scope = getSublimeScope(view)
File "/Users/AlexBet/Library/Application Support/Sublime Text 3/Packages/SublimeCodeIntel/SublimeCodeIntel.py", line 394, in getSublimeScope
return view.scope_name(pos)
File "/Applications/Sublime Text.app/Contents/MacOS/sublime.py", line 873, in scope_name
return sublime_api.view_scope_name(self.view_id, pt)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 4: invalid start byteeventual errors -->

Specifications

  • Sublime Text 3 build: 3143
  • OS: Mac OS 10.13.4
  • JavaScript Enhancements version: 0.16.13

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions