With blender built with `WITH_GHOST_WAYLAND`: (07bfeb2abcb46b5f1472d53963478fa0714fb5b1)
The following steps close Blender in Wayland, tested with sway/river/gnome-shell.
- Load blender with a factory startup from a terminal.
- Shift-F4 (Python console).
- Paste in this text: `for _ in range(2 ** 1000): pass`.
- Press enter twice.
- Generate events (move the cursor or mouse wheel) for 5 seconds or so.
- Press `Ctrl-C` in the terminal.
- Instead of cancelling the action with a `KeyboardError`, the window vanishes but the process remains running.
Note:
- `import time; time.sleep(20)` can be used instead of looping over a large value.
- gnome-shell also has this issue although it sometimes works.
----
I ran into this when investigating {T100437}, there is a change this is the same bug (closing the window when unresponsive), although if the issue is caused by signal-handling, that's unlikely.