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

Spyder process does not terminate on Windows 10 #6672

Closed
Khris777 opened this issue Mar 8, 2018 · 11 comments
Closed

Spyder process does not terminate on Windows 10 #6672

Khris777 opened this issue Mar 8, 2018 · 11 comments

Comments

@Khris777
Copy link

Khris777 commented Mar 8, 2018

Problem Description

After closing Spyder on Windows 10 the process does not terminate and remains in the process manager (I'm using System Explorer here).

After starting Spyder the process tree looks like this:

pythonw.exe C:\Users\...\anaconda3\Scripts\spyder-script.py
    pythonw.exe C:\Users\...\anaconda3\Scripts\spyder-script.py
        pythonw.exe -u plugin_server.py 54329 fallback
        pythonw.exe -u plugin_server.py 54320 jedi
        pythonw.exe -u plugin_server.py 54311 rope
        pythonw.exe -u plugin_server.py 54329 fallback

When quitting the application the four plugin_server.py instances are terminated, but the spyder-script.py instance remains and has to be terminated manually in the process manager.

Starting a new Spyder instance while the old one is still there starts a completely new process tree, after quitting Spyder again now two zombie instances remain. Interestingly the second process I had started is displaying the following parameters in System Explorer: 0 764 768 776 8192 772

The first process does not display any parameters. Maybe that helps in some way.

When started using Anaconda Navigator, Navigator will detect Spyder still running when quitting Navigator and ask you it should terminate it.

Package Versions

  • Spyder: 3.2.7
  • Python: 3.6.4
  • Qt: 5.6.2
  • PyQt: 5.6
  • Operating System: Windows 10

Dependencies

IPython >=4.0    :  6.2.1 (OK)
cython >=0.21    :  0.27.3 (OK)
jedi >=0.9.0     :  0.11.1 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
numpy >=1.7      :  1.14.1 (OK)
pandas >=0.13.1  :  0.22.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pyflakes >=0.6.0 :  1.6.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pylint >=0.25    :  1.8.2 (OK)
qtconsole >=4.2.0:  4.3.1 (OK)
rope >=0.9.4     :  0.10.7 (OK)
sphinx >=0.6.6   :  1.7.1 (OK)
sympy >=0.7.3    :  1.1.1 (OK)

@CAM-Gerlach
Copy link
Member

As far as I'm aware, I haven't experienced the same trouble with all the same Spyder, Python, Qt/PyQt, OS, and main dependency versions as you, other than if I quit it when the kernel was hung or something. Does it always happen, or only sometimes? When did it start? Are you sure you aren't leaving any variable explorer windows open when closing Spyder (this prevents it from closing all the way)? What happens if you try enabling single instance mode? Starting with spyder --debug and then quitting from the Anaconda prompt? Anything unusual about your system, environment, or install?

@Khris777
Copy link
Author

Khris777 commented Mar 8, 2018

Until last update it seemed to happen occassionally, I only noticed when Anaconda Navigator was notifying me and usually that was because I was trying to close it down directly after Spyder. Waiting a bit would solve the problem. But now after the latest update the process is staying there even minutes after exiting the window. Right now it seems to always happen.

I do have a variable explorer tab in my setup (not a separate window) but I was expecting that when I'm closing down Spyder the console also closes down and with it the variable explorer.

The only unusual about my system is that it's a company system and some settings can't be changed by myself. Also Kaspersky Endpoint Security 10 is running on here.

I will try out your suggestions and come back to here later.

@Khris777
Copy link
Author

Khris777 commented Mar 8, 2018

Trying to do spyder --debug in the windows command prompt returns error: no such option: --debug.

@Khris777
Copy link
Author

Khris777 commented Mar 8, 2018

What happens if you try enabling single instance mode?

I already have been in single instance mode the entire time as I just noticed. I disabled it but the behaviour stays the same.

@CAM-Gerlach
Copy link
Member

Thanks for all the information.

I do have a variable explorer tab in my setup (not a separate window) but I was expecting that when I'm closing down Spyder the console also closes down and with it the variable explorer.

Nope. As I stated above, this keeps Spyder open. Therefore, this issue appears to be a duplicate of my #5696 ; however, the fix seems rather simple. I'll take a look at it sometime soon, since its bothered me for a while now.

@ccordoba12
Copy link
Member

Until last update it seemed to happen occassionally

This is another side effect of Tornado 5. Please downgrade to Tornado 4.5.3 to temporarily fix it with:

conda install tornado=4.5.3

@CAM-Gerlach
Copy link
Member

Hmm, interesting...I've always had it stay open whenever I left a Var explorer window open.

@ccordoba12
Copy link
Member

This also happens when you have a view a VarExp viewer open, but @Khris777 didn't mention that.

@CAM-Gerlach
Copy link
Member

CAM-Gerlach commented Mar 8, 2018

@ccordoba12 Oh, sorry. I misread the OP's statement that I quoted above

I do have a variable explorer tab in my setup (not a separate window) but I was expecting that when I'm closing down Spyder the console also closes down and with it the variable explorer.

and didn't see the part that they didn't have it as a separate window. My mistake, sorry; thanks for the catch. So is this a duplicate of #6627 or a separate issue that should be reopened?

@ccordoba12
Copy link
Member

It's a different issue but not something we can fix in Spyder. It's been worked out in jupyter_client.

@CAM-Gerlach
Copy link
Member

Thanks

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

No branches or pull requests

3 participants