pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/53480: x11vnc problem on NetBSD virtual machine



>Number:         53480
>Category:       pkg
>Synopsis:       x11vnc problem on NetBSD virtual machine
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 29 16:50:00 +0000 2018
>Originator:     Per Gunnarsson
>Release:        8.0 pkgsrc downloaded with installer
>Organization:
Buffalo & Rye Consulting
>Environment:
NetBSD nettan 8.0 NetBSD 8.0 (GENERIC) #0: Tue Jul 17 14:59:51 UTC 2018  mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
Maybe I am blaming the wrong program now. My apologies if so.

I try to connect with NetBSD on a Debian testing KVM  through Xfvb and TigerVNC viewer. I get 

CConn:       invalid pixel format

I try with RealVNC viewer. I get

String exceeds maximum length

X11vnc output from TigervNC connection:

29/07/2018 18:36:11 passing arg to libvncserver: -rfbport
29/07/2018 18:36:11 passing arg to libvncserver: 5905
29/07/2018 18:36:11 -usepw: found /home/per/.vnc/passwd

Settings:
 display:    :1
 authfile:   /home/per/tomte
 subwin:     0x0
 -sid mode:  0
 clip:       null
 flashcmap:  0
 shiftcmap:  0
 force_idx:  0
 cmap8to24:  0
 8to24_opts: null
 24to32:     0
 visual:     null
 overlay:    0
 ovl_cursor: 1
 scaling:    0 1.0000 1.0000
 viewonly:   0
 shared:     0
 conn_once:  1
 timeout:    0
 ping:       0
 inetd:      0
 tightfilexfer:   0
 http:       0
 connect:    null
 connectfile null
 vnc_conn:   1
 allow:      null
 input:      null
 passfile:   null
 unixpw:     0
 unixpw_lst: null
 ssl:        null
 ssldir:     null
 ssltimeout  -1
 sslverify:  null
 stunnel:    0
 accept:     null
 accept:     null
 gone:       null
 users:      null
 using_shm:  1
 flipbytes:  0
 onetile:    0
 solid:      null
 blackout:   null
 xinerama:   1
 xtrap:      0
 xrandr:     0
 xrandrmode: null
 padgeom:    null
 logfile:    null
 logappend:  0
 flag:       null
 rm_flag:    null
 rc_file:    ""
 norc:       0
 dbg:        0
 bg:         0
 mod_tweak:  1
 isolevel3:  0
 xkb:        1
 skipkeys:   null
 sloppykeys: 0
 skip_dups:  0
 addkeysyms: 1
 xkbcompat:  0
 clearmods:  0
 remap:      null
 norepeat:   1
 norepeatcnt:2
 nofb:       0
 watchbell:  1
 watchsel:   1
 watchprim:  1
 seldir:     null
 cursor:     1
 multicurs:  0
 curs_mode:  null
 arrow:      1
 xfixes:     0
 alphacut:   240
 alphafrac:  0.33
 alpharemove:0
 alphablend: 1
 cursorshape:1
 cursorpos:  1
 xwarpptr:   0
 alwaysinj:  0
 buttonmap:  null
 dragging:   1
 ncache:     0
 wireframe:  0xff,2,0,32+8+8+8,all,0.15+0.30+5.0+0.125
 wirecopy:   always
 scrollcopy: always
  scr_area:  60000
  scr_skip:  ##Soffice.bin,##StarOffice,##OpenOffice
  scr_inc:   ##Nomatch
  scr_keys:  null
  scr_term:  null
  scr_keyrep: null
  scr_parms: 0+64+32+32,0.02+0.10+0.9,0.03+0.06+0.5+0.1+5.0
 fixscreen:  null
 noxrecord:  1
 grabbuster: 0
 ptr_mode:   2
 inputskip:  10
 speeds:     null
 wmdt:       null
 debug_ptr:  0
 debug_key:  0
 defer:      20
 waitms:     20
 wait_ui:    2.00
 nowait_bog: 0
 slow_fb:    0.00
 xrefresh:   0.00
 readtimeout: 20
 take_naps:  1
 sb:         60
 fbpm:       1
 dpms:       1
 xdamage:    0
  xd_area:   20000
  xd_mem:    1.000
 sigpipe:    null
 threads:    0
 fs_frac:    0.75
 gaps_fill:  4
 grow_fill:  3
 tile_fuzz:  2
 snapfb:     0
 rawfb:      null
 pipeinput:  null
 gui:        0
 gui_mode:   null
 noremote:   0
 unsafe:     0
 privremote: 0
 safer:      0
 nocmds:     0
 deny_all:   0
 pid:        12653

