Scrcpy: KWin compositor crashes on scrcpy launch

Created on 5 Apr 2018  路  6Comments  路  Source: Genymobile/scrcpy

On Plasma Desktop, compositor crashes on every scrcpy launch and recovers after scrcpy exits.

Actual Behavior

Desktop effects and transparency not working, i.e. compositor exits or crashes.

Environment

Desktop: KDE Plasma 5.12
Kernel: 4.16.0
Graphics: NVIDIA 390
Distro: Manjaro Linux

bug kde

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.
image
image

All 6 comments

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

screenshot_20180404_181922

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.
image
image

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?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cutoseo picture cutoseo  路  4Comments

SamuelBlickle picture SamuelBlickle  路  3Comments

SuryaElavazhagan picture SuryaElavazhagan  路  4Comments

targor picture targor  路  3Comments

mttmllns picture mttmllns  路  3Comments