Bug 461247 - X11: Screen recording in various apps not working when compositing is active
Summary: X11: Screen recording in various apps not working when compositing is active
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-31 14:19 UTC by Harun
Modified: 2022-11-09 19:46 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
attachment-27896-0.html (1.42 KB, text/html)
2022-11-02 07:02 UTC, Harun
Details
attachment-20544-0.html (1.19 KB, text/html)
2022-11-05 14:47 UTC, Harun
Details
Screenshot_20221108_154459.png (109.11 KB, image/png)
2022-11-08 15:52 UTC, Harun
Details
Screenshot_20221108_154706.png (120.93 KB, image/png)
2022-11-08 15:52 UTC, Harun
Details
attachment-4171-0.html (1.05 KB, text/html)
2022-11-09 18:11 UTC, Harun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Harun 2022-10-31 14:19:09 UTC
Screen recording not working when compositor is on. It only records a loop of 2 frames however my mouse is tracked. Have tried OBS, SimpleScreenRecorder and Kazam but all have same problem. I would like screen recording to work with compositor turned on please.
Plasma/EndeavourOS/All Up to Date
Comment 1 Nate Graham 2022-11-01 13:39:30 UTC
Are you using Wayland or X11?
Comment 2 Harun 2022-11-02 07:02:18 UTC
Created attachment 153394 [details]
attachment-27896-0.html

X11. OBS refuses to open in Wayland for some reason. I can attempt to send
you a screen recording with the compositor enabled if you like.

On Tue, Nov 1, 2022 at 1:39 PM Nate Graham <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=461247
>
> Nate Graham <nate@kde.org> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>              Status|REPORTED                    |NEEDSINFO
>          Resolution|---                         |WAITINGFORINFO
>                  CC|                            |nate@kde.org
>
> --- Comment #1 from Nate Graham <nate@kde.org> ---
> Are you using Wayland or X11?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 3 Nate Graham 2022-11-02 17:20:15 UTC
On X11, KWin shouldn't be involved here; apps talk directly to the X server.

Are you using any 3rd-party KWin scripts or effects? I wonder if one of them is breaking this, and turning off compositing also happens to turn them off too, making it work again.
Comment 4 Harun 2022-11-03 09:34:50 UTC
I don't think so as I haven't messed around with the settings (apart
from theming and latte dock). I don't think any of those are the issue
because I tried OBS on an account which is absolutely stock and the
issue remains. I can send in a recording if you like.

On 11/2/22, Nate Graham <bugzilla_noreply@kde.org> wrote:
> https://bugs.kde.org/show_bug.cgi?id=461247
>
> Nate Graham <nate@kde.org> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>             Summary|Screen recording not        |X11: Screen recording in
>                    |working due to compositor   |various apps not working
>                    |                            |when compositing is active
>
> --- Comment #3 from Nate Graham <nate@kde.org> ---
> On X11, KWin shouldn't be involved here; apps talk directly to the X
> server.
>
> Are you using any 3rd-party KWin scripts or effects? I wonder if one of them
> is
> breaking this, and turning off compositing also happens to turn them off
> too,
> making it work again.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 5 Nate Graham 2022-11-04 16:34:47 UTC
Yes please!
Comment 6 Harun 2022-11-05 14:47:37 UTC
Created attachment 153494 [details]
attachment-20544-0.html

https://drive.google.com/file/d/1bWXoUhc2q6SRJ6TYxc_ulGYKyhk5kDg4/view?usp=share_link
Normally OBS shows infinite screens of whats going on. In the video you can
see OBS isn't being updated with whats going on in the screen at all. You
can see that only the cursor is being recorded but not whats actually going
on. I haven't explained it well but the video shows it all.

On Fri, Nov 4, 2022 at 4:34 PM Nate Graham <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=461247
>
> --- Comment #5 from Nate Graham <nate@kde.org> ---
> Yes please!
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 7 Nate Graham 2022-11-07 18:36:53 UTC
Because this is on X11, this is either a bug in OBS, or a bug in your window rules for it. Can you attach a screenshot of your window rules for it? And also try again with no OBS-specific window rules?
Comment 8 Harun 2022-11-08 15:52:02 UTC
Created attachment 153588 [details]
Screenshot_20221108_154459.png

I have reinstalled EndeavourOS about 5 times but the issue remains every
single time. I haven't really messed around with window rules or special
application rules (apart from force block compositing recently).

On Mon, Nov 7, 2022 at 6:36 PM Nate Graham <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=461247
>
> --- Comment #7 from Nate Graham <nate@kde.org> ---
> Because this is on X11, this is either a bug in OBS, or a bug in your
> window
> rules for it. Can you attach a screenshot of your window rules for it? And
> also
> try again with no OBS-specific window rules?
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 9 Harun 2022-11-08 15:52:02 UTC
Created attachment 153589 [details]
Screenshot_20221108_154706.png
Comment 10 Nate Graham 2022-11-09 16:02:33 UTC
That window rule is turning *off* compositing for OBS. Are you saying that this is required for it to work? Or this is what breaks it?

Also, did you move OBS's window to a different virtual desktop? If so, it could be Bug 456280.
Comment 11 Harun 2022-11-09 18:11:07 UTC
Created attachment 153633 [details]
attachment-4171-0.html

Yes, turning off compositing is required for it to work. And no, I didn't
move it into another virtual desktop.

On Wed, Nov 9, 2022 at 4:02 PM Nate Graham <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=461247
>
> --- Comment #10 from Nate Graham <nate@kde.org> ---
> That window rule is turning *off* compositing for OBS. Are you saying that
> this
> is required for it to work? Or this is what breaks it?
>
> Also, did you move OBS's window to a different virtual desktop? If so, it
> could
> be Bug 456280.
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 12 Nate Graham 2022-11-09 19:46:49 UTC
Ok, thanks.