Discussion:
[X2Go-User] Clipboard copy paste keeps being unreliable for years now
Nigra Truo
2018-08-10 01:21:24 UTC
Permalink
Hi,

I have been using X2go with a Debian Server and Linux Debian and Windows 7
clients for ages now. Most of the time it works flawlessly, but one thing
that bugs the hell out of me is that copy paste via clipboard from Client
to server does not work reliably. It works most of the time, but then it
just fails, when I copy something, and paste in the target machine, nothing
gets pasted.

Now I want to troubleshoot and fix this once and for all. What causes this
problem, why does copy paste fail sometimes?

Thanks,

Markus
--
*Por sperto kaj lerno ne sufiĉas eterno.*
Tristan Miller
2018-08-10 06:11:49 UTC
Permalink
Greetings.

On Thu, 9 Aug 2018 18:21:24 -0700, Nigra Truo
Post by Nigra Truo
I have been using X2go with a Debian Server and Linux Debian and
Windows 7 clients for ages now. Most of the time it works flawlessly,
but one thing that bugs the hell out of me is that copy paste via
clipboard from Client to server does not work reliably. It works most
of the time, but then it just fails, when I copy something, and paste
in the target machine, nothing gets pasted.
Now I want to troubleshoot and fix this once and for all. What causes
this problem, why does copy paste fail sometimes?
I suffer from this problem as well (using openSUSE Tumbleweed/Leap
servers and clients). It happens often enough to be annoying, but
rarely enough that I've never been able to track down the cause. The
problem has also been reported by others on this list -- see for
example
<http://lists.x2go.org/pipermail/x2go-user/2018-March/004979.html>.

Regards,
Tristan
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Tristan Miller
Free Software developer, ferret herder, logologist
https://logological.org/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Walid MOGHRABI
2018-08-10 07:25:36 UTC
Permalink
Hi,

+1

For what I can tell, this only happens with the Windows client, even the latest one.
I have never been able to reproduce it with the Linux client and I don't use the Mac client so I can't tell.

As someone already said, pretty hard to reproduce, don't happen very often but often enough to be annoying.


Regards,
Walid Moghrabi

TRAVAUX.COM
BAT I - PARC CEZANNE 2 290 AVENUE GALILEE - CS 80403
13591 AIX EN PROVENCE CEDEX 3

----- Mail original -----

De: "Nigra Truo" <***@gmail.com>
À: x2go-***@lists.x2go.org
Envoyé: Vendredi 10 Août 2018 03:21:24
Objet: [X2Go-User] Clipboard copy paste keeps being unreliable for years now






Hi,

I have been using X2go with a Debian Server and Linux Debian and Windows 7 clients for ages now. Most of the time it works flawlessly, but one thing that bugs the hell out of me is that copy paste via clipboard from Client to server does not work reliably. It works most of the time, but then it just fails, when I copy something, and paste in the target machine, nothing gets pasted.

Now I want to troubleshoot and fix this once and for all. What causes this problem, why does copy paste fail sometimes?

Thanks,

Markus
--
Por sperto kaj lerno ne sufiĉas eterno.
_______________________________________________
x2go-user mailing list
x2go-***@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user
---
DISCLAIMER: This e-mail is private and confidential and may contain proprietary or legally privileged information. It is for the intended recipient only. If you have received this email in error, please notify the author by replying to it and then destroy it. If you are not the intended recipient you must not use, disclose, distribute, copy, print or rely on this e-mail or any attachment. Thank you
Stefan Baur
2018-08-10 07:42:35 UTC
Permalink
Post by Walid MOGHRABI
For what I can tell, this only happens with the Windows client, even the latest one.
I have never been able to reproduce it with the Linux client and I don't use the Mac client so I can't tell.
As someone already said, pretty hard to reproduce, don't happen very often but often enough to be annoying.
This is interesting. Uli made a change in the code a while ago (either
for the March 2018 release or even before, I don't remember) that should
have fixed this. I haven't had the issue myself since then, though I'm
not using Windows as often as I used to.

Kind Regards,
Stefan Baur
--
BAUR-ITCS UG (haftungsbeschränkt)
Geschäftsführer: Stefan Baur
Eichenäckerweg 10, 89081 Ulm | Registergericht Ulm, HRB 724364
Fon/Fax 0731 40 34 66-36/-35 | USt-IdNr.: DE268653243
Kalle Tuulos
2018-08-10 07:58:09 UTC
Permalink
Post by Stefan Baur
This is interesting. Uli made a change in the code a while ago (either
for the March 2018 release or even before, I don't remember) that should
have fixed this. I haven't had the issue myself since then, though I'm
not using Windows as often as I used to.
This issue is somewhat random. I'm using Windows client from several
machines, to several Ubuntu servers. On some client machine, the clipboard
works to certain servers, but not to all. I haven't found any rule, why it
would not work.

Maybe this has something common with random behaviour of shared directory?
It also works towards some servers, but not to all.

BR,
Kalle
Ulrich Sibiller
2018-08-10 08:14:01 UTC
Permalink
Post by Stefan Baur
Post by Walid MOGHRABI
For what I can tell, this only happens with the Windows client, even the latest one.
I have never been able to reproduce it with the Linux client and I don't use the Mac client so I can't tell.
As someone already said, pretty hard to reproduce, don't happen very often but often enough to be annoying.
This is interesting. Uli made a change in the code a while ago (either
for the March 2018 release or even before, I don't remember) that should
have fixed this. I haven't had the issue myself since then, though I'm
not using Windows as often as I used to.
IIRC that fix is from August 2016. It fixed https://bugs.x2go.org/952

However, that relied to the first paste right after session start. The
description above mentions problems DURING a running session.

I don't know what is happening there but maybe using these hints you
can mitigate the problem:
1. we currently only support 256kb maximum clipboard size. Bigger
clipboards will cause problems (we do not support the so-called INCR
mode for clipboard handling). So please limit yourself to smaller
selections.
2. do not use a clipboard manager inside or outside the session
3. on Linux you have (at least) two clipboards, so in case of problems
it might happen that you just reference the wrong one (middle mouse
vs. paste from the menu)
4. konsole for example has own code to synchronize the two clipboards.
Might interfere with NXs logic
5. I sometimes see this with rdp session inside an NX session. It
usually helps to mark something in windows and copy it. Afterwards you
can copy/paste from the outside again
6. ensure that the XFIXES extension is activated

Unfortunately the clipboard code is not easily understood and
debugging is quite cumbersome because you have so many parties
involved.

So if someone can come up with a sure way to trigger the behaviour we
might be able to properly debug it.

Uli

Loading...