On Plasma Desktop, compositor crashes on every scrcpy launch and recovers after scrcpy exits.
Desktop effects and transparency not working, i.e. compositor exits or crashes.
Desktop: KDE Plasma 5.12
Kernel: 4.16.0
Graphics: NVIDIA 390
Distro: Manjaro Linux
Thank you for the report.
Are there any logs in the terminal when it crashes?
Some possibly related links:
While there is nothing in stdout, there is a bunch of QPainter errors that may or may not be related to this. I've uploaded the journalctl -f output here

Also, I found that after the compositor recovers (that is after I Ctrl-C'ed the scrcpy), although the transparency and visual effects are back, I cannot take Window screenshot (full screenshot is fine), KWin crashes along with the compositor after I request the screenshot of my terminal window.
Ahh, sorry I did not read your links before replying... The issue is indeed due to SDL blocking the compositor, and I manage to work around this using KDE Window Rules (Preventing scrcpy from blocking compositors)
Attaching the Window Rule config in case someone also need a temporary fix on this problem.


Thank you for the workaround. :+1: I added an entry in the FAQ.
@LER0ever Thank you! It works like a charm.
Does #522 fix the initial issue, or is it unrelated?
Most helpful comment
Ahh, sorry I did not read your links before replying... The issue is indeed due to SDL blocking the compositor, and I manage to work around this using KDE Window Rules (Preventing scrcpy from blocking compositors)
Attaching the Window Rule config in case someone also need a temporary fix on this problem.

