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

Master: Running a Cell crashes the code completion thread when you have a 10mb history.py file #7110

Closed
10 tasks done
bcolsen opened this issue May 11, 2018 · 1 comment
Closed
10 tasks done

Comments

@bcolsen
Copy link
Member

bcolsen commented May 11, 2018

Issue Report Checklist

  • Searched the issues page for similar reports
  • Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
  • Reproduced the issue after updating with conda update spyder (or pip, if not using Anaconda)
  • Could not reproduce inside jupyter qtconsole (if console-related)
  • Tried basic troubleshooting (if a bug/error)
    • Restarted Spyder
    • Reset preferences with spyder --reset
    • Reinstalled the latest version of Anaconda
    • Tried the other applicable steps from the Troubleshooting Guide
  • Completed the Problem Description, Steps to Reproduce and Version sections below

Problem Description

I've been using master (version 4) as my daily driver until I updated last week and now code completion is crashing. This doesn't happen in version 3

It seem like the code completion thread is crashing after you run code from a cell.

Copying it into the console or running with F5 or F9 all seem to work fine.

What steps reproduce the problem?

  1. Start Spyder Master
  2. Copy this into and new file
# %% Code Cell
def function(x):
    return x
  1. press Ctrl-Enter to run the cell

What is the expected output? What do you see instead?

After that Syder hangs for a minute and then spits out the debug seen below.

After the hang, Spyder is usable but there is no code completion

Paste Traceback/Error Below (if applicable)

Nothing in internal console.

This in the debug:

Resource temporarily unavailable
Errored rope
b'Started\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nGot heartbeat\nTimed out after 101 sec\n'
b''
b''
Resource temporarily unavailable
Errored rope
b''
b''
Resource temporarily unavailable
Errored fallback
b''
b''
Resource temporarily unavailable
Errored jedi
b''

Versions

From anaconda in a new environ.
Spyder started from the command line with ./bootstrap.py --test

  • Spyder version: current master
  • Python version: 3.6.5 64bits
  • Qt version: 5.9.4
  • PyQt version: 5.9.2
  • Operating System name/version: Ubuntu 16.04

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.4.0 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  None (NOK)
numpy >=1.7      :  None (NOK)
sphinx >=0.6.6   :  1.7.4 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.11.0    :  0.12.0 (OK)
psutil >=0.3     :  5.4.5 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  None (NOK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.4.0 (OK)
pylint >=0.25    :  1.8.4 (OK)
@bcolsen bcolsen closed this as completed May 11, 2018
@bcolsen
Copy link
Member Author

bcolsen commented May 11, 2018

This was due to a 10mb+ history.py file. I got rid of that and now Spyder flys.

Duplicate of #7080

@bcolsen bcolsen changed the title Master: Running a Cell crashes the code completion thread Master: Running a Cell crashes the code completion thread when you have a 10mb history.py file May 11, 2018
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

2 participants