Spectacle errors (plasma6/wayland)

I’m getting:

An error occurred while taking a screenshot.
KWin screenshot request failed:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Potentially relevant information:
- Method: CaptureScreen
- Method specific arguments: "eDP-1"

when I launch spectacle. It is also unable to save a recording of a rectangular region, giving Failed to export video: Temporary file URL must be an existing local file, although windows/full screen can be saved without an error.

This problem exists since I finally was able to update my system after a couple of days. Is anyone else experiencing this? I’m using unstable with flakes.

Thanks

    • Updated input 'nixpkgs':
        'github:nixos/nixpkgs/a58bc8ad779655e790115244571758e8de055e3d' (2024-08-11)
      → 'github:nixos/nixpkgs/c3aa7b8938b17aebd2deecf7be0636000d62a2b9' (2024-08-14)

I think you’d have to share more of your configuration to receive help.

Which other parts are relevant? All I did in the configs was enable plasma6 and wayland. No other settings.

You probably need this stuff.

I will try. I did have xdg-desktop-portal-gtk and xdg-utils installed, and it worked, so I’m not sure what has changed but I will explore these options. Thank you.

Until recently, I did not have xdg explicitly specified. After reading this thread I added xdg-desktop-portal-kde and have not noticed any difference. I’ve just checked and my nixpkgs are the 14 August like yours. Spectacle seems to work fine.
Have you updated since? (looks like it is now the 18 August packages)

I just updated to the latest build and it’s still not working. I tried with xdg-desktop-portal-kde instead of -gtk, but still no luck. I think it’s a KDE/Plasma problem, like it has cached something somewhere. Fortunately it isn’t critical for me now so I will track it down when I have time. Thanks.

I’m still having the error with recording rectangular regions, but learned something interesting but maybe a bit OT about plasma/wayland and different types of screens/monitors.

Things seemed to have gotten worse in Spectacle. When I hit printscreen, I got the error:

An error occurred while taking a screenshot.
KWin screenshot request failed:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Potentially relevant information:
- Method: CaptureScreen
- Method specific arguments: "eDP-1"

But it did take a screenshot. If I tried to take a second screenshot without closing Spectacle, I got a different error but no new screenshot:

An error occurred while taking a screenshot.
KWin screenshot request failed:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Potentially relevant information:
- Method: CaptureActiveScreen
- Method specific arguments: QMap(("include-decoration", QVariant(bool, true))("include-shadow", QVariant(bool, true))("native-resolution", QVariant(bool, true)))

As mentioned above, I couldn’t record a rectangular screen region, but a window could be recorded. Now I could still record a window without apparent error, but the resulting video was empty.

It turned out that all these new problems were because I was using an external monitor (which is really a television). When I performed these actions with the laptop closed (internal monitor off), I got the errors. When I did the same with the laptop open, I only got the error related to recording rectangular regions.

Perhaps related, when I use Wayland, which I am, the TV screen does not display any content in the “Overview”, only backgrounds on each workspace. I don’t have the problem with X11, and the laptop screen always works.