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.

completion.py stuck in endless loop @ 100% CPU

See original GitHub issue

Environment data

  • VS Code version: 1.45.0
  • Extension version (available under the Extensions sidebar): XXX
  • OS and version: 2020.4.76186
  • Python version: 3.7.2 - source build w/ “configure --prefix=$SYSROOT -with-ensurepip=install --with-system-expat”
  • Type of virtual environment used: N/A
  • Relevant/affected Python packages and their versions: N/A
  • Relevant/affected Python-related VS Code extensions and their versions: N/A
  • Jedi or Language Server? (i.e. what is "python.jediEnabled" set to; more info #3977): XXX
  • Value of the python.languageServer setting: XXX

Expected behaviour

completion should finish after a while.

Actual behaviour

completion.py stuck in endless loop @ 100% CPU

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Start up VS Code with any python project in above environment. Happens almost every time.

Logs

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:3
  • Comments:13

github_iconTop GitHub Comments

7reactions
mathix420commented, Nov 2, 2020

Usage of PyLance as Language Server fixed the issue for me, and completion is way better!

"python.languageServer": "Pylance"
1reaction
karrtikrcommented, Jun 2, 2020

@marknelson Please open up a separate issue for that. You may need to configure certain things for it to work.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infinite Loop / Livelock (stuck with high CPU load) on ...
Hey there, We are seeing an issue with the Oracle.ManagedDataAccess.Core framework.
Read more >
High CPU usage for a python while loop: even when sleeping ...
I figure out this problem, when i wrote a program for a game. And i realized even if i create a while infinite...
Read more >
Compiler process gets stuck in infinite loop at 100% CPU load
So the process is apparently stuck in an infinite loop doing nothing. This is the command line according to Process Explorer: C:\Program Files\Microsoft...
Read more >
Debugging 100% CPU workers - Google Groups
I've been having an issue where workers get stuck at 100% CPU usage and stop taking requests. ... Some special Lua code path...
Read more >
CPU utilization of the rpm process stays at 100 % on RHEL 6
Some of the stuck rpm processes show 100% CPU utilization. ... Because one process is now stuck in an infinite loop while holding...
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