-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Server process stuck in an infinite loop(?), eating CPU and not responding to requests #8792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried uninstalling and reinstalling the code extension? Maybe disabling nightly too I think automatic updates might have broken around that time. |
Is |
Removing the |
It's probably stable; there was a bug with the version number generation. What version of the rust-analyzer plugin do you have installed? |
The just-reinstalled VSCode extension is v0.2.563. I believe it was previously the same, since it said "no update available" when I made it check. |
This week's stable release version is 0.2.591, so your version is one month old it seems |
Probably related to being on the OSS version of VSCode? |
Indeed, I’m using the Archlinux package which doesn’t have "Microsoft specific customizations" that upstream builds have. Is any of these customizations known to affect the rust-analyzer extension? How does the extension decide which version of the server executable to download? Is there config to influence that, beyond the stable v.s. nightly switch? |
I don't use VSCode, but IIRC, the OSS version doesn't have the official Marketplace, but a different one. We don't publish to that other marketplace, but I think they mirror the extension; there might be a delay though. The extension version directly controls the downloaded stable version, so if you're on a month-old extension, you get a month-old server version as well. |
I also have this problem, I manually download and install from here |
Oh indeed! TIL that the Archlinux package is configured to use https://open-vsx.org/ instead of Microsoft’s Marketplace. This explains a lot. It’s also in the documented differences. I’ll try to get the version there updated, or failing that install the |
@kekeimiku if you mean the endless loop, as mentioned that's probably one of the linked issues above. |
With the Unfortunately this makes rust-analyzer unusable for me, since this hang happens fairly quickly every time I restart the IDE with the extension enabled on this project :( |
windows 10 rust gnu user, same problem here. temporary switch back to RLS. |
For now I’ve downgraded to v0.2.538 (from the |
FWIW, I can't reproduce this with |
I ran into this quite frequently on rust-analyzer 2021-11-29, with the same call stack. Is it possible to make a hard time limit for chulk as workaround? |
Closing as this was likely a chalk bug |
2021-04-12 seems kinda old but I don’t know how to update it. VSCode says the extension is up to date.
I don’t know what situations trigger this, but while working on Mercurial I semi-often have a rust-analyzer process (started by VSCode) start using ~100% of one CPU thread and stop responding to any query. In particular, saving a file does nothing at first while the editor waits for the formatter to respond. Only after three seconds does a "Waiting" dialog appear with a "Cancel" button, which allows saving without formatting. The only viable way to continue working is to disable the rust-analyzer extension entirely.
Disabling the extension or exiting the editor leaves that process running and eating CPU until I kill it manually.
perf top -p
shows almost all of the time is spent in__memmove_avx_unaligned_erms
. Startinggdb -p
to stop the process at a random time and usingthread apply all where
shows many threads waiting and one with the following call stack:Stack
The text was updated successfully, but these errors were encountered: