Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
TightVnc server exits shortly after connection established
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
pgb205
n00b
n00b


Joined: 28 Jul 2008
Posts: 60

PostPosted: Sat Oct 31, 2015 4:49 am    Post subject: TightVnc server exits shortly after connection established Reply with quote

followed https://wiki.gentoo.org/wiki/TightVNC and
http://gentoovps.net/vnc-server-on-gentoo/
to setup tightvnc on my gentoo server.

Attempting to access
from Windows with tightvnc client produces good result but after a few clicks inside the remote window I
get "connection has been gracefully closed"

On the gentoo server in logs I see
~/.vnc/hostname2.log
31/10/15 00:45:32 Got connection from client
31/10/15 00:45:32 Using protocol version 3.8
31/10/15 00:45:32 Enabling TightVNC protocol extensions
31/10/15 00:45:38 Full-control authentication passed
31/10/15 00:45:38 Using tight encoding for client
31/10/15 00:45:38 rfbProcessClientNormalMessage: ignoring unknown encoding 16
31/10/15 00:45:38 rfbProcessClientNormalMessage: ignoring unknown encoding -223
31/10/15 00:45:38 Enabling LastRect protocol extension for client
31/10/15 00:45:38 Using compression level 0 for client
31/10/15 00:45:38 Pixel format for client:
31/10/15 00:45:38 8 bpp, depth 8
31/10/15 00:45:38 true colour: max r 7 g 7 b 3, shift r 0 g 3 b 6
31/10/15 00:45:38 KbdAddEvent: unknown KeySym 0xff8d - allocating KeyCode 89
*** Error in `Xvnc': free(): invalid pointer: 0x0000000000a54268 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x710bf)[0x7f63fe2ce0bf]
/lib64/libc.so.6(+0x7651e)[0x7f63fe2d351e]
/lib64/libc.so.6(+0x77246)[0x7f63fe2d4246]
Xvnc(miSetShape+0x9d)[0x53ac4d]
Xvnc[0x53beb0]
Xvnc[0x53c1b4]
Xvnc(Dispatch+0x1ab)[0x4361eb]
Xvnc(main+0x56d)[0x41d53d]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x7f63fe27d855]
Xvnc(_start+0x29)[0x41da69]
======= Memory map: ========
00400000-00577000 r-xp 00000000 08:03 12725634 /usr/bin/Xvnc
00776000-00777000 r--p 00176000 08:03 12725634 /usr/bin/Xvnc
00777000-0078a000 rw-p 00177000 08:03 12725634 /usr/bin/Xvnc
0078a000-007ad000 rw-p 00000000 00:00 0
00a3c000-00b85000 rw-p 00000000 00:00 0 [heap]
7f63fd5b9000-7f63fd5cf000 r-xp 00000000 08:03 12723537 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1
7f63fd5cf000-7f63fd7ce000 ---p 00016000 08:03 12723537 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1
7f63fd7ce000-7f63fd7cf000 r--p 00015000 08:03 12723537 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1
7f63fd7cf000-7f63fd7d0000 rw-p 00016000 08:03 12723537 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libgcc_s.so.1
7f63fd7ee000-7f63fd851000 rw-p 00000000 00:00 0
7f63fd851000-7f63fd85c000 r-xp 00000000 08:03 13538984 /lib64/libnss_files-2.21.so
7f63fd85c000-7f63fda5b000 ---p 0000b000 08:03 13538984 /lib64/libnss_files-2.21.so
7f63fda5b000-7f63fda5c000 r--p 0000a000 08:03 13538984 /lib64/libnss_files-2.21.so
7f63fda5c000-7f63fda5d000 rw-p 0000b000 08:03 13538984 /lib64/libnss_files-2.21.so
7f63fda5d000-7f63fda67000 r-xp 00000000 08:03 13538987 /lib64/libnss_nis-2.21.so
7f63fda67000-7f63fdc66000 ---p 0000a000 08:03 13538987 /lib64/libnss_nis-2.21.so
7f63fdc66000-7f63fdc67000 r--p 00009000 08:03 13538987 /lib64/libnss_nis-2.21.so
7f63fdc67000-7f63fdc68000 rw-p 0000a000 08:03 13538987 /lib64/libnss_nis-2.21.so
7f63fdc68000-7f63fdc7c000 r-xp 00000000 08:03 13538990 /lib64/libnsl-2.21.so
7f63fdc7c000-7f63fde7c000 ---p 00014000 08:03 13538990 /lib64/libnsl-2.21.so
7f63fde7c000-7f63fde7d000 r--p 00014000 08:03 13538990 /lib64/libnsl-2.21.so
7f63fde7d000-7f63fde7e000 rw-p 00015000 08:03 13538990 /lib64/libnsl-2.21.so
7f63fde7e000-7f63fde80000 rw-p 00000000 00:00 0
7f63fde80000-7f63fde87000 r-xp 00000000 08:03 13538999 /lib64/libnss_compat-2.21.so
7f63fde87000-7f63fe086000 ---p 00007000 08:03 13538999 /lib64/libnss_compat-2.21.so
7f63fe086000-7f63fe087000 r--p 00006000 08:03 13538999 /lib64/libnss_compat-2.21.so
7f63fe087000-7f63fe088000 rw-p 00007000 08:03 13538999 /lib64/libnss_compat-2.21.so
7f63fe088000-7f63fe25d000 rw-p 00000000 00:00 0
7f63fe25d000-7f63fe3eb000 r-xp 00000000 08:03 13538995 /lib64/libc-2.21.so
7f63fe3eb000-7f63fe5ea000 ---p 0018e000 08:03 13538995 /lib64/libc-2.21.so
7f63fe5ea000-7f63fe5ee000 r--p 0018d000 08:03 13538995 /lib64/libc-2.21.so
7f63fde7e000-7f63fde80000 rw-p 00000000 00:00 0
7f63fde80000-7f63fde87000 r-xp 00000000 08:03 13538999 /lib64/libnss_compat-2.21.so
7f63fde87000-7f63fe086000 ---p 00007000 08:03 13538999 /lib64/libnss_compat-2.21.so
7f63fe086000-7f63fe087000 r--p 00006000 08:03 13538999 /lib64/libnss_compat-2.21.so
7f63fe087000-7f63fe088000 rw-p 00007000 08:03 13538999 /lib64/libnss_compat-2.21.so
7f63fe088000-7f63fe25d000 rw-p 00000000 00:00 0
7f63fe25d000-7f63fe3eb000 r-xp 00000000 08:03 13538995 /lib64/libc-2.21.so
7f63fe3eb000-7f63fe5ea000 ---p 0018e000 08:03 13538995 /lib64/libc-2.21.so
7f63fe5ea000-7f63fe5ee000 r--p 0018d000 08:03 13538995 /lib64/libc-2.21.so
7f63fe5ee000-7f63fe5f0000 rw-p 00191000 08:03 13538995 /lib64/libc-2.21.so
7f63fe5f0000-7f63fe5f4000 rw-p 00000000 00:00 0
7f63fe5f4000-7f63fe638000 r-xp 00000000 08:03 14585253 /usr/lib64/libjpeg.so.62.1.0
7f63fe638000-7f63fe837000 ---p 00044000 08:03 14585253 /usr/lib64/libjpeg.so.62.1.0
7f63fe837000-7f63fe838000 r--p 00043000 08:03 14585253 /usr/lib64/libjpeg.so.62.1.0
7f63fe838000-7f63fe839000 rw-p 00044000 08:03 14585253 /usr/lib64/libjpeg.so.62.1.0
7f63fe839000-7f63fe849000 rw-p 00000000 00:00 0
7f63fe849000-7f63fe949000 r-xp 00000000 08:03 13538682 /lib64/libm-2.21.so
7f63fe949000-7f63feb48000 ---p 00100000 08:03 13538682 /lib64/libm-2.21.so
7f63feb48000-7f63feb49000 r--p 000ff000 08:03 13538682 /lib64/libm-2.21.so
7f63feb49000-7f63feb4a000 rw-p 00100000 08:03 13538682 /lib64/libm-2.21.so
7f63feb4a000-7f63feb5f000 r-xp 00000000 08:03 14453199 /lib64/libz.so.1.2.8
7f63feb5f000-7f63fed5e000 ---p 00015000 08:03 14453199 /lib64/libz.so.1.2.8
7f63fed5e000-7f63fed5f000 r--p 00014000 08:03 14453199 /lib64/libz.so.1.2.8
7f63fed5f000-7f63fed60000 rw-p 00015000 08:03 14453199 /lib64/libz.so.1.2.8
7f63fed60000-7f63fed69000 r-xp 00000000 08:03 14187833 /lib64/libwrap.so.0.7.6
7f63fed69000-7f63fef68000 ---p 00009000 08:03 14187833 /lib64/libwrap.so.0.7.6
7f63fef68000-7f63fef69000 r--p 00008000 08:03 14187833 /lib64/libwrap.so.0.7.6
7f63fef69000-7f63fef6a000 rw-p 00009000 08:03 14187833 /lib64/libwrap.so.0.7.6
7f63fef6a000-7f63fef8b000 r-xp 00000000 08:03 13539001 /lib64/ld-2.21.so
7f63fef92000-7f63ff16b000 rw-p 00000000 00:00 0
7f63ff188000-7f63ff18a000 rw-p 00000000 00:00 0
7f63ff18a000-7f63ff18b000 r--p 00020000 08:03 13539001 /lib64/ld-2.21.so
7f63ff18b000-7f63ff18c000 rw-p 00021000 08:03 13539001 /lib64/ld-2.21.so
7f63ff18c000-7f63ff18d000 rw-p 00000000 00:00 0
7ffcb36dd000-7ffcb36fe000 rw-p 00000000 00:00 0 [stack]
7ffcb378c000-7ffcb378e000 r--p 00000000 00:00 0 [vvar]
7ffcb378e000-7ffcb3790000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]


setting DISPLAYS in /etc/conf.d/vnc to a new value will get connection working until next reboot when the above situation repeats: initially connection appears to be
working but disconnects after a few clicks.
Back to top
View user's profile Send private message
pgb205
n00b
n00b


Joined: 28 Jul 2008
Posts: 60

PostPosted: Sat Oct 31, 2015 9:39 pm    Post subject: Reply with quote

any idea from the above as to why tight vnc server crashes?
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sat Oct 31, 2015 10:15 pm    Post subject: Reply with quote

Hi,

with X11vnc, the service start normally, I can connect from a remote client in my wireless local network. It work, but when I close the desktop session, Xorg restart before my display manager appear. The restart of Xorg make the X11vnc service stop to work. I cannot connect from a remote client until I restart X11vnc service.

Edit: I just come to use the -loop option of X11vnc. I can reconnect without restarting X11vnc after I have been disconntected as a Vnc client after I logout from the desktop session.
_________________
Paul
Back to top
View user's profile Send private message
pgb205
n00b
n00b


Joined: 28 Jul 2008
Posts: 60

PostPosted: Sun Nov 01, 2015 2:19 am    Post subject: Reply with quote

Logicien wrote:
Hi,

with X11vnc, the service start normally, I can connect from a remote client in my wireless local network. It work, but when I close the desktop session, Xorg restart before my display manager appear. The restart of Xorg make the X11vnc service stop to work. I cannot connect from a remote client until I restart X11vnc service.

Edit: I just come to use the -loop option of X11vnc. I can reconnect without restarting X11vnc after I have been disconntected as a Vnc client after I logout from the desktop session.


so where do you set this -loop option?
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Sun Nov 01, 2015 12:11 pm    Post subject: Reply with quote

I use Systemd so I have copied /usr/lib/systemd/system/x11vnc.service to /etc/systemd/system/ and edit /etc/systemd/system/x11vnc.service who look like this
Code:
[Unit]
Description=VNC Server for X11
Requires=graphical.target
After=graphical.target

[Service]
ExecStart=/usr/bin/x11vnc -auth /var/run/lxdm/lxdm-:0.auth -display :0 -listen xxx.xxx.x.x -logfile /var/log/x11vnc.log -loop -many -ncache 10 -ncache_cr -nopw -noxdamage -noxrandr -repeat -xkb

[Install]
WantedBy=graphical.target

_________________
Paul
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum