Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

randomly stops working after a while #16

Open
dnut opened this issue Nov 15, 2022 · 1 comment
Open

randomly stops working after a while #16

dnut opened this issue Nov 15, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@dnut
Copy link
Owner

dnut commented Nov 15, 2022

Sometimes I notice all the clipboards break after the service has been working fine for hours or days. Not only is it not synced but I can't even copy and paste within a single display. Restarting the service always fixes it.

Something is getting into a bad state, but I'm not sure what. I have a suspicion there are some issues with some displays starting and stopping while the service is running but I don't see how that fully explains it. I need to add some extensive debug logging (probably do #10 at the same time) and check out the logs whenever this happens.

@dnut dnut added the bug Something isn't working label Jan 4, 2023
@dnut
Copy link
Owner Author

dnut commented Jan 5, 2023

today i saw it stop syncing across displays but worked fine within one display, systemd service says it's running but the last log was right after it started over four hours ago

Jan 05 14:22:28 hp1040 env[1821355]: DEBUG - WlrClipboard { display: "wayland-1" } is the same as X11Clipboard { display: ":2" }, removing X11Clipboard { >
Jan 05 14:22:28 hp1040 env[1821355]: DEBUG - X11Clipboard { display: ":0" } is the same as X11Clipboard { display: ":1" }, removing X11Clipboard { display>
Jan 05 14:22:28 hp1040 env[1821355]:  INFO - Using clipboards: [WlrClipboard { display: "wayland-1" }, X11Clipboard { display: ":0" }]
Jan 05 14:23:08 hp1040 env[1821355]:  INFO - clipboard updated from display wayland-1
Jan 05 14:25:37 hp1040 env[1821355]:  INFO - clipboard updated from display :0
Jan 05 14:26:43 hp1040 env[1821355]: thread 'main' panicked at 'Sending a message failed.: EMFILE', /home/drew/.cargo/registry/src/github.com-1ecc6299db9e>
Jan 05 14:26:43 hp1040 env[1821355]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Jan 05 14:26:43 hp1040 systemd[1452]: clipboard-sync.service: Main process exited, code=exited, status=101/n/a
Jan 05 14:26:43 hp1040 systemd[1452]: clipboard-sync.service: Failed with result 'exit-code'.
Jan 05 14:26:43 hp1040 systemd[1452]: clipboard-sync.service: Consumed 4.931s CPU time.
Jan 05 14:26:44 hp1040 systemd[1452]: clipboard-sync.service: Scheduled restart job, restart counter is at 788.
Jan 05 14:26:44 hp1040 systemd[1452]: Stopped Synchronize clipboards across all displays.
Jan 05 14:26:44 hp1040 systemd[1452]: clipboard-sync.service: Consumed 4.931s CPU time.
Jan 05 14:26:44 hp1040 systemd[1452]: Started Synchronize clipboards across all displays.
Jan 05 14:26:44 hp1040 env[1822877]:  INFO - starting clipboard sync
Jan 05 14:26:44 hp1040 env[1822877]:  INFO - identifying unique clipboards...
Jan 05 14:26:44 hp1040 env[1822877]:  WARN - wayland-0 does not support zwlr_data_control_manager_v1. If you are running gnome in wayland, that's OK becau>
Jan 05 14:26:44 hp1040 env[1822877]: DEBUG - Found clipboard: WlrClipboard { display: "wayland-1" }
Jan 05 14:26:44 hp1040 env[1822877]: DEBUG - Found clipboard: X11Clipboard { display: ":0" }
Jan 05 14:26:44 hp1040 env[1822877]: DEBUG - Found clipboard: X11Clipboard { display: ":1" }
Jan 05 14:26:44 hp1040 env[1822877]: DEBUG - Found clipboard: X11Clipboard { display: ":2" }
...
Jan 05 14:26:44 hp1040 env[1822877]:  INFO - Using clipboards: [WlrClipboard { display: "wayland-1" }, X11Clipboard { display: ":0" }]
Jan 05 14:28:43 hp1040 env[1822877]:  INFO - clipboard updated from display wayland-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant