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.

Crash in fallback plugin when typing character

See original GitHub issue

Description

What steps will reproduce the problem?

I have an animated gif available. I have many things loaded into memory and just type a character and Spyder crashes.

Traceback

  File "C:\Users\suzbm\Anaconda3\lib\site-packages\spyder\plugins\completion\fallback\actor.py", line 155, in handle_msg
    msg['current_word'])
  File "C:\Users\suzbm\Anaconda3\lib\site-packages\spyder\plugins\completion\fallback\actor.py", line 62, in tokenize
    valid = is_prefix_valid(text, offset, language)
  File "C:\Users\suzbm\Anaconda3\lib\site-packages\spyder\plugins\completion\fallback\utils.py", line 125, in is_prefix_valid
    current_pos_text = text[offset - utf16_diff - 1]
IndexError: string index out of range

Versions

  • Spyder version: 4.1.2
  • Python version: 3.7.4
  • Qt version: 5.12.5
  • PyQt5 version: 5.12.3
  • Operating System: Windows 10

Dependencies


# Mandatory:
atomicwrites >=1.2.0           :  1.3.0 (OK)
chardet >=2.0.0                :  3.0.4 (OK)
cloudpickle >=0.5.0            :  1.3.0 (OK)
diff_match_patch >=20181111    :  20181111 (OK)
intervaltree                   :  None (OK)
IPython >=4.0                  :  7.12.0 (OK)
jedi =0.15.2                   :  0.15.2 (OK)
nbconvert >=4.0                :  5.6.1 (OK)
numpydoc >=0.6.0               :  0.9.2 (OK)
paramiko >=2.4.0               :  2.7.1 (OK)
parso =0.5.2                   :  0.5.2 (OK)
pexpect >=4.4.0                :  4.8.0 (OK)
pickleshare >=0.4              :  0.7.5 (OK)
psutil >=5.3                   :  5.7.0 (OK)
pygments >=2.0                 :  2.5.2 (OK)
pylint >=0.25                  :  2.4.4 (OK)
pyls >=0.31.9;<0.32.0          :  0.31.9 (OK)
qdarkstyle >=2.8               :  2.8 (OK)
qtawesome >=0.5.7              :  0.7.0 (OK)
qtconsole >=4.6.0              :  4.6.0 (OK)
qtpy >=1.5.0                   :  1.9.0 (OK)
rtree >=0.8.3                  :  0.9.4 (OK)
sphinx >=0.6.6                 :  2.4.3 (OK)
spyder_kernels >=1.9.0;<1.10.0 :  1.9.0 (OK)
watchdog                       :  None (OK)
zmq >=17                       :  19.0.0 (OK)

# Optional:
cython >=0.21                  :  0.29.15 (OK)
matplotlib >=2.0.0             :  3.1.3 (OK)
numpy >=1.7                    :  1.18.1 (OK)
pandas >=0.13.1                :  1.0.1 (OK)
scipy >=0.17.0                 :  1.4.1 (OK)
sympy >=0.7.3                  :  1.5.1 (OK)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
atiyabzafarcommented, May 22, 2020

@demattox I have same issue here in spyder @ccordoba12 Please take note of the issue. It started happening just an hour ago after a restart. As per my knowledge I have not updated anything since my last start.

Spyder version 4.1.2 Python 3.7.7 64-bit | Qt 5.9.6 | PyQt5 5.9.2 | Windows 10 Using Kite for indexing

Here is the gif showing the error. 1

Also i tried it with horizontal splitting and the problem goes away.

1reaction
demattoxcommented, May 21, 2020

@ccordoba12 So I made a potentially interesting and hopefully helpful observation. It seems this error does not arise when I’ve split horizontally, but after closing the split panel, the error occurs again. And I noticed the tab selector button options (not sure the name for them, the square buttons to the left and right of the tab names) are highlighted when working in a single pane, but look normal in the split pane. Might be unrelated though.

Please let me know if there’s anything else I can do.

spyder_demo2

Read more comments on GitHub >

github_iconTop Results From Across the Web

Crash when typing a literal and an underscore in the lambda ...
Typing a literal and _ in a lambda body declared in the top-level can crash clangd. auto f = []() { // typing...
Read more >
READ FIRST: Crashing when loading game and how to fix
1. Opencl - most of the crashes are due to opencl, or the lack of. The game needs opencl on either the gpu...
Read more >
System Crash during update - Support - Manjaro Linux Forum
Hello System during update just crash and now I can't log in. Downloaded manajro USB and I'm on manjaro-chroot -a the errors are:...
Read more >
Speedup fallback font lookup in the font config engine ...
127290 : Speedup fallback font lookup in the font config engine. ... This change consumes number quite a bit of memory when using...
Read more >
ChangeLog - crash
The new plugin takes gdb out of the picture entirely, and also restricts the matching options to just symbol names, so as not...
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