-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Xvnc backend disconnects when some data copied to clipboard #755
Comments
It seems that if anything tries to update the primary or clipboard selection (eg i experimented by running xclip within the RDP client) then it breaks the connection with the above error. the output when
|
same happening to me on archlinux since tigervnc 1.8.0 update |
For me it doesn't matter if it's 1.3.1 (distributed with CentOS), 1.7.1 (built myself) or 1.8.0, the same problem happens with all. |
I confirmed the issue. |
CentOS 7.3 TigerVNC 1.3.1, 1.8.0 shows |
I added some debug codes and traced the cause of /*****************************************************************************/
int
server_send_to_channel(struct xrdp_mod *mod, int channel_id,
char *data, int data_len,
int total_data_len, int flags)
{
struct xrdp_wm *wm;
wm = (struct xrdp_wm *)(mod->wm);
if (is_channel_allowed(wm, channel_id))
{
if (wm->mm->usechansrv)
{
return 1; // reaches here
|
@metalefty could you please have a look at issue #739 when you are free |
You shouldn't talk about unrelated issue. |
I have this same issue connecting to xrdp running on Arch. The connection is closed whenever I select text, which presumably invokes the clipboard. On the client side, I'm using XFreeRDP and see a ERRINFO_LOGOFF_BY_USER error. |
Occurs on F24, downgrade to xrdp-0.9.0 does not fix. |
Event xrdp-0.6.1-8.fc22.x86_64.rpm appears to break on F24 when double-clicking on text. Is something in Xorg broken? |
I don't think Xorg is broken. I assume the issue is between VNC server and xrdp VNC client. |
Downgraded tigervnc-server to tigervnc-1.6.0-6, with xrdp 0.6.1: Upgraded xrdp to -0.9.2-12, tigervnc-1.6.0-6: |
Just to let you know, this also happens when I highlight text in LXDE (before even pressing ctrl+c) in fedora 25. Is there any way at all to disable something to make it remain stable? the last line I get in the logs before it disconnects is: [DEBUG] VNC got clip data |
@SuperDaveAU You can try disabling clipboard sync. |
@lnicola - I have tried this and the issue persists. Do you know if we have come across anything that resembles a fix or work around? |
Oh, almost forgot. I am also going through a Windows 2012 R2 RDP gateway to get to my fedora server running xrdp. |
if you own the server, the easiest workaround is probably to use a different backend, like the Xorg one, which in my experience is about the same performance, if not slightly faster. otherwise what happens if you disable the clipboard sync using vncconfig? |
Right, I've got a work around. Use Xorg instead of VNC. Firstly in your /etc/xrdp/xrdp.ini file ensure you have the following:
then within your user directory (the user you will be logging in as), ensure you have a .Xinitrc file with the following:
within that file uncomment the desktop environment you are using. lastly add a new file, /etc/X11/Xwrapper.config with the following single line in it:
Once you've saved this file reboot and then try and RDP to the server. You should now be back up and working. |
@facboy - Sadly I've now changed my setup as I needed the clipboard to work so I can't test this. |
It feels slower for me, possibly not related to neutrinolabs/xorgxrdp#87. |
that almost works; I have to set ~/.Xresources
|
I found Fedora guys also see the issue and they found a workaround to avoid disconnection. It is documented in README.Fedora. Can you try this workaround? Of course, this is just a workaround. We need fix the issue. |
I found that #141 is as same as this. Very long living bug. |
@facboy @nouman8 @daniel-klein @memnochproxy @SuperDaveAU Hi everyone, let me know what your client is. I know some of you're using FreeRDP. I looked into this issue, I understand the more clear condition. The problem occurs because of xrdp doesn't handle clipboard channels correctly when client doesn't enable clipboard sharing. I'm going to fix it. Please confirm if disconnection occurs or not depending on Thank you. |
Hi everyone, for me the error occurs using the Windows 8 rdp client (Server is arch linux with aur/xrdp 0.9.2-1 and community/tigervnc 1.8.0-2) |
If disconnection occurs with Windows client, maybe it is another scenario. |
Yes I do see that log message. And client side disabling of clipboard data (in Window rdp client settings) doesn't help, it is only fixed when I prevent clipboard handling on the server side.. |
OK, I'll push a fix soon. The point of the issue (disconnection after |
This caused disconnection when client connecting without cliprdr channel because VNC module tries to send data to a non-existent channel (channel_id = -1). Should fix neutrinolabs#755.
Everyone, can you try #789? |
Please note #789 fixes not all vnc-clipboard disconnection. Client: FreeRDP 1.1.0 beta1 Before #789,
After #789,
|
My approach #789 was wrong. I'm making another fix. It is at least working fine for me. |
Might not be able to get to it right away as I'm a bit tied up with other things at the moment. |
Automatically, closed by b83b551 but need more tests by reporters. Reopening. |
#799 fixed it for me, thanks a lot! |
Thank you for your testing. One more user reports that this issue seems to be fixed, I'll close this issue. |
I still get the crashes (very soon after the connect) with commit 8c74fcb
Edit: |
I was getting this same issue, and switched to using Xorg instead, as @SuperDaveAU suggested above. However, I can only get the clipboard to work for 1 login after a reboot of the Fedora 26 host. I don't have access to github from the PC running xrdp, so the update from there is not an option at the moment. And, vnc still disconnects with similar errors as @angerrit mentions above, only I don't even have to do a copy, all I have to do is select text with my mouse and it dies. |
#799 has also fixed this error for me. Server: Fedora 26, tigervnc I just used the Fedora 26 source RPM for xrdp-0.9.2 and copied the git source on top of it and (with minor spec file changes) built a new RPM. Works perfectly. Thank you. |
It works properly thanks so much mrmadcow! |
This issue, though fixed, is still quite common and problematic, due to the fact that Ubuntu 16.04 uses xrdp 0.6.1. There appear to be a number of unofficial fixes for Ubuntu 16.04 - the easiest one I found was to use this patched version: By adding this repo:
You'll get a build of xrdp 9.4 on ubuntu 16.04, which includes the fix for this issue. |
Thanks for the note. |
I'm trying to use xrdp with Xvnc on CentOS 7.3, I've managed to get to the point where the VNC server is started and I briefly see the desktop before the RDP client is abruptly closed. Checking on the server I can see that Xvnc is still running, and I can connect to it successfully with vncviewer.
It seems like xrdp gets clipboard data from Xvnc that it can't decode for some reason and then bombs out:
I'm using xrdp 0.9.2-5.el7 from EPEL, with TigerVNC 1.8.0 (which was released a few days ago), but I get the same problem with tigervnc-server-1.3.1-9.el7.
The text was updated successfully, but these errors were encountered: