-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Qt Ctrl-C broken on windows #20932
Copy link
Copy link
Closed
Labels
GUI: QtOS: MicrosoftRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
Metadata
Metadata
Assignees
Labels
GUI: QtOS: MicrosoftRelease criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
@anntzer @tacaswell
Hi! I have just tested the master branch on Windows and found that there is indeed a problem with the QSocketNotifier (it appeared here: #13306 (comment)). Previously, on that Windows machine, I was running my old code with QAbstractSocket which was fine, and did not test the newest version with QSocketNotifier there (my fault, sorry). I have tested on Linux, and there is no such problem there.
The code to reproduce on Windows (in Jupyter):
The problem seems to be that if
socketpairgenerates a socket with the samefilenovalue as it generated in the previouspause()call, the QSocketNotifier unexpectedly fires and hangs here:matplotlib/lib/matplotlib/backends/qt_compat.py
Line 232 in b600026
because nothing was actually written to the
wakeup_fd. I don't understand how that can be.Workaround fix:
What should we do with this? Is there a better solution?
Originally posted by @vdrhtc in #13306 (comment)