Skip to content
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

Memory Leak and Loop #923

Closed
DonJayamanne opened this issue May 8, 2017 · 4 comments
Closed

Memory Leak and Loop #923

DonJayamanne opened this issue May 8, 2017 · 4 comments

Comments

@DonJayamanne
Copy link
Contributor

DonJayamanne commented May 8, 2017

From @ppanhoto78 on May 8, 2017 12:58

The bug is described at:
microsoft/vscode#25796

With versions and steps to reproduce

Hello.

I was starting to write a small script with a swig library. Quickly, VSCode started to consume all memory and all swap memory until I had to reboot. I'm using VSCode 1.11.2 and OpenSuSE leap 42.1

Steps to Reproduce:

Install quickfix-python
$ sudo pip install quickfix

start a project

type the script bellow.

#!/usr/bin/env python
import quickfix

class ClientApplication(quickfix.Application):
	def __init__(self, server):
		super(ClientApplication, self).__init__()

in my case, when I trigger autocompletion within the module quickfix, that is enough to cause the loop.

Extensions:
C/C++ 0.11.0
C# 1.9.0
C++ Intellisense 0.2.1
Mono Debug 0.15.5
Python 0.6.3

Copied from original issue: DonJayamanne/pythonVSCode#947

@davidhalter
Copy link
Owner

Can you write that a simple Python script? Like

import jedi
jedi.Script('....').completions()

?

@davidhalter
Copy link
Owner

Oh and your Jedi release is 6 months old:
https://github.com/DonJayamanne/pythonVSCode/tree/master/pythonFiles/release/jedi

Please mention the version that you're currently using in the future. Jedi is changing quite a bit.

@DonJayamanne
Copy link
Contributor Author

Oops

@davidhalter
Copy link
Owner

davidhalter commented Sep 12, 2017

I just checked. It takes me a few seconds the first time to complete this. The reason is that quickfix is 1.8 MB of Python code (which is huge). This is not what the parser can handle in a reasonable time, it takes a bit more than 200 MB of RAM on my machine. Let me know if it's still an issue. (current master)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants