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 freezes when typing in editor

See original GitHub issue

Description

After using Spyder for some period of time, while typing in the editor Spyder suddenly becomes unresponsive and the cursor becomes the spinning beachball of death. The only way to proceed is to force quit Spyder (Activity Monitor confirms that the Python process is unresponsive).

FYI: I run Spyder from a dedicated Anaconda environment created by >> conda create -n spyder-beta -c spyder-ide spyder

What steps will reproduce the problem?

I am uncertain what actions will reproduce the problem, other than to use Spyder for some period of time.

Versions

  • Spyder version: 4.0.0b4
  • Python version: 3.7.0
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Darwin 18.7.0

Dependencies

pygments >=2.0    :  2.4.2 (OK)
qdarkstyle >=2.6.4:  2.7 (OK)
sphinx >=0.6.6    :  2.1.2 (OK)
psutil >=0.3      :  5.6.3 (OK)
pyls >=0.27.0     :  0.28.0 (OK)
nbconvert >=4.0   :  5.5.0 (OK)
pandas >=0.13.1   :  None (NOK)
numpy >=1.7       :  None (NOK)
sympy >=0.7.3     :  None (NOK)
cython >=0.21     :  None (NOK)
qtconsole >=4.5.2 :  4.5.2 (OK)
IPython >=4.0     :  7.7.0 (OK)
matplotlib >=2.0.0:  None (NOK)
pylint >=0.25     :  2.3.1 (OK)

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

4reactions
mmagnuskicommented, Feb 12, 2020

I’ve had multiple freezes during past four weeks when typing in the Spyder editor . If I am working in Spyder longer than 1 hour it is almost guaranteed that I get a freeze. When I work in Spyder for multiple hours I usually have at least one freeze every 1-2 hours (I restart Spyder). My hunch is that it is related to code completions running in Spyder - I often got the freezes when a completion box was open/opening. Unfortunatelly it is hard to narrow this down as it happens approximately once an hour without very clear pattern.

1reaction
svsocommented, Feb 3, 2020

I have the same problem. Spyder is often hanging when I am writing code, - I suspect it happens if I am typing too quickly. Maybe because the automatic syntax checking is not hanging on fast enough.

Read more comments on GitHub >

github_iconTop Results From Across the Web

When a letter is typed while coding, the spyder ide freezes for ...
I have an issue with typing the letter "i" in the code editor. When I type that letter, Spyder freezes for a moment...
Read more >
Common Illnesses — Spyder 5 documentation
If you receive the message An error occurred while starting the kernel in the IPython Console, Spyder was unable to launch a new...
Read more >
Spyder freezes 2 seconds after launch. Force quit is ... - Reddit
Spyder freezes 2 seconds after launch. Force quit is only option. Tried: spyder --reset, nothing works. r/ManjaroLinux - Spyder freezes 2 ...
Read more >
slow code completion in editor (all of the sudden)
spyder2 for the rope.log.) Any other suggestions? Spyder freezes (not responding) for several seconds whenever I type a dot. It makes the ...
Read more >
Resolved: Spider crashes when running input() command
I've installed the Anaconda Navigator on my Macbook Pro and with it came Spyder 5.1.5. Based on my research, this version has a...
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