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.

Opening a folder with many files causes spyder to freeze

See original GitHub issue

Description

What steps will reproduce the problem?

When opening a folder with many (think 1000 and upwards) files in the ‘files’ pane causes Spyder to completely freeze until loading is completed. While it appears that it does eventually come back to life after loading is completed, many times Windows will tell you the program is frozen and ask whether you want to wait or force quit during the process. For folders with larger amounts of files the waiting time is longer.

Versions

  • Spyder version: 4.0.0b4
  • Python version: 3.7.1
  • Qt version: 5.9.6
  • PyQt5 version: 5.9.2
  • Operating System: Windows 10

Dependencies

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

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
SandeepShaw2017commented, Sep 20, 2020

Facing similar problem … have upgraded to 4.1.15 … still facing the same problem … console freezes when os.chdir to a folder having large number of files …

0reactions
ccordoba12commented, Nov 18, 2022

Note: A simple yet effective solution for this could be to disable showing icons per file type in the Files pane if we detect there are more than X files in the current directory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TKinter (filedialog.askdirectory) freezing Spyder console
try running this command %gui tk at the console before running your code. The alternative is it go to Tools > Preferences >...
Read more >
Use of Tk from within Spyder Cause a Freeze - Google Groups
This all works (and more) from a separate ipython console but either typed interactively or run from a file within spyder, it causes...
Read more >
Common Illnesses — Spyder 5 documentation
Check the last few lines of the error message, and see if its an AttributeError or ImportError , or refers to a file...
Read more >
My File Explorer Keeps Crashing after clicking the Downloads ...
I need help as when I attempt to open the downloads folder through file explorer my whole file explorer freezes, and then crashes....
Read more >
Installing scikit-learn
Error caused by file path length limit on Windows¶ · Type “regedit” in the Windows start menu to launch regedit . · Go...
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