KWin freezes when running this simple script then close any window. I don't know if there is something wrong with my script. STEPS TO REPRODUCE 1. Install this simple script: https://github.com/trmdi/test 2. Open a new window, the sound is played as expected. 3. Close a window. OBSERVED RESULT KWin freezes. EXPECTED RESULT The window is closed and the sound is played without making KWin freeze.
Please attach gdb and get a backtrace of the freeze.
Created attachment 119413 [details] Backtrace Sometimes kwin does not freeze, but 99% it freezes.
Freeze is triggered from Qt Multimedia. Nothing we can do. I recommend to not play the sound in KWin, but pass it to another application through dbus.
(In reply to Martin Flöser from comment #3) > Freeze is triggered from Qt Multimedia. Nothing we can do. I recommend to > not play the sound in KWin, but pass it to another application through dbus. Thanks for your reply! :) I just tag @davidedmundson here, in case he wants to do something in the Qt side.
I get kwin bug reports directly, no need to add me. X is deadlocked as we're creating new connections whilst handling an X client removed. I wouldn't say it's a Qt bug, sorry. Pulseaudio from within kwin must normally work as the knotifications backend is in process. So adding Qt.callLater() might suffice. But as MF says, passing to another process would be better.