xpra icon
Bug tracker and wiki

Opened 3 months ago

Closed 7 weeks ago

Last modified 4 weeks ago

#2342 closed defect (fixed)

--clipboard does not work since v3.0

Reported by: mviereck Owned by: Antoine Martin
Priority: blocker Milestone: 3.0
Component: clipboard Version: 3.0.x
Keywords: Cc:

Description

Clipboard sharing does not work with xpra v3.0-r22234 and higher.
That applies to phyton2-xpra as well as to python3-xpra.
It works with xpra v2.5.2-r22875

Used options for server and client: --clipboard-direction=both --clipboard=yes.

System: Debian buster with winswitch beta repository.
Special setup: x11docker: server and client run on same system, but different X servers.
A clipboard tool in background is xfce4-clipman, but disabling it makes no difference.

Change History (7)

comment:1 Changed 3 months ago by Antoine Martin

Owner: changed from Antoine Martin to mviereck

Clipboard sharing does not work with xpra v3.0-r22234 and higher.

What's the latest version of the v3.0 beta that you've tried?
How does it "not work"? No copying at all? In any direction?
Any errors in the logs?

There were a number of updates and fixes, some are tracked in #812 and #2338.
The latest potentially relevant fixes are in r23005.

comment:2 Changed 3 months ago by mviereck

What's the latest version of the v3.0 beta that you've tried?

xpra v3.0-r23019

How does it "not work"? No copying at all? In any direction?

Not copying at all in both directions. The clipboard works only within the vfb itself.

Any errors in the logs?

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:47,143 Warning: CLIPBOARD selection request for 'TARGETS' timed out

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:47,144 client @10.613 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:47,145 client @10.614  request 0 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:47,145  request 0 at time=0
2019-06-29 15:59:47,653 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:47,654  request 1 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:47,655 client @11.123 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:47,656 client @11.124  request 1 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:48,196 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:48,197  request 2 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:48,198 client @11.666 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:48,200 client @11.667  request 2 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:49,858 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:49,859  request 3 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:49,860 client @13.328 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:49,862 client @13.329  request 3 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:50,365 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:50,366  request 4 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:50,366 client @13.835 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:50,369 client @13.836  request 4 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:52,582 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:52,583  request 5 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:52,583 client @16.052 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:52,585 client @16.053  request 5 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 15:59:53,090 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:53,091  request 6 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 15:59:53,091 client @16.560 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 15:59:53,094 client @16.561  request 6 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 16:00:00,102 Warning: CLIPBOARD selection request for 'TARGETS' timed out

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 16:00:00,103 client @23.572 Warning: CLIPBOARD selection request for 'TARGETS' timed out

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 16:00:00,103  request 7 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 16:00:00,103 client @23.573  request 7 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraclient.log <==
2019-06-29 16:00:00,608 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 16:00:00,609  request 8 at time=0

==> /home/lauscher/.cache/x11docker/jess-firefox-9d49a1/xpraserver.log <==
2019-06-29 16:00:00,611 client @24.078 Warning: CLIPBOARD selection request for 'TARGETS' timed out
2019-06-29 16:00:00,613 client @24.079  request 8 at time=0

Further clips on server or client side do not trigger new log entries.

comment:3 Changed 2 months ago by Antoine Martin

Can you give me simple steps to reproduce?

comment:4 Changed 8 weeks ago by mviereck

Finally I could track it down:
If the xpra client runs with --xsettings=no, the clipboard sharing does not work anymore.

Sorry, I should have checked with simple setups first.

Edit: Example to reproduce:

 xpra start :30 --xvfb="/usr/bin/Xvfb :30" --start "mousepad" --daemon=no --clipboard=yes
xpra attach :30 --xsettings=no
Last edited 8 weeks ago by mviereck (previous) (diff)

comment:5 Changed 7 weeks ago by Antoine Martin

Owner: changed from mviereck to Antoine Martin
Priority: majorblocker
Status: newassigned

I can reproduce.
Must be some refactoring gone wrong: xsettings and clipboard share the same X11 selection mechanism.

comment:6 Changed 7 weeks ago by Antoine Martin

Resolution: fixed
Status: assignedclosed

Fixed in r23369. (a much smaller fix was possible - but this one is "better")

comment:7 Changed 4 weeks ago by mviereck

I can confirm the fix with v3.0-r23522, clipboard works again with --xsettings=no. Thank you!

Note: See TracTickets for help on using tickets.