29/07/2018 18:36:11 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 12653
29/07/2018 18:36:11 Using X display :1
29/07/2018 18:36:11 rootwin: 0x16c reswin: 0x600001 dpy: 0x4a339000
29/07/2018 18:36:11 
29/07/2018 18:36:11 ------------------ USEFUL INFORMATION ------------------
29/07/2018 18:36:11 
29/07/2018 18:36:11 Wireframing: -wireframe mode is in effect for window moves.
29/07/2018 18:36:11   If this yields undesired behavior (poor response, painting
29/07/2018 18:36:11   errors, etc) it may be disabled:
29/07/2018 18:36:11    - use '-nowf' to disable wireframing completely.
29/07/2018 18:36:11    - use '-nowcr' to disable the Copy Rectangle after the
29/07/2018 18:36:11      moved window is released in the new position.
29/07/2018 18:36:11   Also see the -help entry for tuning parameters.
29/07/2018 18:36:11   You can press 3 Alt_L's (Left "Alt" key) in a row to 
29/07/2018 18:36:11   repaint the screen, also see the -fixscreen option for
29/07/2018 18:36:11   periodic repaints.
29/07/2018 18:36:11 GrabServer control via XTEST.
29/07/2018 18:36:11 
29/07/2018 18:36:11 Scroll Detection: -scrollcopyrect mode is in effect to
29/07/2018 18:36:11   use RECORD extension to try to detect scrolling windows
29/07/2018 18:36:11   (induced by either user keystroke or mouse input).
29/07/2018 18:36:11   If this yields undesired behavior (poor response, painting
29/07/2018 18:36:11   errors, etc) it may be disabled via: '-noscr'
29/07/2018 18:36:11   Also see the -help entry for tuning parameters.
29/07/2018 18:36:11   You can press 3 Alt_L's (Left "Alt" key) in a row to 
29/07/2018 18:36:11   repaint the screen, also see the -fixscreen option for
29/07/2018 18:36:11   periodic repaints.
29/07/2018 18:36:11 X FBPM extension not supported.
29/07/2018 18:36:11 X display is not capable of DPMS.
29/07/2018 18:36:11 --------------------------------------------------------
29/07/2018 18:36:11 
29/07/2018 18:36:11 Default visual ID: 0x21
29/07/2018 18:36:11 Read initial data from X display into framebuffer.
29/07/2018 18:36:11 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/4096
29/07/2018 18:36:11 
29/07/2018 18:36:11 X display :1 is 32bpp depth=24 true color

FrameBuffer Info:
 width:            1024
 height:           768
 scaled_width:     1024
 scaled_height:    768
 indexed_color:    0
 bits_per_pixel:   32
 depth:            24
 red_mask:   0x00ff0000  00000000111111110000000000000000
 green_mask: 0x0000ff00  00000000000000001111111100000000
 blue_mask:  0x000000ff  00000000000000000000000011111111
 red:   max: 255  shift: 16
 green: max: 255  shift:  8
 blue:  max: 255  shift:  0
 mainfb_bytes_per_line: 4096
 rfb_fb_bytes_per_line: 4096
 rot_fb_bytes_per_line: 0
 raw_fb_bytes_per_line: 0
 format:     ZPixmap
 byte_order: LSBFirst
 bitmap_pad:  32
 bitmap_unit: 32
 bitmap_bit_order: LSBFirst
 rfb_fb:      0x7ecf41b00000
 main_fb:     0x7ecf41b00000
 8to24_fb:    0x0
 rot_fb:      0x0
 snap_fb:     0x0
 raw_fb:      0x0
 fake_fb:     0x0

29/07/2018 18:36:11 setting up 32 cursors...
29/07/2018 18:36:11   done.
29/07/2018 18:36:11 
29/07/2018 18:36:11 Listening for VNC connections on TCP port 5905
29/07/2018 18:36:11 Listening for VNC connections on TCP6 port 5900
29/07/2018 18:36:11 Listening also on IPv6 port 5905 (socket 8)
29/07/2018 18:36:11 
29/07/2018 18:36:11 Xinerama is present and active (e.g. multi-head).
29/07/2018 18:36:11 Xinerama: number of sub-screens: 1
29/07/2018 18:36:11 Xinerama: no blackouts needed (only one sub-screen)
29/07/2018 18:36:11 
29/07/2018 18:36:11 created 32 tile_row shm polling images.
29/07/2018 18:36:11 fb read rate: 480 MB/sec
29/07/2018 18:36:11 fast read: reset -wait  ms to: 10
29/07/2018 18:36:11 fast read: reset -defer ms to: 10
29/07/2018 18:36:11 The X server says there are 10 mouse buttons.
29/07/2018 18:36:11 screen setup finished.
29/07/2018 18:36:11 

The VNC desktop is:      nettan:5
PORT=5905

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

29/07/2018 18:36:21 Got connection from client 192.168.122.1
29/07/2018 18:36:21   other clients:
29/07/2018 18:36:21 Normal socket connection
29/07/2018 18:36:21 Disabled X server key autorepeat.
29/07/2018 18:36:21   to force back on run: 'xset r on' (3 times)
29/07/2018 18:36:21 incr accepted_client=1 for 192.168.122.1:44906  sock=9
29/07/2018 18:36:21 Client Protocol Version 3.8
29/07/2018 18:36:21 Protocol version sent 3.8, using 3.8
29/07/2018 18:36:21 rfbProcessClientSecurityType: executing handler for type 2
29/07/2018 18:36:26 rfbProcessClientNormalMessage: read: Connection reset by peer
29/07/2018 18:36:26 client_count: 0
29/07/2018 18:36:26 Restored X server key autorepeat to: 1
29/07/2018 18:36:26 viewer exited.
29/07/2018 18:36:26 deleted 32 tile_row polling images.

x11vnc output from connection with realvnc:

29/07/2018 18:41:27 passing arg to libvncserver: -rfbport
29/07/2018 18:41:27 passing arg to libvncserver: 5905
29/07/2018 18:41:27 -usepw: found /home/per/.vnc/passwd

Settings:
 display:    :1
 authfile:   /home/per/tomte
 subwin:     0x0
 -sid mode:  0
 clip:       null
 flashcmap:  0
 shiftcmap:  0
 force_idx:  0
 cmap8to24:  0
 8to24_opts: null
 24to32:     0
 visual:     null
 overlay:    0
 ovl_cursor: 1
 scaling:    0 1.0000 1.0000
 viewonly:   0
 shared:     0
 conn_once:  1
 timeout:    0
 ping:       0
 inetd:      0
 tightfilexfer:   0
 http:       0
 connect:    null
 connectfile null
 vnc_conn:   1
 allow:      null
 input:      null
 passfile:   null
 unixpw:     0
 unixpw_lst: null
 ssl:        null
 ssldir:     null
 ssltimeout  -1
 sslverify:  null
 stunnel:    0
 accept:     null
 accept:     null
 gone:       null
 users:      null
 using_shm:  1
 flipbytes:  0
 onetile:    0
 solid:      null
 blackout:   null
 xinerama:   1
 xtrap:      0
 xrandr:     0
 xrandrmode: null
 padgeom:    null
 logfile:    null
 logappend:  0
 flag:       null
 rm_flag:    null
 rc_file:    ""
 norc:       0
 dbg:        0
 bg:         0
 mod_tweak:  1
 isolevel3:  0
 xkb:        1
 skipkeys:   null
 sloppykeys: 0
 skip_dups:  0
 addkeysyms: 1
 xkbcompat:  0
 clearmods:  0
 remap:      null
 norepeat:   1
 norepeatcnt:2
 nofb:       0
 watchbell:  1
 watchsel:   1
 watchprim:  1
 seldir:     null
 cursor:     1
 multicurs:  0
 curs_mode:  null
 arrow:      1
 xfixes:     0
 alphacut:   240
 alphafrac:  0.33
 alpharemove:0
 alphablend: 1
 cursorshape:1
 cursorpos:  1
 xwarpptr:   0
 alwaysinj:  0
 buttonmap:  null
 dragging:   1
 ncache:     0
 wireframe:  0xff,2,0,32+8+8+8,all,0.15+0.30+5.0+0.125
 wirecopy:   always
 scrollcopy: always
  scr_area:  60000
  scr_skip:  ##Soffice.bin,##StarOffice,##OpenOffice
  scr_inc:   ##Nomatch
  scr_keys:  null
  scr_term:  null
  scr_keyrep: null
  scr_parms: 0+64+32+32,0.02+0.10+0.9,0.03+0.06+0.5+0.1+5.0
 fixscreen:  null
 noxrecord:  1
 grabbuster: 0
 ptr_mode:   2
 inputskip:  10
 speeds:     null
 wmdt:       null
 debug_ptr:  0
 debug_key:  0
 defer:      20
 waitms:     20
 wait_ui:    2.00
 nowait_bog: 0
 slow_fb:    0.00
 xrefresh:   0.00
 readtimeout: 20
 take_naps:  1
 sb:         60
 fbpm:       1
 dpms:       1
 xdamage:    0
  xd_area:   20000
  xd_mem:    1.000
 sigpipe:    null
 threads:    0
 fs_frac:    0.75
 gaps_fill:  4
 grow_fill:  3
 tile_fuzz:  2
 snapfb:     0
 rawfb:      null
 pipeinput:  null
 gui:        0
 gui_mode:   null
 noremote:   0
 unsafe:     0
 privremote: 0
 safer:      0
 nocmds:     0
 deny_all:   0
 pid:        18824

