-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Spyder crashes when pressing ctrl-g in editor to go to definition #3940
Comments
@andfoy, please take a look at this one. |
@oriori @ccordoba12 Can we have more information about the crashes? I've tried all kind of possible references offered by Python (Classes, Functions and Variables) in local files as in libraries and builtins, but I couldn't reproduce the error. Is it a Segmentation Fault error? |
Did you use the exact same configuration of @oriori? Windows 10 seems relevant here :-) |
Well, the console reports this Warning just before crashing:
|
So were you able to reproduce this problem? |
Yes I could reproduce the problem, the current settings correspond to: Version and main components
Dependenciesjedi >=0.8.1 : 0.9.0 (OK) |
Ok, good, thanks for doing it. Could you update qt and pyqt with this command
and try again? Note: The warning you reported is harmless. I've seen it too. |
The error occurs randomly, and it seems to take place in Windows, I've tried to reproduce it in Ubuntu without any success. I will update the Qt dependencies and try again. |
I did update the dependencies. After evaluating the functionality about 30 times with different local and builtin functions, variables and classes, the program crashed unexpectedly again |
This is the crash log associated:
Update: It seems that this error is related to a Memory Access Violation |
I also got a crash report due to an error in module
Update: It seems that this error is related to an Stack Overrun |
I am still getting this issue on Windows 10, with Spyder 3.1.3. |
Still has this issue in ubuntu 16.04, with annoconda3.6 and the spyder version is 3.1.3. It is often crash when I use ctrl to enter some definition or function which imported from other packages such as nmpy and tensorflow. I have already closed the real-time code analysis and something else but its seem no uses. I haven't seen any error message it just crashed.
|
If feels like it only crashes when I try to open a file that was not open before. |
What do you mean? |
Yes!, I have seen this happen. If you have an open file on the editor ( # filea.py
from fileb import some_method
def other_method(*args):
return some_method(*args) But If you do |
I am not sure but I think I only get crashes if the definition I go to is not in a file that is open in a tab. |
@goanpeca, great!! At last a reproducible case :-) |
Hi, I just find a reproducible case about this issue in spyder 3.1.3. When I to go to definition into the Try to press CTRL-G on this: sum([1,2,3]) |
Same as @impact27 , I can consistently reproduce this if spyder 3.1.4 on Windows 10 with Python 3.5.2 64 bits, Qt 5.6.2, PyQt5 5.6 |
The crash also occurs in Windows 7 64 bits with PyQt4 and Python 3.3 through 3.6. If I recall, I think I first noticed this crash for the first time somewhere in the 2.x series on Ubuntu, but I'm not sure. |
@ccordoba12 @goanpeca Could you please try to switch line #146 with line #147 in the PluginManager and tell me if it is still crashing on your end. For me, it seemed to have fixed completely the problem.
|
@jnsebgosselin, you're our hero!! I've also seen this problem on Linux and was wondering what was causing it. However, it doesn't generate a crash there. Unfortunately neither @goanpeca nor me use Windows, so could you create a PR so that @andfoy (who was able to reproduce this problem on his end) can test it? Again, thanks a lot for helping us with this one!! |
I tried to apply the fix, and it made the crash never occur on my environment (Windows 10 64 bit, python 3.6.1, Spyder 3.1.3) jedi =0.9.0 : 0.9.0 (OK) |
@ronekko, thanks for helping us to test @jnsebgosselin fix. |
@ccordoba12 Congratulations for your 3.2 release 👍 :) ! |
Thanks! |
Description of your problem
About half the times when pressing ctrl-g in the Spyder editor to go to definition, spyder/python crashes.
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Program crashes
Please provide any additional information below
Versions and main components
Dependencies
Please go to the menu entry
Help > Optional Dependencies
(orHelp > Dependencies
), press the buttonCopy to clipboard
and paste the contents below:
jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.5.3 (OK)
nbconvert >=4.0 : 4.2.0 (OK)
numpy >=1.7 : 1.11.1 (OK)
pandas >=0.13.1 : 0.18.1 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.6.0 : 1.3.0 (OK)
pygments >=2.0 : 2.1.3 (OK)
pylint >=0.25 : 1.5.4 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.9.4-1 (OK)
sphinx >=0.6.6 : 1.4.6 (OK)
sympy >=0.7.3 : 1.0 (OK)
The text was updated successfully, but these errors were encountered: