feschber / lan-mouse

mouse & keyboard sharing via LAN
GNU General Public License v3.0
2.62k stars 84 forks source link

On Fedora KDE 40 the port won't open #196

Closed livexia closed 2 months ago

livexia commented 2 months ago

After launch both lan-mouse both on macOS and Linux, I found that the port on Fedora won't open.

On Fedora I can add macOS as a client but I got input capture exited: error creating input-capture: no backend available as expected. So macOS port is open.

But other way around there is no log on Fedora. I tested with nc -l 4242 on Fedora. On macOS I can using nc to test, and connection is succeeded. Also running lan-mouse while running nc with same port, nc run as normal.

Firewalld: 1025-65535 udp/tcp ports are open. 屏幕截图_20240911_003143

livexia commented 2 months ago

macOS logs:

livexia in 🌐 MacBook-Go-2 in ~ took 8m51s 
❯ lan-mouse
[2024-09-10T16:14:35Z WARN  lan_mouse::config] /Users/livexia/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-09-10T16:14:35Z WARN  lan_mouse::config] Continuing without config file ...
[2024-09-10T16:14:35Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-09-10T16:14:35Z WARN  lan_mouse::config] /Users/livexia/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-09-10T16:14:35Z WARN  lan_mouse::config] Continuing without config file ...
[2024-09-10T16:14:35Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-09-10T16:14:35Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2024-09-10T16:14:35Z INFO  lan_mouse::server] running service
[2024-09-10T16:14:35Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:14:35Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`
[2024-09-10T16:14:35Z INFO  lan_mouse::server::emulation_task] creating input emulation...
[2024-09-10T16:14:35Z INFO  input_emulation] using emulation backend: macos
[2024-09-10T16:14:52Z INFO  lan_mouse::server] received capture enable request
[2024-09-10T16:14:52Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:14:52Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`
[2024-09-10T16:14:59Z INFO  lan_mouse::server] received capture enable request
[2024-09-10T16:14:59Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:14:59Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`
[2024-09-10T16:15:00Z INFO  lan_mouse::server] received capture enable request
[2024-09-10T16:15:00Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:15:00Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`
[2024-09-10T16:15:00Z INFO  lan_mouse::server] received capture enable request
[2024-09-10T16:15:00Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:15:00Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`
[2024-09-10T16:15:00Z INFO  lan_mouse::server] received capture enable request
[2024-09-10T16:15:00Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:15:00Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`
[2024-09-10T16:15:00Z INFO  lan_mouse::server] received capture enable request
[2024-09-10T16:15:00Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:15:00Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`
[2024-09-10T16:15:00Z INFO  lan_mouse::server] received capture enable request
[2024-09-10T16:15:00Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:15:00Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`
[2024-09-10T16:15:54Z WARN  lan_mouse::server::emulation_task] ignoring events from client 192.168.31.127:4242
[2024-09-10T16:17:33Z INFO  lan_mouse::server] added client 0
[2024-09-10T16:17:35Z INFO  lan_mouse::server] added client 1
2024-09-11 00:17:47.437 lan-mouse[21949:210101] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit
[2024-09-10T16:17:52Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:17:52Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:17:52Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:17:52Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:18:22Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:18:22Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:18:24Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:18:24Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:18:24Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:18:24Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:18:25Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:18:25Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:18:25Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:18:25Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:18:25Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:18:25Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:18:38Z INFO  lan_mouse::server] received capture enable request
[2024-09-10T16:18:38Z WARN  input_capture] MacOS input capture backend unavailable: error creating macos capture backend: `MacOS input capture is not yet implemented :(`
[2024-09-10T16:18:38Z WARN  lan_mouse::server::capture_task] input capture exited: error creating input-capture: `no backend available`

(<unknown>:21949): Gtk-WARNING **: 00:18:40.084: Broken accounting of active state for widget 0x7f9403a2da30(LanMouseWindow)

(<unknown>:21949): Gtk-WARNING **: 00:18:52.520: Broken accounting of active state for widget 0x7f9403a2da30(LanMouseWindow)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403875f70(GtkImage)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403875e00(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f94038753f0(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403874a00(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403874880(AdwComboRow)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403935800(GtkListBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f94039572a0(GtkRevealer)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9402f7e660(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9402f9c9b0(ClientRow)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a33600(GtkListBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a33240(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a329e0(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a32860(AdwPreferencesGroup)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9402f506b0(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a345e0(AdwClamp)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a34920(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9402f582b0(GtkViewport)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a354c0(GtkScrolledWindow)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a34760(AdwStatusPage)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9402f55d70(AdwToastOverlay)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9402f52670(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a263c0(AdwBreakpointBin)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a2e3e0(AdwBin)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a2e050(AdwDialogHost)

(<unknown>:21949): Gtk-WARNING **: 00:18:53.984: Broken accounting of active state for widget 0x7f9403a2da30(LanMouseWindow)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f94038753f0(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403874a00(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403874880(AdwComboRow)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403935800(GtkListBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f94039572a0(GtkRevealer)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9402f7e660(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9402f9c9b0(ClientRow)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a33600(GtkListBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a33240(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a329e0(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a32860(AdwPreferencesGroup)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9402f506b0(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a345e0(AdwClamp)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a34920(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9402f582b0(GtkViewport)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a354c0(GtkScrolledWindow)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a34760(AdwStatusPage)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9402f55d70(AdwToastOverlay)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9402f52670(GtkBox)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a263c0(AdwBreakpointBin)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a2e3e0(AdwBin)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.483: Broken accounting of active state for widget 0x7f9403a2e050(AdwDialogHost)

(<unknown>:21949): Gtk-WARNING **: 00:18:56.484: Broken accounting of active state for widget 0x7f9403a2da30(LanMouseWindow)

(<unknown>:21949): Gtk-WARNING **: 00:20:33.643: Broken accounting of active state for widget 0x7f9403a2da30(LanMouseWindow)
[2024-09-10T16:35:32Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:35:32Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:36:03Z WARN  lan_mouse::server::emulation_task] ignoring events from client 192.168.31.127:4222
[2024-09-10T16:36:23Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:36:23Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:36:46Z WARN  lan_mouse::server::emulation_task] ignoring events from client 192.168.31.127:4222
[2024-09-10T16:36:47Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:36:47Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
livexia commented 2 months ago

Fedora logs:

~/Developer/synergy took 3m26s 
❯ lan-mouse
[2024-09-10T16:19:02Z WARN  lan_mouse::config] /home/livexia/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-09-10T16:19:02Z WARN  lan_mouse::config] Continuing without config file ...
[2024-09-10T16:19:02Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-09-10T16:19:02Z WARN  lan_mouse::config] /home/livexia/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-09-10T16:19:02Z WARN  lan_mouse::config] Continuing without config file ...
[2024-09-10T16:19:02Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-09-10T16:19:02Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2024-09-10T16:19:02Z INFO  lan_mouse::server] running service
[2024-09-10T16:19:02Z INFO  lan_mouse::server::emulation_task] creating input emulation...
[2024-09-10T16:19:02Z WARN  input_emulation] wlroots backend: `wayland protocol "wlr-virtual-pointer-unstable-v1" not supported: the requested global was not found in the registry`

(lan-mouse:61161): Gtk-WARNING **: 00:19:02.905: Unknown key gtk-modules in /home/livexia/.config/gtk-4.0/settings.ini
[2024-09-10T16:19:03Z INFO  input_emulation::libei] requesting permission for input emulation
[2024-09-10T16:19:06Z INFO  input_emulation] using emulation backend: libei
[2024-09-10T16:19:07Z INFO  input_capture] using capture backend: input-capture-portal
[2024-09-10T16:19:07Z INFO  lan_mouse::server::capture_task] []

(lan-mouse:61161): GLib-CRITICAL **: 00:21:54.176: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:21:54.363: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:21:54.431: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:21:54.541: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:21:54.620: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:21:54.744: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:21:55.268: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:21:55.457: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:05.256: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:05.348: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:05.427: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:05.524: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:05.588: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:05.730: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:05.983: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:06.125: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:49.783: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:22:49.875: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:33:06.812: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:33:06.904: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:33:06.972: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:33:07.063: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:33:07.127: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:33:07.271: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:33:07.522: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:33:07.649: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:34:54.769: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:34:54.892: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:34:55.025: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:34:55.151: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:34:55.199: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:34:55.323: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:34:55.449: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:34:55.591: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed
[2024-09-10T16:34:56Z INFO  lan_mouse::server] added client 0

(lan-mouse:61161): GLib-CRITICAL **: 00:35:01.093: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:01.312: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:01.520: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:01.677: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:01.838: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:01.963: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.065: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.174: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.215: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.325: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.349: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.428: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.483: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.562: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.668: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.759: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.809: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:02.882: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:03.250: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:03.356: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:04.234: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:04.363: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:04.389: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:04.488: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:04.529: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:04.622: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:05.151: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:05.273: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:05.286: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:05.396: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:05.474: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:35:05.554: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed
[2024-09-10T16:35:09Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:35:09Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:35:09Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:35:09Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:36:04Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-09-10T16:36:07Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-09-10T16:36:08Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-09-10T16:36:09Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-09-10T16:36:47Z WARN  lan_mouse::server::ping_task] client not responding, releasing pointer!
[2024-09-10T16:37:05Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:05Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:06Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:06Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:07Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:07Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:07Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:07Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:07Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:07Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:08Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:08Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:08Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:08Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:08Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:08Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:08Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:08Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:10Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:10Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176
[2024-09-10T16:37:11Z INFO  lan_mouse::dns] resolving (0) `192.168.31.176` ...
[2024-09-10T16:37:11Z INFO  lan_mouse::dns] 192.168.31.176: adding ip 192.168.31.176

(lan-mouse:61161): GLib-CRITICAL **: 00:37:20.288: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:37:20.460: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:37:21.034: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:37:21.175: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:37:21.217: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:37:21.350: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:37:21.362: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed

(lan-mouse:61161): GLib-CRITICAL **: 00:37:21.508: g_variant_iter_loop: assertion 'g_variant_is_of_type (GVSI(iter)->value, G_VARIANT_TYPE_ARRAY)' failed
feschber commented 2 months ago

It looks like you have not added the respective clients on both devices:

Make sure to add the Mac on the Linux device and vice verca. This is necessary even when only controlling one device from the other one (#164) and will change once #104 is resolved.

livexia commented 2 months ago

macos

截屏2024-09-11 00 49 06
livexia commented 2 months ago

Fedora 屏幕截图_20240911_004955

feschber commented 2 months ago

for some reason you seem to be receiving events form port 4222 instead of 4242:

[2024-09-10T16:35:32Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:35:32Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:36:03Z WARN  lan_mouse::server::emulation_task] ignoring events from client 192.168.31.127:4222
[2024-09-10T16:36:23Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:36:23Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T16:36:46Z WARN  lan_mouse::server::emulation_task] ignoring events from client 192.168.31.127:4222
[2024-09-10T16:36:47Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T16:36:47Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127

Did you change the port in the configuration file?

livexia commented 2 months ago

Sorry for the confusion, I change the port for testing, the port is indeed open. But I can't pass macOS to Fedora, and pass Fedora to macOS lead to Fedora cursor invisibe.

feschber commented 2 months ago

I'm assuming, you are using version 0.9.1? In that case only Fedora -> MacOS will work.

On latest git, you should be able to control fedora from the mac as well, but make sure to use the exact same version in that case!

Regardless: Could you try port 4242 on both devices? There might be an issue with the port not being displayed correctly.

livexia commented 2 months ago

I'm assuming, you are using version 0.9.1? In that case only Fedora -> MacOS will work.

Regardless: Could you try port 4242 on both devices? There might be an issue with the port not being displayed correctly.

yes 0.9.1, but Fedora -> MacOS didn't work, cursor became invisible. KDE has a feature when shake cursor, cursor become bigger, so even the cursor is invisible when I shake cursor, I still can see the cursor in the Fedora. Also click and keyboard don't work.After I disable Fedora in macOS the cursor become usable again.

Maybe I should just try install the git version?

feschber commented 2 months ago

It sounds like its not a connection issue.

Did you get a prompt on the mac device to allow lan-mouse to control the device?

To confirm that this is configured correctly, you can run

lan-mouse --test-emulation

from a terminal (on macos)

This should make the cursor move in a loop. (you can cancel it via CTRL+C)

livexia commented 2 months ago

Yes cursor move in a loop.

livexia commented 2 months ago

No luck with git version. First time launch on macOS there is a popup asking internet access. But still unable to connect either.

there is a panicked in the macOS log.

livexia in 🌐 MacBook-Go-2 in lan-mouse on  main is 📦 v0.9.1 via 🦀 v1.83.0-nightly 
❯ cargo run --release
    Finished `release` profile [optimized] target(s) in 0.62s
     Running `/Users/livexia/.cargo-target/release/lan-mouse`
[2024-09-10T17:19:26Z WARN  lan_mouse::config] /Users/livexia/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-09-10T17:19:26Z WARN  lan_mouse::config] Continuing without config file ...
[2024-09-10T17:19:26Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-09-10T17:19:26Z WARN  lan_mouse::config] /Users/livexia/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-09-10T17:19:26Z WARN  lan_mouse::config] Continuing without config file ...
[2024-09-10T17:19:26Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-09-10T17:19:26Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2024-09-10T17:19:26Z INFO  input_capture::macos] Enabling CGEvent tap
[2024-09-10T17:19:26Z INFO  input_capture] using capture backend: MacOS
[2024-09-10T17:19:26Z INFO  lan_mouse::server::emulation_task] creating input emulation...
[2024-09-10T17:19:26Z INFO  input_emulation] using emulation backend: macos
thread '<unnamed>' panicked at input-capture/src/macos.rs:420:6:
Failed creating tap: ()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at /Users/livexia/Developer/lan-mouse/input-capture/src/macos.rs:476:45:
channel closed: RecvError(())
2024-09-11 01:20:01.360 lan-mouse[26237:260461] TSM AdjustCapsLockLEDForKeyTransitionHandling - _ISSetPhysicalKeyboardCapsLockLED Inhibit
[2024-09-10T17:20:09Z INFO  lan_mouse::server] added client 0
[2024-09-10T17:20:12Z INFO  lan_mouse::server] activated client 0 (left)
[2024-09-10T17:20:25Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T17:20:25Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T17:20:25Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T17:20:25Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T17:20:49Z INFO  lan_mouse::dns] resolving (0) `192.168.31.127` ...
[2024-09-10T17:20:49Z INFO  lan_mouse::dns] 192.168.31.127: adding ip 192.168.31.127
[2024-09-10T17:20:51Z INFO  lan_mouse::server] deactivated client 0
[2024-09-10T17:20:51Z WARN  lan_mouse::server::emulation_task] ignoring events from client 192.168.31.127:4242
[2024-09-10T17:21:12Z INFO  lan_mouse::server] activated client 0 (left)
[2024-09-10T17:21:25Z INFO  lan_mouse::server] deactivated client 0
[2024-09-10T17:21:26Z INFO  lan_mouse::server] activated client 0 (left)
[2024-09-10T17:21:33Z INFO  lan_mouse::server] deactivated client 0
[2024-09-10T17:21:33Z INFO  lan_mouse::server] activated client 0 (left)
[2024-09-10T17:21:45Z INFO  lan_mouse::server] deactivated client 0
[2024-09-10T17:21:45Z WARN  lan_mouse::server::emulation_task] ignoring events from client 192.168.31.127:4242
feschber commented 2 months ago
[2024-09-10T17:19:26Z INFO  input_emulation] using emulation backend: macos
thread '<unnamed>' panicked at input-capture/src/macos.rs:420:6:
Failed creating tap: ()

okay this seems to be the issue, did this log show up earlier as well?

livexia commented 2 months ago

okay this seems to be the issue, did this log show up earlier as well?

don't think so.

livexia commented 2 months ago

I am using a global target location config for cargo, I will cargo clean and rebuild see if this help.

feschber commented 2 months ago

the "Failed creating tap:" error is usually because the controlling this device setting is disabled.

You could help me out by sending a tracelog from both devices when trying to move the cursor across. To do that, run it via

LAN_MOUSE_LOG_LEVEL=trace cargo run

or

LAN_MOUSE_LOG_LEVEL=trace lan-mouse

depending on how you set things up.

livexia commented 2 months ago

Wow, Before I also run lan-mouse through ssh, I think my problem is because of this.If I run it by the machine, it just works on both way. Running without the ssh the error is no more.

I will try run through the ssh to capture the logs for you. But I think my problem is my laziness, Thank you very much, what a great project.

feschber commented 2 months ago

Interesting. It could be that the service kept running in the background somehow.

livexia commented 2 months ago

with ssh:

livexia in 🌐 MacBook-Go-2 in lan-mouse on  main is 📦 v0.9.1 via 🦀 v1.83.0-nightly 
❯ LAN_MOUSE_LOG_LEVEL=trace cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s
     Running `/Users/livexia/.cargo-target/debug/lan-mouse`
[2024-09-10T18:21:59Z WARN  lan_mouse::config] /Users/livexia/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-09-10T18:21:59Z WARN  lan_mouse::config] Continuing without config file ...
[2024-09-10T18:21:59Z DEBUG lan_mouse::config] None
[2024-09-10T18:21:59Z DEBUG lan_mouse] Config { capture_backend: None, emulation_backend: None, frontend: Gtk, port: 4242, clients: [], daemon: false, release_bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt], test_capture: false, test_emulation: false }
[2024-09-10T18:21:59Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-09-10T18:21:59Z DEBUG lan_mouse_gtk] running gtk frontend
[2024-09-10T18:21:59Z WARN  lan_mouse::config] /Users/livexia/.config/lan-mouse/config.toml: No such file or directory (os error 2)
[2024-09-10T18:21:59Z WARN  lan_mouse::config] Continuing without config file ...
[2024-09-10T18:21:59Z DEBUG lan_mouse::config] None
[2024-09-10T18:21:59Z DEBUG lan_mouse] Config { capture_backend: None, emulation_backend: None, frontend: Gtk, port: 4242, clients: [], daemon: true, release_bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt], test_capture: false, test_emulation: false }
[2024-09-10T18:21:59Z INFO  lan_mouse] release bind: [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt]
[2024-09-10T18:21:59Z INFO  lan_mouse] Press [KeyLeftCtrl, KeyLeftShift, KeyLeftMeta, KeyLeftAlt] to release the mouse
[2024-09-10T18:21:59Z DEBUG lan_mouse_ipc::listen] remove socket: "/Users/livexia/Library/Caches/lan-mouse-socket.sock"
[2024-09-10T18:21:59Z DEBUG input_capture::macos] Updated displays bounds: Bounds { xmin: 0.0, xmax: 1280.0, ymin: 0.0, ymax: 854.0 }
[2024-09-10T18:21:59Z INFO  input_capture::macos] Enabling CGEvent tap
[2024-09-10T18:21:59Z INFO  input_capture] using capture backend: MacOS
[2024-09-10T18:21:59Z INFO  lan_mouse::server::emulation_task] creating input emulation...
[2024-09-10T18:21:59Z INFO  input_emulation] using emulation backend: macos
thread '<unnamed>' panicked at input-capture/src/macos.rs:420:6:
Failed creating tap: ()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'main' panicked at /Users/livexia/Developer/lan-mouse/input-capture/src/macos.rs:476:45:
channel closed: RecvError(())
[2024-09-10T18:21:59Z DEBUG lan_mouse_gtk] connecting to lan-mouse-socket
[2024-09-10T18:21:59Z DEBUG lan_mouse_gtk] connected to lan-mouse-socket
[2024-09-10T18:21:59Z DEBUG lan_mouse::server] handle frontend request: Sync
[2024-09-10T18:21:59Z DEBUG lan_mouse::server] frontend: Sync
livexia commented 2 months ago

I think the panic occur because of the new mac capture support.

When I launch through the ssh, there is lots of logs like [2024-09-10T18:24:45Z TRACE lan_mouse::server::emulation_task] Enter(0) <-<-<-<------ 192.168.31.127:4242 appers in macOS log. So macOS must got the Fedora input but unable to emulate it.

livexia commented 2 months ago

Also there is a interesting problem, that the scroll direction is opposite. I am not using invert scroll on both machine.

livexia commented 2 months ago

Maybe I have to get used to it. For now this is working good, thanks for you help and your project, maybe I should close this issue.

feschber commented 2 months ago

Also there is a interesting problem, that the scroll direction is opposite. I am not using invert scroll on both machine.

Yeah it's a bit weird on macos. It also ignores the natural scroll setting iirc.

After the emulation panic occurs it makes sense that it cant emulate it but it should be unrelated to the input capture PR. I will need to work on better error handling in macos and handle this case better.

livexia commented 2 months ago

Yeah it's a bit weird on macos. It also ignores the natural scroll setting iirc.

I am very confuse right now because of this, but I think I can live with it. I will close this issue now, you are doing a great job thanks again.

feschber commented 2 months ago

glad I could help :)