-
-
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 at shutdown #2 #20563
Comments
https://www.riverbankcomputing.com/static/Docs/PyQt5/gotchas.html#crashes-on-exit Might be difficult to debug :/ |
I can confirm this problem on Linux too, even after the fix you proposed for the other crash on PR #20562. However, that seems to be a problem only when running our tests because:
So, I guess the A simple solution for this on CIs would be to automatically add the |
I get a similar crash in my spyder-unittest CI runs, after pytest reports that all tests have succeeded. In my tests I do Anyway, here is the gdb backtrace of the crashing thread (there are 50 threads in total):
|
Pinging @dalthviz about it because he could have a better idea of what's happening here. |
Not sure what could be happening here :/ maybe some sort of race condition when cleaning/closing widgets? Maybe some widget is instanced without setting a parent and it's accessed in a way that causes a segfault when the window |
That sounds very difficult to debug. In the mean time, I found out that the crashes become less frequent if I don't produce a coverage report. Since I don't understand the information on the codecov website (the coverage goes up and down without any reason that I can see), this is an acceptable work-around for me. |
Issue Report Checklist
conda update spyder
(orpip
, if not using Anaconda)jupyter qtconsole
(if console-related)spyder --reset
Problem Description
Different issue from #20561
e.g. on the master mac tests:
https://github.com/spyder-ide/spyder/actions/runs/4205227388/jobs/7297000397
you find:
It may be mac only?
On my mac, running a random test:
the trace is:
What steps reproduce the problem?
open and close spyder or run a random test that open spyder:
pytest spyder/app/tests/test_mainwindow.py::test_window_title
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
Versions
Python 3.10.8 64-bit | Qt 5.15.5 | PyQt5 5.15.7 | Darwin 22.2.0
Dependencies
The text was updated successfully, but these errors were encountered: