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
RPC Freezes Up On Completions Windows #1267
Comments
I was seeing the same issue on Arch linux. As I type in a python buffer, elpy starts spinning at 100% CPU when asked for completions and takes a few minutes to return them. Not always, just in some cases. I found a somwhat minimal file that did that for me:
I concluded it to be a Jedi issue, as the server does not do anything that could go that wrong/. Plus the problem went away when I updated jedi to the latest version. Current elpy config:
|
This would most likely be a problem with Jedi. I'm afraid this is really difficult to debug. :-( |
I've tried a few things to improve performance and so far it seems downgrading Jedi to 0.11.0 has resolved the issue. There's still some hangups but they are fairly short. |
same problem - elpy freezes. |
Hm. Could you do |
despite |
sometimes I get
nothing interesting. |
This sounds like a problem specific to windows. Maybe some kind of process config, like a buffer size or so. No idea, sadly. :-( |
I am using mac os x, not windows. |
Ah. The title of the issue seems a bit confusing, then. In any case, I have no idea. If Emacs freezes in redisplay code, it's not communication with the backend, which makes it hard to figure out what the problem is, really. Maybe using os x's equivalent of strace, whatever that might be. I'm at a loss, I'm afraid. |
the following patch "solved" the problem:
I wonder if making this feature optional would be an acceptable solution for you. |
Is this issue still relevant ? |
As company returns completions while typing my RPC process will often run out of control and eat up a ton of memory. This causes emacs to freeze and I'm unable to even use
C - g
to gain control back.Watching the process manager I can see pythonw.exe memory usage double and after 30 - 60 seconds I get the completions back and get control of emacs. If I kill pythonw.exe I get control back right away without any completions.
This seems similar to #199 and #212 but those are pretty old so I'm wondering if this was solved and maybe I'm missing something in my setup?
My config is:
The text was updated successfully, but these errors were encountered: