spyder: Spyder crash when locking screen

Problem Description

Spyder keep crashing when the locking/unlocking the pc

What steps reproduce the problem?

  1. Start Spyder
  2. Lock the PC (win+L)
  3. Unlock the PC
  4. Spyder is no longer open (or it’s open and closes immediately)

Versions

  • Spyder version: 3.3.3
  • Python version: 3.7.1 64-bit
  • Qt version: 5.9.6
  • PyQt version: PyQt5 5.9.2
  • Operating System name/version: Window 10 Enterprise (version 1803 build 17134.523)

Dependencies

IPython >=4.0     :  7.2.0 (OK)
cython >=0.21     :  0.29.2 (OK)
jedi >=0.9.0      :  0.13.2 (OK)
matplotlib >=2.0.0:  3.0.2 (OK)
nbconvert >=4.0   :  5.4.0 (OK)
numpy >=1.7       :  1.15.4 (OK)
pandas >=0.13.1   :  0.23.4 (OK)
pycodestyle >=2.3 :  2.4.0 (OK)
pyflakes >=0.6.0  :  2.0.0 (OK)
pygments >=2.0    :  2.3.1 (OK)
pylint >=0.25     :  2.2.2 (OK)
qtconsole >=4.2.0 :  4.4.3 (OK)
rope >=0.9.4      :  0.11.0 (OK)
sphinx >=0.6.6    :  1.8.2 (OK)
sympy >=0.7.3     :  1.3 (OK)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 34 (19 by maintainers)

Most upvoted comments

The culprit ended up being a faulty Wacom driver service called: Wacom Tablet Service for ISD

Disabling that solved the issue. The fun part is that I don’t use touch-screen features, nor have a Wacom tablet. Nonetheless, this solved the issue.

Sorry for bothering you for this issue. The first thing I obviously thought of was a problem with spyder, but this ended up being completely innocent.

Thank you for the support Luca

Glad you found the culprit and thanks for letting us know about it.

I guess you fought a lot to finally uncover the real cause.

@pj1989 I’m baffled; maybe some edge case in your graphics stack. I cannot reproduce the problem on Win 8.1 Pro x64 with the same versions of Python, Qt, PyQt, and Spyder. We’ve had reported issues in the past (which I was able to reproduce at the time) with autocompletion/help/introspection/real-time analysis crashing in the past when the user locked the screen or put to computer to sleep, but I can’t recall a specific instance where that happened with Spyder itself. I seem to distantly remember someone reporting somewhere about something similar happening with the lock screen, but I can’t seem to find it anywhere.

Since you’ve already tried the most likely fix (downgrading Qt), you should upgrade it again with conda update qt pyqt and then try the following potential steps that have a chance of resolving this particular issue. Before you do, run set SPYDER_DEBUG=3 in Anaconda prompt to enable debug output for Spyder. If none of the above work, copy and paste any messages that look like errors, as well as the last 20 lines or so before them (or just the last 20 lines, if there are no obvious error messages) here inside a literal block (with triple backticks, ```, above and below it). Then, try each of the following in order, stopping if one of them fixes the issue:

  1. Temporarily disable any security, antivirus, firewall, etc. software and try again
  2. Install PyOpenGL with conda install pyopengl
  3. Update your OS and any graphics/GPU drivers
  4. If you have multiple GPU (e.g. integrated + discrete), try disabling/forcing one or the other
  5. Run spyder --reset, just in case. If you value your preferences (e.g. a custom syntax theme or shortcuts), make a copy of the spyder-py3 directory in your user/home folder and restore if it resetting fails to fix the issue.
  6. Create a new, clean conda environment, and see if the problem still persists:
conda create -n spyder-env -c defaults spyder=3 python=3.6
conda activate spyder-env
spyder

If that does work while previous steps have failed, provide me the output of conda list to see if I can spot an obvious culprit. Otherwise, try doing a clean uninstall and reinstall of Anaconda. Thanks, and hope this works.

Ok, @CAM-Gerlach has more experience dealing with this kind of problems, so let’s wait for he to give you more advice.

I can perform more tests if you have any suggestion

That’s the problem, I have almost no more suggestions. My last one is try to downgrade Qt with by running these commands in the Anaconda prompt

conda install qt=5.6 pyqt=5.6

maybe there’s an error message or a log somewhere.

There are none, as far as I’m aware. And nobody else has reported an error like yours before. So we’re even more in the dark.