-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Remote SSH Interactive Terminal crashes suddenly #11791
Comments
Hi, I have a question, does VS Code limit the amount of memory available to the console/terminal? Could it be possible that even though I have plenty of memory availabe, I pass the max limit allowed and that's why the process is killed? |
@lucacerone, I'm not aware of any such limit and find it unlikely. However, it is possible. Let's look at a few other things before we go down that path. Please provide the content of the "Python" output panel. Also, what happens when you drop the "--no-autoindent" flag from your setting? What happens when you run IPython manually in the terminal window (with and without the flag)? |
Hi @ericsnowcurrently first of all many thanks for your answer. But really it was something like:
I have opened an IPythin shell in a terminal and I didn't run into issues (but again I am using much less data now). What I realized though is that even when I have no python shell open (just vscode with a couple of files opened, and a couple of bash shells), vscode server is using around 18GB of RAM on the remote host. |
@ericsnowcurrently ok, so now I went back to working with large data structures (2GB of text more or less) And I was was working in an IPython shell called from bash within VS Code with When loading a parquet file the shell just crashed (note that I could import the file previously in the same shell.. Also if I work with Ipython from a bash shell outside of VS Code I never run into such issues. import pandas as pd
In [13]: text = pd.read_parquet(text_file)
Killed
(venv) ubuntu@hostname:/data/text-files |
Nope I am sorry, now it happened also in an ipython shell outside of VSCode, so I don't think it is an issue with VSCode server |
Thanks for the update. I was about to ask if the same thing happens with the Python extension disabled. 🙂 It sounds like that's irrelevant. If there's anything else we can do please let us know. |
Bug: Notebook Editor, Interactive Window, Editor cells
Steps to cause the bug to occur
In a remote workspace I open a Python file.
I select some lines and execute "Run Selection/Line in Python terminal".
The integratedShell opens, load ipython (I set this up) and the command is executed.
I have the following in the workspace settings.json
Actual behavior
After some time executing lines in the terminal, I just see a message:
"Killed" and the shell crashes.
The remote host has plenty of free RAM and the CPU load is very low.
The crash sometimes occurs also when executing lines that run correctly in other occasions.
Expected behavior
I would like to be able to execute commands in the shell, as long as I have free memory
and cpus.
Your Jupyter and/or Python environment
User settings:
Developer Tools Console Output
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer
The text was updated successfully, but these errors were encountered: