question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jedi freezes ST and causes very high RAM usage.

See original GitHub issue

Description

  1. An python file of a Sublime Text package is open.
  2. Enter from collections import S into the first line.

ST suddenly freezes. After a while the console shows some output error. The CPU usage of the plugin_host.exe increases to 100% for one core. The RAM usage increases up to 1.2GB.

I was faced to that issue several times. Sometimes RAM usage even increases and stays at 2.5GB!

Console Output

Traceback (most recent call last):
  File "C:\Apps\Sublime Text 3\sublime_plugin.py", line 685, in on_query_completions
    res = vel.on_query_completions(prefix, locations)
  File "C:\Apps\Sublime Text 3\Data\Packages\Jedi - Python autocompletion\sublime_jedi\completion.py", line 154, in on_query_completions
    location=locations[0]
  File "C:\Apps\Sublime Text 3\Data\Packages\Jedi - Python autocompletion\sublime_jedi\daemon.py", line 83, in ask_daemon_with_timeout
    return request.result(timeout=timeout)
  File "./python3.3/concurrent/futures/_base.py", line 403, in result
concurrent.futures._base.TimeoutError

TaskManager

screenshot

Infos

  • Win10 Pro 1803 x64
  • ST 3176 x64
  • Jedi v0.13.4
  • Running python 3.7
  • jedi-0.12.1
  • parso-0.3.1
'PYTHONPATH': ';C:\\Apps\\Sublime Text 3\\Data\\Lib\\python3.3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\wcwidth\\all;C:\\Apps\\Sublime Text 3\\Data\\Packages\\sublime_lib\\st3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\tabulate\\all;C:\\Apps\\Sublime Text 3\\Data\\Packages\\PYTHON~1\\st3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\pyyaml\\st3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\dateutil\\all;C:\\Apps\\Sublime Text 3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\pygments\\all;C:\\Apps\\Sublime Text 3\\Data\\Packages\\jsonschema\\all;C:\\Apps\\Sublime Text 3\\python3.3.zip;C:\\Apps\\Sublime Text 3\\Data\\Packages\\pyte\\all;C:\\Apps\\Sublime Text 3\\Data\\Packages\\python-jinja2\\all;C:\\Apps\\Sublime Text 3\\Data\\Packages\\MARKUP~1\\all;C:\\Apps\\Sublime Text 3\\Data\\Packages\\backrefs\\st3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\mdpopups\\st3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\lxml\\st3_windows_x64;C:\\Apps\\Sublime Text 3\\Data\\Packages\\Jedi - Python autocompletion\\dependencies;C:\\Apps\\Sublime Text 3\\Data\\Packages;C:\\Apps\\Sublime Text 3\\Data\\Packages\\pymdownx\\st3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\ruamel-yaml\\st3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\coverage\\st3_windows_x64;C:\\Apps\\Sublime Text 3\\Data\\Packages\\pathtools\\all;C:\\Apps\\Sublime Text 3\\Data\\Packages\\pywinpty\\st3_windows_x64;C:\\Apps\\Sublime Text 3\\Data\\Packages\\regex\\st3_windows_x64;C:\\Apps\\Sublime Text 3\\Data\\Packages\\yaml_macros_engine\\st3;C:\\Apps\\Sublime Text 3\\Data\\Packages\\watchdog\\all',

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:27 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
davidhaltercommented, Dec 15, 2018

I only just realized how bad this issue was. Big sorry for that. I therefore did a release immediately. (0.13.2)

1reaction
deathaxecommented, Sep 6, 2018

Just added a webbrowser.get(...).open() line somewhere in my code. The first time I enter url, it takes quite a long time - 1 to 3 seconds. But after that the delays seem constant at something like 0.3 to 0.6s.

The culprit for high RAM was the second line in my case.

// These settings override Default settings for the package
{
    "python_package_paths": [
        "C:\\Apps\\Sublime Text 3",
        // "C:\\Apps\\Sublime Text 3\\python3.3.zip",
        "C:\\Apps\\Sublime Text 3\\Data\\Lib\\python3.3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\pygments\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\ruamel-yaml\\st3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\sublime_lib\\st3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\tabulate\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\lxml\\st3_windows_x64",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\pathtools\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\wcwidth\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\coverage\\st3_windows_x64",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\watchdog\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\pywinpty\\st3_windows_x64",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\backrefs\\st3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\dateutil\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\MARKUP~1\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\pymdownx\\st3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\pyte\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\PYTHON~1\\st3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\pyyaml\\st3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\regex\\st3_windows_x64",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\yaml_macros_engine\\st3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\python-jinja2\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\jsonschema\\all",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\mdpopups\\st3",
        "C:\\Apps\\Sublime Text 3\\Data\\Packages\\Jedi - Python autocompletion\\dependencies",
    ],
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Freeze caused by very high RAM usage : r/StableDiffusion
Hello, while trying to run the basic github version, my RAM usage quickly goes to the maximum, and causes my PC to completely...
Read more >
Jupyter Lab freezes the computer when out of RAM
I've noticed in spyder and jupyter that the freezeup will usually happen when working in another console while a large memory console runs....
Read more >
How to fix Star Wars Jedi: Fallen Order crashing in Windows 10?
1. Run Star Wars Jedi: Fallen Order as an administrator. 2. Verify the integrity of the game files for Star Wars Jedi: Fallen...
Read more >
High memory use, crashes, freezes and application shut downs
I constantly receive messages to shutdown applications because of high memory usage, usually about 80%. When I try to continue working Windows ...
Read more >
Fix High RAM Memory Usage Issue on Windows 11/10 [10 ...
When the PC has a high memory usage error, it will freeze while running a program and pops up an error message, warning...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found