TigerVNC copy&paste issue from windows 7(client) to CentOS7 (Vnc Server)

728 views
Skip to first unread message

cheng...@gmail.com

unread,
Dec 5, 2017, 12:59:58 AM12/5/17
to TigerVNC User Discussion/Support
My TigerVNC often encountered copy&paste issue.

Copy content from my vnc client (OS: windows 7) to vnc server(CentOS 7), the content lost when pasting.

However, copy from server to client always works.

I checked vncconfig, both "accept clipboard from viewers" and "send clipboard to viewers" are checked.

Sometimes the function works well but sometimes it randomly not work.

My viewer version is: vncviewer64-1.7.1.exe
server version is: TigerVNC 1.3.1

Please advice.

Pierre Ossman

unread,
Dec 6, 2017, 8:10:07 AM12/6/17
to cheng...@gmail.com, TigerVNC User Discussion/Support
We've had some bad interactions with a Qt bug that can cause these kinds
of issues. Unfortunately the workaround is only in the development
version so far.

Are you running KDE on the server?

Could you try a nightly build?

Regards
--
Pierre Ossman Software Development
Cendio AB https://cendio.com
Teknikringen 8 https://twitter.com/ThinLinc
583 30 Linköping https://facebook.com/ThinLinc
Phone: +46-13-214600 https://plus.google.com/+CendioThinLinc

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

DRC

unread,
Dec 6, 2017, 12:00:38 PM12/6/17
to tigervn...@googlegroups.com
On 12/6/17 7:10 AM, Pierre Ossman wrote:
> On 05/12/17 06:59, cheng...@gmail.com wrote:
>> My TigerVNC often encountered copy&paste issue.
>>
>> Copy content from my vnc client (OS: windows 7) to vnc server(CentOS
>> 7), the content lost when pasting.
>>
>> However, copy from server to client always works.
>>
>> I checked vncconfig, both "accept clipboard from viewers" and "send
>> clipboard to viewers" are checked.
>>
>> Sometimes the function works well but sometimes it randomly not work.
>>
>> My viewer version is: vncviewer64-1.7.1.exe
>> server version is: TigerVNC 1.3.1
>>
>> Please advice.
>>
>
> We've had some bad interactions with a Qt bug that can cause these kinds
> of issues. Unfortunately the workaround is only in the development
> version so far.
>
> Are you running KDE on the server?
>
> Could you try a nightly build?
>
> Regards

If it helps as a data point, I've received reports of exactly this same
problem (client-to-server clipboard transfer failing randomly on Windows
7 clients) from users of the TurboVNC Server/native Windows viewer, and
that server/viewer combination doesn't use any TigerVNC code. I don't
think it's a server-side issue, but I could be wrong. I've only seen
complaints about it from Windows users, and none of my testing was ever
able to reproduce it.

Phoenix Cheng

unread,
Dec 7, 2017, 4:31:15 PM12/7/17
to DRC, tigervn...@googlegroups.com
Thank you for your reply. I upgraded my TigerVNC server version to 1.8.0. However, the issue still occurs sometimes.  
$ Xvnc -version
Xvnc TigerVNC 1.8.0 - built Dec  1 2017 23:21:52



--
You received this message because you are subscribed to a topic in the Google Groups "TigerVNC User Discussion/Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tigervnc-users/86oIn29cBOo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tigervnc-users+unsubscribe@googlegroups.com.
To post to this group, send email to tigervnc-users@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tigervnc-users/288e6639-e133-de6d-b06c-eaa348d9a653%40virtualgl.org.
For more options, visit https://groups.google.com/d/optout.

Pierre Ossman

unread,
Dec 8, 2017, 8:02:24 AM12/8/17
to Phoenix Cheng, DRC, tigervn...@googlegroups.com
On 07/12/17 22:31, Phoenix Cheng wrote:
> Thank you for your reply. I upgraded my TigerVNC server version to 1.8.0.
> However, the issue still occurs sometimes.
> $ Xvnc -version
> Xvnc TigerVNC 1.8.0 - built Dec 1 2017 23:21:52
>

I'm afraid 1.8.0 does not have the workaround. You need to try one of
the nightly development builds. A link is on our homepage.

cheng...@gmail.com

unread,
Dec 8, 2017, 4:46:17 PM12/8/17
to TigerVNC User Discussion/Support
在 2017年12月8日星期五 UTC-8上午5:02:24,Pierre Ossman写道:
Would you please guide how to install a nightly build?
I used "wget http://tigervnc.bphinz.com/nightly/el6/RPMS/x86_64/tigervnc-server-1.8.80-5.20171207git7b7b1201.el6.x86_64.rpm" to get the rpm, and executed 'rpm --import "http://keys.gnupg.net/pks/lookup?op=get&search=0x327F91294582A460" ' according to the guidance. However, it reported "404 Not found". I accessed url "http://keys.gnupg.net/pks/lookup?op=get&search=0x327F91294582A460" and it also reported 404. Anything wrong?

Phoenix Cheng

unread,
Dec 8, 2017, 10:33:43 PM12/8/17
to TigerVNC User Discussion/Support
New issue occurred.  Today when I connected to my remote vnc server. It shows an error screen "Oh no! Something has gone wrong".

[phocheng]$ systemctl status vncserver@:1.service
● vncserver@:1.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
   Active: active (running) since Fri 2017-12-08 19:28:50 PST; 2min 6s ago
  Process: 14995 ExecStart=/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
  Process: 14989 ExecStartPre=/usr/bin/vncserver -kill %i (code=exited, status=2)
 Main PID: 15002 (Xvnc)
   CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
           ├─15002 /usr/bin/Xvnc :1 -auth /home/phocheng/.Xauthority -desktop xxxxxx:1 (phocheng) -fp catalogue:/etc/X11/fontpath.d -geometry 1024x768 -pn -rfbauth /home/phoch...
           ├─15023 /usr/bin/gnome-session --session=gnome-classic
           ├─15031 dbus-launch --sh-syntax --exit-with-session
           ├─15032 /bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
           ├─15105 /usr/libexec/imsettings-daemon
           ├─15109 /usr/libexec/gvfsd
           ├─15114 /usr/libexec/gvfsd-fuse /home/phocheng/.gvfs -f -o big_writes
           ├─15166 /usr/bin/ssh-agent /etc/X11/xinit/Xclients
           ├─15171 /usr/libexec/at-spi-bus-launcher
           ├─15176 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
           ├─15179 /usr/libexec/at-spi2-registryd --use-gnome-session
           ├─15210 /usr/libexec/gnome-settings-daemon
           ├─15218 /usr/bin/gnome-keyring-daemon --start --components=gpg
           ├─15227 /usr/bin/pulseaudio --start --log-target=syslog
           ├─15267 /usr/libexec/gsd-printer
           ├─15454 /usr/libexec/gnome-session-failed --allow-logout
           ├─15456 nautilus --no-default-window --force-desktop
           ├─15463 /usr/libexec/gvfs-udisks2-volume-monitor
           ├─15468 /usr/libexec/gvfs-mtp-volume-monitor
           ├─15473 /usr/libexec/gvfs-goa-volume-monitor
           ├─15477 /usr/libexec/goa-daemon
           ├─15484 /usr/libexec/goa-identity-service
           ├─15491 /usr/libexec/mission-control-5
           ├─15498 /usr/libexec/gvfs-gphoto2-volume-monitor
           ├─15503 /usr/libexec/gvfs-afc-volume-monitor
           ├─15511 /usr/libexec/tracker-miner-user-guides
           ├─15514 /usr/bin/gnome-software --gapplication-service
           ├─15517 /usr/bin/seapplet
           ├─15519 /usr/libexec/tracker-store
           ├─15535 abrt-applet
           ├─15541 /usr/libexec/tracker-extract
           ├─15544 /usr/libexec/tracker-miner-apps
           ├─15545 /usr/libexec/tracker-miner-fs
           ├─15611 /usr/libexec/gvfsd-trash --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
           ├─15648 /usr/libexec/dconf-service
           ├─15664 /usr/libexec/gvfsd-metadata
           └─15680 /usr/libexec/gvfsd-burn --spawner :1.4 /org/gtk/gvfs/exec_spaw/1


--
You received this message because you are subscribed to a topic in the Google Groups "TigerVNC User Discussion/Support" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tigervnc-users/86oIn29cBOo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tigervnc-users+unsubscribe@googlegroups.com.
To post to this group, send email to tigervnc-users@googlegroups.com.

Pierre Ossman

unread,
Dec 11, 2017, 9:46:47 AM12/11/17
to Phoenix Cheng, TigerVNC User Discussion/Support
On 09/12/17 04:33, Phoenix Cheng wrote:
> New issue occurred. Today when I connected to my remote vnc server. It
> shows an error screen "Oh no! Something has gone wrong".
>

That is GNOME's error screen. The most common reason for that is broken
OpenGL drivers. Have you recently installed NVIDIA's drivers perhaps?

Phoenix Cheng

unread,
Dec 11, 2017, 12:46:59 PM12/11/17
to Pierre Ossman, TigerVNC User Discussion/Support
I did not update any driver or any software. And, I could login to that PC and see GNOME desktop normally, which means, the PC itself is good. 

But, if I access it via TigerVnc, it shows this error screen.
Inline image 1

This is the content of my ~/.vnc/xstartup.
#!/bin/sh

unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
exec /etc/X11/xinit/xinitrc

This is the status of vnc service
systemctl status vncserver@:1.service -l
● vncserver@:1.service - Remote desktop service (VNC)
   Loaded: loaded (/usr/lib/systemd/system/vncserver@:1.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2017-12-11 09:08:28 PST; 17min ago
  Process: 1539 ExecStart=/usr/bin/vncserver %i (code=exited, status=0/SUCCESS)
  Process: 1504 ExecStartPre=/usr/bin/vncserver -kill %i (code=exited, status=2)
 Main PID: 1622 (Xvnc)
   CGroup: /system.slice/system-vncserver.slice/vncserver@:1.service
           ├─1622 /usr/bin/Xvnc :1 -auth /home/phocheng/.Xauthority -desktop mydesktop:1 (phocheng) -fp catalogue:/etc/X11/fontpath.d -geometry 1024x768 -pn -rfbauth /home/phocheng/.vnc/passwd -rfbport 5901 -rfbwait 30000
           ├─2907 /usr/bin/gnome-session --session=gnome-classic
           ├─2922 dbus-launch --sh-syntax --exit-with-session
           ├─2923 /bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
           ├─2995 /usr/libexec/imsettings-daemon
           ├─2999 /usr/libexec/gvfsd
           ├─3004 /usr/libexec/gvfsd-fuse /home/phocheng/.gvfs -f -o big_writes
           ├─3059 /usr/bin/ssh-agent /etc/X11/xinit/Xclients
           ├─3064 /usr/libexec/at-spi-bus-launcher
           ├─3069 /bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
           ├─3072 /usr/libexec/at-spi2-registryd --use-gnome-session
           ├─3103 /usr/libexec/gnome-settings-daemon
           ├─3113 /usr/bin/gnome-keyring-daemon --start --components=gpg
           ├─3123 /usr/bin/pulseaudio --start --log-target=syslog
           ├─3216 /usr/libexec/gsd-printer
           ├─3431 /usr/libexec/gnome-session-failed --allow-logout
           ├─3432 nautilus --no-default-window --force-desktop
           ├─3452 /usr/libexec/gvfs-udisks2-volume-monitor
           ├─3463 /usr/libexec/gvfs-mtp-volume-monitor
           ├─3468 /usr/libexec/gvfs-goa-volume-monitor
           ├─3472 /usr/libexec/goa-daemon
           ├─3497 /usr/libexec/goa-identity-service
           ├─3506 /usr/libexec/mission-control-5
           ├─3513 /usr/libexec/gvfs-gphoto2-volume-monitor
           ├─3519 /usr/libexec/gvfs-afc-volume-monitor
           ├─3528 /usr/libexec/tracker-miner-user-guides
           ├─3532 /usr/bin/gnome-software --gapplication-service
           ├─3534 /usr/bin/seapplet
           ├─3539 /usr/libexec/tracker-store
           ├─3550 abrt-applet
           ├─3553 /usr/libexec/tracker-extract
           ├─3561 /usr/libexec/tracker-miner-apps
           ├─3571 /usr/libexec/tracker-miner-fs
           ├─3688 /usr/libexec/dconf-service
           ├─3691 /usr/libexec/gvfsd-trash --spawner :1.4 /org/gtk/gvfs/exec_spaw/0
           ├─3754 /usr/libexec/gvfsd-metadata
           └─3843 /usr/libexec/gvfsd-burn --spawner :1.4 /org/gtk/gvfs/exec_spaw/1

Dec 11 09:08:33 mydesktop gnome-session[2907]: Failed to play sound: File or data not found
Dec 11 09:08:33 mydesktop  gnome-session[2907]: (nautilus:3432): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -15 and height 34
Dec 11 09:08:33 mydesktop  gnome-session[2907]: ** (nautilus:3432): WARNING **: Can not get _NET_WORKAREA
Dec 11 09:08:33 mydesktop  gnome-session[2907]: ** (nautilus:3432): WARNING **: Can not get _NET_WORKAREA
Dec 11 09:08:33 mydesktop  gnome-session[2907]: (org.gnome.Software:3532): PackageKit-WARNING **: failed to set proxy: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_5fengine_5ferror.Code3: failed to obtain auth
Dec 11 09:08:33 mydesktop  gnome-session[2907]: (org.gnome.Software:3532): Gs-WARNING **: failed to set proxies: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._pk_5fengine_5ferror.Code3: failed to obtain auth
Dec 11 09:08:33 mydesktop  gnome-session[2907]: (tracker-extract:3553): Tracker-WARNING **: Call to gst_discoverer_discover_uri() failed: Resource not found.
Dec 11 09:08:33 mydesktop  gnome-session[2907]: (tracker-extract:3553): Tracker-WARNING **: Task for 'file:///home/phocheng/Downloads/ideaIU-2017.3/idea-IU-173.3727.127/plugins/android/lib/templates/activities/MasterDetailFlow/template_master_detail.png' finished with error: Could not get any metadata for uri:'file:///home/phocheng/Downloads/ideaIU-2017.3/idea-IU-173.3727.127/plugins/android/lib/templates/activities/MasterDetailFlow/template_master_detail.png' and mime:'image/png'
Dec 11 09:08:48 mydesktop  gnome-session[2907]: (gnome-settings-daemon:3103): media-keys-plugin-WARNING **: Unable to get default sink
Dec 11 09:08:54 mydesktop  pulseaudio[3123]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

I could ssh to this PC successfully. Therefore, it should not be network connection issue as well.

Pierre Ossman

unread,
Dec 12, 2017, 8:49:13 AM12/12/17
to Phoenix Cheng, TigerVNC User Discussion/Support
On 11/12/17 18:46, Phoenix Cheng wrote:
> I did not update any driver or any software. And, I could login to that PC
> and see GNOME desktop normally, which means, the PC itself is good.
>

Did GNOME 3 work previously in TigerVNC?

And if so, what change caused it to stop working?

Phoenix Cheng

unread,
Dec 14, 2017, 4:54:40 PM12/14/17
to Pierre Ossman, TigerVNC User Discussion/Support
Yes, it worked previously in TigerVNC. I uninstalled TigerVNC 1.8.0 and tried to install nightly build but failed. Then I re-installed 1.8.0 by yum install and I found it could not access the remote server any more. 

Brian Hinz

unread,
Dec 14, 2017, 5:07:11 PM12/14/17
to Phoenix Cheng, Pierre Ossman, TigerVNC User Discussion/Support
On Thu, Dec 14, 2017 at 4:54 PM, Phoenix Cheng wrote:
Yes, it worked previously in TigerVNC. I uninstalled TigerVNC 1.8.0 and tried to install nightly build but failed. Then I re-installed 1.8.0 by yum install and I found it could not access the remote server any more. 

What do you mean by "tried to install nightly build but failed"?  Failed how?

-brian
Reply all
Reply to author
Forward
0 new messages