[GH-ISSUE #253] Channel closed after system sleep or DPMS off #124

Closed
opened 2026-05-05 22:10:35 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @sohanemon on GitHub (Jan 21, 2025).
Original GitHub issue: https://github.com/feschber/lan-mouse/issues/253

When the system goes to sleep or the display turns off, the application crashes. The issue appears to be related to a Wayland protocol violation involving zwlr_layer_shell_v1.get_layer_surface. Below is the error log:

[2025-01-21T09:54:25Z INFO  input_capture] using capture backend: layer-shell
[2025-01-21T09:55:02Z INFO  lan_mouse::listen] dtls client connected, ip: 192.168.0.131:37967
Protocol error 1 on object wl_display@1: invalid arguments for zwlr_layer_shell_v1#6.get_layer_surface
thread 'main' panicked at input-capture/src/layer_shell.rs:502:17:
wayland protocol violation: Protocol error 1 on object wl_display@1: invalid arguments for zwlr_layer_shell_v1#6.get_layer_surface
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at /home/sohan/lan-mouse/src/capture.rs:132:36:
channel closed

Steps to Reproduce

  1. Start the application (lan-mouse).
  2. Let the system enter sleep mode or turn off the display via DPMS.
  3. Wake the system or turn the display back on.
  4. Observe the application crash.

System Information

  • OS: EndeavourOS (Arch-based)
  • Wayland Compositor: Hyprland
  • Lan mouse Version: Latest
Originally created by @sohanemon on GitHub (Jan 21, 2025). Original GitHub issue: https://github.com/feschber/lan-mouse/issues/253 When the system goes to sleep or the display turns off, the application crashes. The issue appears to be related to a Wayland protocol violation involving `zwlr_layer_shell_v1.get_layer_surface`. Below is the error log: ```plaintext [2025-01-21T09:54:25Z INFO input_capture] using capture backend: layer-shell [2025-01-21T09:55:02Z INFO lan_mouse::listen] dtls client connected, ip: 192.168.0.131:37967 Protocol error 1 on object wl_display@1: invalid arguments for zwlr_layer_shell_v1#6.get_layer_surface thread 'main' panicked at input-capture/src/layer_shell.rs:502:17: wayland protocol violation: Protocol error 1 on object wl_display@1: invalid arguments for zwlr_layer_shell_v1#6.get_layer_surface note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace thread 'main' panicked at /home/sohan/lan-mouse/src/capture.rs:132:36: channel closed ``` ### Steps to Reproduce 1. Start the application (`lan-mouse`). 2. Let the system enter sleep mode or turn off the display via DPMS. 3. Wake the system or turn the display back on. 4. Observe the application crash. ### System Information - **OS:** EndeavourOS (Arch-based) - **Wayland Compositor:** Hyprland - **Lan mouse Version:** Latest
Author
Owner

@feschber commented on GitHub (Jan 21, 2025):

could you run hyprctl systeminfo and paste the output here?

<!-- gh-comment-id:2604714373 --> @feschber commented on GitHub (Jan 21, 2025): could you run `hyprctl systeminfo` and paste the output here?
Author
Owner

@sohanemon commented on GitHub (Jan 21, 2025):

Hyprland 0.46.2 built from branch  at commit 0bd541f2fd902dbfa04c3ea2ccf679395e316887  (version: bump to 0.46.2).
Date: Thu Dec 19 19:26:47 2024
Tag: v0.46.2, commits: 5566
built against:
 aquamarine 0.7.0
 hyprlang 0.6.0
 hyprutils 0.3.3
 hyprcursor 0.1.11
 hyprgraphics 0.1.1


flags set:
debug


System Information:
System name: Linux
Node name: eos-pc
Release: 6.12.9-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000


GPU information:
0f:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c5) (prog-if 00 [VGA controller])


os-release: NAME="EndeavourOS"
PRETTY_NAME="EndeavourOS"
ID="endeavouros"
ID_LIKE="arch"
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://endeavouros.com"
DOCUMENTATION_URL="https://discovery.endeavouros.com"
SUPPORT_URL="https://forum.endeavouros.com"
BUG_REPORT_URL="https://forum.endeavouros.com/c/general-system/endeavouros-installation"
PRIVACY_POLICY_URL="https://endeavouros.com/privacy-policy-2"
LOGO="endeavouros"


plugins:
<!-- gh-comment-id:2605077799 --> @sohanemon commented on GitHub (Jan 21, 2025): ``` Hyprland 0.46.2 built from branch at commit 0bd541f2fd902dbfa04c3ea2ccf679395e316887 (version: bump to 0.46.2). Date: Thu Dec 19 19:26:47 2024 Tag: v0.46.2, commits: 5566 built against: aquamarine 0.7.0 hyprlang 0.6.0 hyprutils 0.3.3 hyprcursor 0.1.11 hyprgraphics 0.1.1 flags set: debug System Information: System name: Linux Node name: eos-pc Release: 6.12.9-arch1-1 Version: #1 SMP PREEMPT_DYNAMIC Fri, 10 Jan 2025 00:39:41 +0000 GPU information: 0f:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c5) (prog-if 00 [VGA controller]) os-release: NAME="EndeavourOS" PRETTY_NAME="EndeavourOS" ID="endeavouros" ID_LIKE="arch" BUILD_ID=rolling ANSI_COLOR="38;2;23;147;209" HOME_URL="https://endeavouros.com" DOCUMENTATION_URL="https://discovery.endeavouros.com" SUPPORT_URL="https://forum.endeavouros.com" BUG_REPORT_URL="https://forum.endeavouros.com/c/general-system/endeavouros-installation" PRIVACY_POLICY_URL="https://endeavouros.com/privacy-policy-2" LOGO="endeavouros" plugins: ```
Author
Owner

@markmandel commented on GitHub (Feb 8, 2025):

Also hit the same - I'm on Debian though.

Hyprland 0.47.2 built from branch  at commit 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff  (version: bump to 0.47.2).
Date: Sun Feb 2 00:47:17 2025
Tag: v0.47.2, commits: 5767
built against:
 aquamarine 0.7.2
 hyprlang 0.6.0
 hyprutils 0.5.0
 hyprcursor 0.1.11
 hyprgraphics 0.1.2


no flags were set


System Information:
System name: Linux
Node name: games-oss
Release: 6.11.10-amd64
Version: #1 SMP PREEMPT_DYNAMIC Debian 6.11.10-1 (2024-11-23)


GPU information: 
00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c) (prog-if 00 [VGA controller])
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA103M [GeForce RTX 3080 Ti Laptop GPU] [10de:2460] (rev a1) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  535.216.03  Fri Oct 25 22:43:06 UTC 2024


os-release: PRETTY_NAME="Debian GNU/Linux trixie/sid"
NAME="Debian GNU/Linux"
VERSION_CODENAME=trixie
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"


plugins:
  hyprNStack by Zakk ver 1.0
  hyprWorkspaceLayouts by Zakk ver 1.0
