Simulating touch events via uinput and rapidly removing and adding a simulated device back while sending input events crashes any Qt program (I have tested so far at least, which includes KDE programs like Konsole, KCharselect as well as Subsurface). Programs like firefox or xterm are unaffected.
STEPS TO REPRODUCE
- Create a simulated touch screen via uinput for example like that: https://github.com/H-M-H/Weylus/blob/1c6837d85c7bf7db3c2524f19d21cf7a4f6bf84a/lib/linux/uinput.c#L185-L247
- Delete the device.
- Create it anew.
- Send touch events all the time.
Backtrace I got from KCharSelect via KDE's crash report dialog:
Attached is the output of `libinput debug-events` during the crash.
I originally reported this to the KDE team, but they referred me here: https://bugs.kde.org/show_bug.cgi?id=434733