Re: [X2Go-User] Copy and paste between systems stops working

2020-01-17 Thread Paul Borowicz
I'm on openSuse. I've always have trouble cutting and pasting between next
to go and Windows using the mouse.

I usually have pretty good success if I copy from x to go using the
control-shift-c method and then paste with control-v on Windows.

On Fri, Jan 17, 2020, 9:42 AM Stefan Baur  wrote:

> Hi Léa!
>
> Am 15.01.20 um 12:08 schrieb Lmhelp1:
>
> > Here is the problem:
> > as long as I copy and paste strings from the Windows system to a console
> > (xterm) in the Linux system, it works fine.
> > If I start, for example, "gvim foo.txt" which contains the string "foo",
> > select "foo" with the mouse and try to paste it in a Gvim or a Notepad
> > running on the Windows system, the string "foo" is not pasted in the
> > Windows Gvim or Notepad.
> > And starting from this point, I cannot copy and paste anything between
> > the two systems.
> > I have to close all the Windows in the Linux system, close the X2Go
> > session and restart a new one to have copy and paste work again between
> > the two systems.
> > And, as soon as I open a document with Gvim in the Linux system, and try
> > to copy and paste strings to and from it, it malfunctions again.
> > Practically, it becomes very unhandy because I regularly need to copy
> > and paste things that way between the two systems.
> >
> > Can you help me solve that problem?
> > Thanks and best regards.
> First, do you really have to close the X2Go session?  I would have
> expected that suspending it, closing X2GoClient on Windows, and
> restarting it would be enough to reset the clipboard.
>
> Second, there have been some changes to vim regarding the handling of
> mouse commands, I believe this started with the version shipped with
> Debian Stretch and got even worse in Buster.  Maybe try:
>
> :set mouse=
>
> in gvim before trying to copy-paste things?
>
> Third, we are currently beta-testing a new version of the NX libraries
> with numerous clipboard fixes.  Please visit
>  and see
> if you can help us test the new version, so it can become a part of X2Go
> proper.
>
> 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
> ___
> x2go-user mailing list
> x2go-user@lists.x2go.org
> https://lists.x2go.org/listinfo/x2go-user
>
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] Long-running x2goagent, high memory usage

2020-01-17 Thread Johannes Töger
Thanks for quick reply.

Answers to your questions below. I hope it gives some clue. Please let me know 
what else I can try.



What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs?

dpkg -l nx-libs: no packages found <--- this seems strange?

x2goserver-x2goagent 4.1.0.3-0~1708~ubuntu1 amd64
nxagent 2:3.5.99.20-0~20190425 amd64  

Can you please run xrestop within such a session and check if there are numbers 
that are far away from those of a fresh session?

Nothing out of the ordinary there I think. No processes with high 
memory usage.

You probably cannot answer that due to your usage scenario, but
anyway: does this also happen when you do not disconnect/reconnect?

I'll try to think of a way to test this.

What are you running inside the session?

No real pattern here for good and bad sessions. Matlab, Python/machine 
learning stuff, NVIDIA CUDA-accelerated machine learning programs etc.

— 
Johannes Töger

Associate Senior Lecturer
Cardiac MR Group
Department of Clinical Sciences Lund, Clinical Physiology
Lund University, Sweden

-Original Message-
From: Ulrich Sibiller  
Sent: Friday, January 17, 2020 13:25
To: Johannes Töger 
Cc: x2go-user@lists.x2go.org
Subject: Re: [X2Go-User] Long-running x2goagent, high memory usage

On Fri, Jan 17, 2020 at 11:56 AM Johannes Töger  
wrote:
> We are using x2go for a common compute server at our department. We have 
> users both on the local LAN and connections to the other side of Europe that 
> work really well. Being able to close the client and have computations still 
> running in a GUI environment is great.
>
> However, I think we have encountered a bug. Some (but not all) of the 
> long-running x2goagent processes start taking a lot of memory, ~30 GB. This 
> adds up quickly so that the other users can’t do their work. Below you can 
> see how user3 and user7 have x2goagent processes with large memory use (RSS 
> column).
>
> How can I go about debugging this? I have quite a bit of Linux experience, 
> but I don’t know where to start on this one since I don’t know much about how 
> x2go works internally.
>
> Server is on Ubuntu Server 18.04.1 LTS, (x2goserver 
> 4.1.0.3-0~1708~ubuntu18.04.1). Clients are on Windows 10, version. 4.1.2.0.
>
> johannes@compute-server:~$ ps  -o pid,lstart,rss,user $(pgrep 
> x2goagent)

What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs?

Can you please run xrestop within such a session and check if there are numbers 
that are far away from those of a fresh session?

You probably cannot answer that due to your usage scenario, but
anyway: does this also happen when you do not disconnect/reconnect?

What are you running inside the session?

You could run x2goagent with valgrind to identify memory leaks but I am unsure 
if that is working on a stock installation ( I don't do the packaging for 
Debian/Ubuntu so I don't know if the deliveres binaries allow for decent 
analysis/output). I'll check that this weekend.

Uli
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] Copy and paste between systems stops working

2020-01-17 Thread Stefan Baur
Hi Léa!

Am 15.01.20 um 12:08 schrieb Lmhelp1:

> Here is the problem:
> as long as I copy and paste strings from the Windows system to a console
> (xterm) in the Linux system, it works fine.
> If I start, for example, "gvim foo.txt" which contains the string "foo",
> select "foo" with the mouse and try to paste it in a Gvim or a Notepad
> running on the Windows system, the string "foo" is not pasted in the
> Windows Gvim or Notepad.
> And starting from this point, I cannot copy and paste anything between
> the two systems.
> I have to close all the Windows in the Linux system, close the X2Go
> session and restart a new one to have copy and paste work again between
> the two systems.
> And, as soon as I open a document with Gvim in the Linux system, and try
> to copy and paste strings to and from it, it malfunctions again.
> Practically, it becomes very unhandy because I regularly need to copy
> and paste things that way between the two systems.
> 
> Can you help me solve that problem?
> Thanks and best regards.
First, do you really have to close the X2Go session?  I would have
expected that suspending it, closing X2GoClient on Windows, and
restarting it would be enough to reset the clipboard.

Second, there have been some changes to vim regarding the handling of
mouse commands, I believe this started with the version shipped with
Debian Stretch and got even worse in Buster.  Maybe try:

:set mouse=

in gvim before trying to copy-paste things?

Third, we are currently beta-testing a new version of the NX libraries
with numerous clipboard fixes.  Please visit
 and see
if you can help us test the new version, so it can become a part of X2Go
proper.

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
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


Re: [X2Go-User] Long-running x2goagent, high memory usage

2020-01-17 Thread Ulrich Sibiller
On Fri, Jan 17, 2020 at 11:56 AM Johannes Töger
 wrote:
> We are using x2go for a common compute server at our department. We have 
> users both on the local LAN and connections to the other side of Europe that 
> work really well. Being able to close the client and have computations still 
> running in a GUI environment is great.
>
> However, I think we have encountered a bug. Some (but not all) of the 
> long-running x2goagent processes start taking a lot of memory, ~30 GB. This 
> adds up quickly so that the other users can’t do their work. Below you can 
> see how user3 and user7 have x2goagent processes with large memory use (RSS 
> column).
>
> How can I go about debugging this? I have quite a bit of Linux experience, 
> but I don’t know where to start on this one since I don’t know much about how 
> x2go works internally.
>
> Server is on Ubuntu Server 18.04.1 LTS, (x2goserver 
> 4.1.0.3-0~1708~ubuntu18.04.1). Clients are on Windows 10, version. 4.1.2.0.
>
> johannes@compute-server:~$ ps  -o pid,lstart,rss,user $(pgrep x2goagent)

What version of x2goagent resp. nxagent are you using? dpkg -l nx-libs?

Can you please run xrestop within such a session and check if there
are numbers that are far away from those of a fresh session?

You probably cannot answer that due to your usage scenario, but
anyway: does this also happen when you do not disconnect/reconnect?

What are you running inside the session?

You could run x2goagent with valgrind to identify memory leaks but I
am unsure if that is working on a stock installation ( I don't do the
packaging for Debian/Ubuntu so I don't know if the deliveres binaries
allow for decent analysis/output). I'll check that this weekend.

Uli
___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user


[X2Go-User] Long-running x2goagent, high memory usage

2020-01-17 Thread Johannes Töger
Hi,

We are using x2go for a common compute server at our department. We have users 
both on the local LAN and connections to the other side of Europe that work 
really well. Being able to close the client and have computations still running 
in a GUI environment is great.

However, I think we have encountered a bug. Some (but not all) of the 
long-running x2goagent processes start taking a lot of memory, ~30 GB. This 
adds up quickly so that the other users can't do their work. Below you can see 
how user3 and user7 have x2goagent processes with large memory use (RSS column).

How can I go about debugging this? I have quite a bit of Linux experience, but 
I don't know where to start on this one since I don't know much about how x2go 
works internally.

Server is on Ubuntu Server 18.04.1 LTS, (x2goserver 
4.1.0.3-0~1708~ubuntu18.04.1). Clients are on Windows 10, version. 4.1.2.0.


johannes@compute-server:~$ ps  -o pid,lstart,rss,user $(pgrep x2goagent)
  PID  STARTEDRSS   USER
4668  Fri Nov  8 08:35:35 2019   60896   user1
5743  Wed Dec  4 15:44:41 2019   249456  user2
14728  Thu Dec  5 10:17:25 2019   34926120user3
19408  Fri Dec 20 08:46:30 2019   199720  user4
48797  Wed Oct  2 15:34:44 2019   297680  user5
50693  Thu Dec 12 18:24:24 2019   317796  user6
54561  Thu Dec 19 09:35:34 2019   28977804user7
56244  Fri Jan 17 08:19:29 2020   170856  user8
60386  Thu Nov 14 09:23:37 2019   146416  user9



johannes@compute-server:~$ apt show x2goserver
Package: x2goserver
Version: 4.1.0.3-0~1708~ubuntu18.04.1


-
Johannes Töger

Associate Senior Lecturer
Cardiac MR Group
Department of Clinical Sciences Lund, Clinical Physiology
Lund University, Sweden

___
x2go-user mailing list
x2go-user@lists.x2go.org
https://lists.x2go.org/listinfo/x2go-user