[2025-02-08T20:41:36Z INFO  lan_mouse::capture] releasing capture: left remote client device region
[2025-02-08T20:49:14Z INFO  lan_mouse::service] entering client 0 ...
[2025-02-08T20:49:14Z INFO  lan_mouse::capture] client 0 acknowledged the connection!
[2025-02-08T20:49:14Z INFO  lan_mouse::capture] client 0 acknowledged the connection!
[2025-02-08T20:49:14Z INFO  lan_mouse::capture] client 0 acknowledged the connection!
[2025-02-08T20:49:54Z INFO  lan_mouse::capture] releasing capture: left remote client device region
[2025-02-08T21:55:59Z INFO  lan_mouse::service] entering client 0 ...
[2025-02-08T21:55:59Z INFO  lan_mouse::capture] client 0 acknowledged the connection!
[2025-02-08T21:55:59Z INFO  lan_mouse::capture] client 0 acknowledged the connection!
Protocol error 1 on object wl_display@1: invalid arguments for zwlr_layer_shell_v1#6.get_layer_surface
thread 'main' panicked at input-capture/src/layer_shell.rs:502:17:
wayland protocol violation: Protocol error 1 on object wl_display@1: invalid arguments for zwlr_layer_shell_v1#6.get_layer_surface
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[1]    63636 IOT instruction  lan-mouse --daemon
<!-- gh-comment-id:2645958299 --> @markmandel commented on GitHub (Feb 8, 2025): Also hit the same - I'm on Debian though. ``` Hyprland 0.47.2 built from branch at commit 882f7ad7d2bbfc7440d0ccaef93b1cdd78e8e3ff (version: bump to 0.47.2). Date: Sun Feb 2 00:47:17 2025 Tag: v0.47.2, commits: 5767 built against: aquamarine 0.7.2 hyprlang 0.6.0 hyprutils 0.5.0 hyprcursor 0.1.11 hyprgraphics 0.1.2 no flags were set System Information: System name: Linux Node name: games-oss Release: 6.11.10-amd64 Version: #1 SMP PREEMPT_DYNAMIC Debian 6.11.10-1 (2024-11-23) GPU information: 00:02.0 VGA compatible controller [0300]: Intel Corporation Alder Lake-P GT2 [Iris Xe Graphics] [8086:46a6] (rev 0c) (prog-if 00 [VGA controller]) 01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA103M [GeForce RTX 3080 Ti Laptop GPU] [10de:2460] (rev a1) (prog-if 00 [VGA controller]) NVRM version: NVIDIA UNIX x86_64 Kernel Module 535.216.03 Fri Oct 25 22:43:06 UTC 2024 os-release: PRETTY_NAME="Debian GNU/Linux trixie/sid" NAME="Debian GNU/Linux" VERSION_CODENAME=trixie ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" plugins: hyprNStack by Zakk ver 1.0 hyprWorkspaceLayouts by Zakk ver 1.0 ``` ``` [2025-02-08T20:41:36Z INFO lan_mouse::capture] releasing capture: left remote client device region [2025-02-08T20:49:14Z INFO lan_mouse::service] entering client 0 ... [2025-02-08T20:49:14Z INFO lan_mouse::capture] client 0 acknowledged the connection! [2025-02-08T20:49:14Z INFO lan_mouse::capture] client 0 acknowledged the connection! [2025-02-08T20:49:14Z INFO lan_mouse::capture] client 0 acknowledged the connection! [2025-02-08T20:49:54Z INFO lan_mouse::capture] releasing capture: left remote client device region [2025-02-08T21:55:59Z INFO lan_mouse::service] entering client 0 ... [2025-02-08T21:55:59Z INFO lan_mouse::capture] client 0 acknowledged the connection! [2025-02-08T21:55:59Z INFO lan_mouse::capture] client 0 acknowledged the connection! Protocol error 1 on object wl_display@1: invalid arguments for zwlr_layer_shell_v1#6.get_layer_surface thread 'main' panicked at input-capture/src/layer_shell.rs:502:17: wayland protocol violation: Protocol error 1 on object wl_display@1: invalid arguments for zwlr_layer_shell_v1#6.get_layer_surface note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace [1] 63636 IOT instruction lan-mouse --daemon ```
Author
Owner

@feschber commented on GitHub (Feb 8, 2025):

Small update: I figured out the root cause but it will take some time to fix this. Thank you for reporting :)

<!-- gh-comment-id:2645958710 --> @feschber commented on GitHub (Feb 8, 2025): Small update: I figured out the root cause but it will take some time to fix this. Thank you for reporting :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#124
No description provided.