29/07/2018 18:41:27 x11vnc version: 0.9.13 lastmod: 2011-08-10  pid: 18824
29/07/2018 18:41:27 Using X display :1
29/07/2018 18:41:27 rootwin: 0x16c reswin: 0x600001 dpy: 0xef539000
29/07/2018 18:41:27 
29/07/2018 18:41:27 ------------------ USEFUL INFORMATION ------------------
29/07/2018 18:41:27 
29/07/2018 18:41:27 Wireframing: -wireframe mode is in effect for window moves.
29/07/2018 18:41:27   If this yields undesired behavior (poor response, painting
29/07/2018 18:41:27   errors, etc) it may be disabled:
29/07/2018 18:41:27    - use '-nowf' to disable wireframing completely.
29/07/2018 18:41:27    - use '-nowcr' to disable the Copy Rectangle after the
29/07/2018 18:41:27      moved window is released in the new position.
29/07/2018 18:41:27   Also see the -help entry for tuning parameters.
29/07/2018 18:41:27   You can press 3 Alt_L's (Left "Alt" key) in a row to 
29/07/2018 18:41:27   repaint the screen, also see the -fixscreen option for
29/07/2018 18:41:27   periodic repaints.
29/07/2018 18:41:27 GrabServer control via XTEST.
29/07/2018 18:41:27 
29/07/2018 18:41:27 Scroll Detection: -scrollcopyrect mode is in effect to
29/07/2018 18:41:27   use RECORD extension to try to detect scrolling windows
29/07/2018 18:41:27   (induced by either user keystroke or mouse input).
29/07/2018 18:41:27   If this yields undesired behavior (poor response, painting
29/07/2018 18:41:27   errors, etc) it may be disabled via: '-noscr'
29/07/2018 18:41:27   Also see the -help entry for tuning parameters.
29/07/2018 18:41:27   You can press 3 Alt_L's (Left "Alt" key) in a row to 
29/07/2018 18:41:27   repaint the screen, also see the -fixscreen option for
29/07/2018 18:41:27   periodic repaints.
29/07/2018 18:41:27 X FBPM extension not supported.
29/07/2018 18:41:27 X display is not capable of DPMS.
29/07/2018 18:41:27 --------------------------------------------------------
29/07/2018 18:41:27 
29/07/2018 18:41:27 Default visual ID: 0x21
29/07/2018 18:41:27 Read initial data from X display into framebuffer.
29/07/2018 18:41:27 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/4096
29/07/2018 18:41:27 
29/07/2018 18:41:27 X display :1 is 32bpp depth=24 true color

