question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spyder process does not terminate on Windows 10

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
Khris777commented, 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.

0reactions
CAM-Gerlachcommented, Mar 8, 2018

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Properly terminate script without error message in Spyder
The standard way to exit is sys.exit(n). [os]_exit() should normally only be used in the child process after a fork().
Read more >
How to Fix the Spyder IDE "Internal Problem" Issue (ver. 5.1.5)
OverviewIn this video, I'll show you how to fix a common issue with the Spyder IDE for Python programming. The issue “ Spyder...
Read more >
Common program exit codes and error levels - Febooti, Ltd.
Indicates that Action has attempted to execute non-recognized command in Windows command prompt cmd.exe . Code 2. The system cannot find the file...
Read more >
Common Illnesses — Spyder 5 documentation
There are a number of problems that can cause this, but most can be fixed ... If using Anaconda, open a terminal (Anaconda...
Read more >
Python interactive window (REPL) - Visual Studio
There are several ways to open the Interactive window for an environment. First, switch to the Python Environments window (View > Other Windows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found