#4636·noctalia

[BUG] Fatal crash on lock screen: zwlr_screencopy_manager_v1 protocol error on external monitor

Author: KarolAntczakCreated Sep 29, 2026Updated Sep 29, 2026
Labelsbughyprlandarch-based

Submission checklist

  • I have searched existing issues and confirmed this is not a duplicate.
  • I am using the latest available version of Noctalia.

Bug description

After upgrading from 5.1.0-1 to 5.2.0-1, noctalia has crashed/restarted repeatedly (5 times in ~8 hours on the day of the update, including a silent crash with no log output at all). On 5.1.0 the shell ran stably for many hours/days at a time with no restarts.

Steps to reproduce

  1. Connect an external monitor (DP-2 in my case) via a dock.
  2. Trigger a session lock (manually, or via idle timeout) at/around the same time the external monitor is connecting or disconnecting.

Expected behavior

A failed zwlr_screencopy_manager_v1 capture on one output (e.g. because it just got disconnected) should not be fatal. Also, blurred_desktop = false setting should be respected.

Actual behavior

noctalia crashes entirely; NetworkManager/BlueZ agents deregister and everything (bar, notifications, etc.) drops until it's manually restarted.

Logs / error output

2026-09-28 13:28:23.581 [INF] [wallpaper] removing instance for output 72 (disconnected)
2026-09-28 13:28:23.610 [INF] [lockscreen] session lock requested
2026-09-28 13:28:23.611 [INF] [main] Wayland display closed during failed to flush Wayland display before poll; shutting down (display_error=0 (none), operation_errno=32 (Broken pipe))

2026-09-28 16:39:32.167 [WRN] [lockscreen] lockscreen desktop capture failed for DP-2: Wayland dispatch failed
2026-09-28 16:39:32.167 [INF] [lockscreen] session lock requested
2026-09-28 16:39:32.186 [ERR] fatal: failed to dispatch pending Wayland events before poll: display_error=71 (Protocol error), protocol_error.interface=zwlr_screencopy_manager_v1, object_id=31, code=4294967295

Noctalia version

0.5.2

Compositor

Hyprland

Distribution

Arch-based

Environment information

- noctalia: 5.2.0-1 
- Compositor: Hyprland 0.56.2
- Distro: Arch Linux
- Monitors: eDP-1 (internal laptop panel) + DP-2 (external)

Additional context

BTW. blurred_desktop = false is probably not respected

My config.toml has: [lockscreen] blurred_desktop = false which per the docs should skip the desktop snapshot entirely, yet the log clearly shows a capture attempt happening on lock regardless. This looks like the capture path no longer checks this setting in 5.2.0.