FrameBuffer Info:
 width:            1024
 height:           768
 scaled_width:     1024
 scaled_height:    768
 indexed_color:    0
 bits_per_pixel:   32
 depth:            24
 red_mask:   0x00ff0000  00000000111111110000000000000000
 green_mask: 0x0000ff00  00000000000000001111111100000000
 blue_mask:  0x000000ff  00000000000000000000000011111111
 red:   max: 255  shift: 16
 green: max: 255  shift:  8
 blue:  max: 255  shift:  0
 mainfb_bytes_per_line: 4096
 rfb_fb_bytes_per_line: 4096
 rot_fb_bytes_per_line: 0
 raw_fb_bytes_per_line: 0
 format:     ZPixmap
 byte_order: LSBFirst
 bitmap_pad:  32
 bitmap_unit: 32
 bitmap_bit_order: LSBFirst
 rfb_fb:      0x7dace6900000
 main_fb:     0x7dace6900000
 8to24_fb:    0x0
 rot_fb:      0x0
 snap_fb:     0x0
 raw_fb:      0x0
 fake_fb:     0x0

29/07/2018 18:41:27 setting up 32 cursors...
29/07/2018 18:41:27   done.
29/07/2018 18:41:27 
29/07/2018 18:41:27 Listening for VNC connections on TCP port 5905
29/07/2018 18:41:27 Listening for VNC connections on TCP6 port 5900
29/07/2018 18:41:27 Listening also on IPv6 port 5905 (socket 8)
29/07/2018 18:41:27 
29/07/2018 18:41:27 Xinerama is present and active (e.g. multi-head).
29/07/2018 18:41:27 Xinerama: number of sub-screens: 1
29/07/2018 18:41:27 Xinerama: no blackouts needed (only one sub-screen)
29/07/2018 18:41:27 
29/07/2018 18:41:27 created 32 tile_row shm polling images.
29/07/2018 18:41:27 fb read rate: 181 MB/sec
29/07/2018 18:41:27 fast read: reset -wait  ms to: 10
29/07/2018 18:41:27 fast read: reset -defer ms to: 10
29/07/2018 18:41:27 The X server says there are 10 mouse buttons.
29/07/2018 18:41:27 screen setup finished.
29/07/2018 18:41:27 

The VNC desktop is:      nettan:5
PORT=5905

******************************************************************************
Have you tried the x11vnc '-ncache' VNC client-side pixel caching feature yet?

The scheme stores pixel data offscreen on the VNC viewer side for faster
retrieval.  It should work with any VNC viewer.  Try it by running:

    x11vnc -ncache 10 ...

One can also add -ncache_cr for smooth 'copyrect' window motion.
More info: http://www.karlrunge.com/x11vnc/faq.html#faq-client-caching

29/07/2018 18:42:10 Got connection from client 192.168.122.1
29/07/2018 18:42:10   other clients:
29/07/2018 18:42:10 Normal socket connection
29/07/2018 18:42:10 Disabled X server key autorepeat.
29/07/2018 18:42:10   to force back on run: 'xset r on' (3 times)
29/07/2018 18:42:10 incr accepted_client=1 for 192.168.122.1:44912  sock=9
29/07/2018 18:42:10 Client Protocol Version 3.8
29/07/2018 18:42:10 Protocol version sent 3.8, using 3.8
29/07/2018 18:42:10 rfbProcessClientSecurityType: executing handler for type 2
29/07/2018 18:42:18 client_count: 0
29/07/2018 18:42:18 Restored X server key autorepeat to: 1
29/07/2018 18:42:18 viewer exited.
29/07/2018 18:42:18 deleted 32 tile_row polling images.
>How-To-Repeat:
/etc/X11/xdm/Xservers looks like this:

#
# Xservers file, workstation prototype
#
# This file should contain an entry to start the server on the
# local display; if you have more than one display (not screen),
# you can add entries to the list (one per line).  If you also
# have some X terminals connected which do not support XDMCP,
# you can add them here as well.  Each X terminal line should
# look like:
#       XTerminalName:0 foreign
#
:0 local /usr/X11R7/bin/X :0 -noretro vt05
:1 local /usr/X11R7/bin/Xvfb :1 -screen 0 1024x768x24

I start x11vnc like this:

x11vnc -xkb -noxrecord -noxfixes -noxdamage -display :1 -rfbport 5905 \ -auth /home/per/secret -usepw

>Fix:


Home | Main Index | Thread Index | Old Index