-
-
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 killing the current process to start a new one #4063
Comments
@dalthviz, please take a look at this one. |
@ccordoba12 @andrewdam I tested the issue in the
However when I test this with the development version for |
The same problem still occurs on 3.1.3.dev0 |
@andrewdam was there an error or any traceback thrown when you tested this? |
@dalthviz I'm not sure where I'd be seeing a traceback since the application says "Python.exe has stopped working" and closes. |
The same behavior is also reproducible on my system:
Python crash systematically when re-running a script with a Qt application running, as explained by the OP. It also crash when a matplotlib figure is opened, which is coherent since I'm using the Qt backend to render the figures. Python also crash in a similar manner when I try to navigate from one file to the other with ctrl-mouseclick. |
@andrewdam can you please provide us the script you are re-running?, I'm trying to replicate the bug but, for now, Spyder is not crashing (I'm testing in a virtual machine with Windows 10 64 bits and Anaconda). Also, do you have a manual installation as @jnsebgosselin with pip or you are using Anaconda?. @jnsebgosselin in your case since you have such a custom environment it is difficult to say what it is happening. However, feel free to open a new issue for each of the problems you are experimenting that, maybe related with this one, are not exactly the same (since are originated in different functionalities), and also see if for them a issue is already open. Also, thanks for the feedback :) |
@dalthviz the script is just:
Spyder was installed using the latest version of Python(x,y) and then upgraded using pip to 3.1.2. |
I've done some digging trying to narrow down the problem. Finally, Python crashes not only when re-running a script with a QApplicaton running like I was thinking. Same thing happens also by re-running in an external console the following script:
If I replace the implementation of the QMessageBox.question dialog window in externalconsole.py L515 module from:
to
My Python isn't crashing anymore. So I think that by passing the From what I understood of what I read on the forums, I think it is a behavior that is specific to PyQT4, not PyQt5. That may be why I'm experiencing this problem on my custom setup. |
@andrewdam which is the version of PyQt that you are using?, can you try if the solution of @jnsebgosselin works for you? @jnsebgosselin thanks for looking into this 👍, if you want you can open a PR with the changes that you propose (maybe adding some kind of validation of the version of PyQt to use your change instead of the code that is now) |
@dalthviz I'm on PyQt 4.8.6. The solution of @jnsebgosselin works for me! @jnsebgosselin Thanks! |
Thanks a lot guys for helping us to narrow down the problem!! That's a great contribution from you! @dalthviz, please make a PR based on @jnsebgosselin findings. |
You are quite welcomed. Thanks for creating such a great software that has become an important part of my work. I think you can safely pass
This doesn't cause my system to crash. Otherwise, the question dialog window is missing its Spyder icon. |
Description of your problem
What steps will reproduce the problem?
Configure run settings to
-Execute in a new dedicated Python console
-Checkmark Show warning when killing running process
Run a script and keep it running
Run the same script again and click Yes on the prompt to kill the current running process
Please provide any additional information below
It may take a few attempts to crash but will consistently crash in under 5 attempts.
Versions and main components
Dependencies
jedi >=0.8.1 : 0.9.0 (OK)
matplotlib >=1.0 : 1.4.3 (OK)
nbconvert >=4.0 : 5.1.1 (OK)
numpy >=1.7 : 1.9.2 (OK)
pandas >=0.13.1 : 0.16.2 (OK)
pep8 >=0.6 : 1.7.0 (OK)
pyflakes >=0.5.0 : 1.5.0 (OK)
pygments >=2.0 : 2.2.0 (OK)
pylint >=0.25 : 1.6.5 (OK)
qtconsole >=4.2.0: 4.2.1 (OK)
rope >=0.9.4 : 0.10.3 (OK)
sphinx >=0.6.6 : 1.5.2 (OK)
sympy >=0.7.3 : 0.7.6 (OK)
The text was updated successfully, but these errors were encountered: