ponty / framebuffer-vncserver

VNC server for Linux framebuffer devices
GNU General Public License v2.0
169 stars 69 forks source link

Errorreport - Help #16

Closed zwick88 closed 1 year ago

zwick88 commented 3 years ago

Hi,

im using noVNC. When i connect to the server, the connection will be closed a few seconds later. Here the debug output.

root@PD2103-0015:/SmartDog# /usr/local/bin/framebuffer-vncserver -vv
Initializing framebuffer device /dev/fb0...
  xres=800, yres=480, xresv=800, yresv=480, xoffs=0, yoffs=0, bpp=32
  offset:length red=16:8 green=8:8 blue=0:8
No keyboard device
No touch device
Initializing VNC server:
        width:  800
        height: 480
        bpp:    32
        port:   5900
        rotate: 0
Initializing server...
search for password inside: "/SmartDog/smartdog.conf"
no password was found
11/08/2021 16:48:15 Listening for VNC connections on TCP port 5900
11/08/2021 16:48:15 Listening for VNC connections on TCP6 port 5900
11/08/2021 16:48:20   0 other clients
11/08/2021 16:48:20 Got 'ws' WebSockets handshake
11/08/2021 16:48:20 Got protocol: binary
11/08/2021 16:48:20   - webSocketsHandshake: using binary/raw encoding
11/08/2021 16:48:20   - WebSockets client version hybi-13
11/08/2021 16:48:20 Client Protocol Version 3.8
11/08/2021 16:48:20 Protocol version sent 3.8, using 3.8
11/08/2021 16:48:20 rfbProcessClientSecurityType: executing handler for type 1
11/08/2021 16:48:20 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
11/08/2021 16:48:20 Pixel format for client 127.0.0.1:
11/08/2021 16:48:20   32 bpp, depth 24, little endian
11/08/2021 16:48:20   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
11/08/2021 16:48:20 Using image quality level 6 for client 127.0.0.1
11/08/2021 16:48:20 Using JPEG subsampling 0, Q79 for client 127.0.0.1
11/08/2021 16:48:20 Using compression level 9 for client 127.0.0.1
11/08/2021 16:48:20 Enabling NewFBSize protocol extension for client 127.0.0.1
11/08/2021 16:48:20 Enabling LastRect protocol extension for client 127.0.0.1
11/08/2021 16:48:20 Enabling full-color cursor updates for client 127.0.0.1
11/08/2021 16:48:20 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEFE)
11/08/2021 16:48:20 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
11/08/2021 16:48:20 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC8)
11/08/2021 16:48:20 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC7)
11/08/2021 16:48:20 Using tight encoding for client 127.0.0.1
  fps: 0.000000
Dirty page: 801x480+0+0...
Got customPtrAddEvent: 0000 (x=782, y=126)
Mouse moved
Got customPtrAddEvent: 0000 (x=780, y=126)
Got customPtrAddEvent: 0000 (x=778, y=126)
Got customPtrAddEvent: 0000 (x=775, y=126)
Got customPtrAddEvent: 0000 (x=768, y=128)
Dirty page: 88x131+703+3...
Got customPtrAddEvent: 0000 (x=757, y=132)
Got customPtrAddEvent: 0000 (x=743, y=137)
Got customPtrAddEvent: 0000 (x=719, y=148)
Got customPtrAddEvent: 0000 (x=691, y=161)
Got customPtrAddEvent: 0000 (x=661, y=173)
Got customPtrAddEvent: 0000 (x=590, y=193)
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 49
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 166
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 49
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 86
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 247
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 43
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 50
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 87
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 247
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 43
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 49
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 86
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 rfbProcessClientNormalMessage: unknown message type 244
11/08/2021 16:48:21  ... closing connection
11/08/2021 16:48:21 hybiReadAndDecode: read; Bad file descriptor11/08/2021 16:48:21 rfbProcessClientNormalMessage: read: Bad file descriptor
11/08/2021 16:48:21 Client 127.0.0.1 gone
11/08/2021 16:48:21 Statistics             events    Transmit/ RawEquiv ( saved)
11/08/2021 16:48:21  FramebufferUpdate   :      3 |         0/        0 (  0.0%)
11/08/2021 16:48:21  LastRect            :      3 |        36/       36 (  0.0%)
11/08/2021 16:48:21  tight               :     54 |     30939/  3118760 ( 99.0%)
11/08/2021 16:48:21  RichCursor          :      1 |       255/      255 (  0.0%)
11/08/2021 16:48:21  TOTALS              :     61 |     31230/  3119051 ( 99.0%)
11/08/2021 16:48:21 Statistics             events    Received/ RawEquiv ( saved)
11/08/2021 16:48:21  PointerEvent        :     11 |        66/       66 (  0.0%)
11/08/2021 16:48:21  FramebufferUpdate   :      3 |        30/       30 (  0.0%)
11/08/2021 16:48:21  SetEncodings        :      1 |        68/       68 (  0.0%)
11/08/2021 16:48:21  SetPixelFormat      :      1 |        20/       20 (  0.0%)
11/08/2021 16:48:21  TOTALS              :     16 |       184/      184 (  0.0%)

What goes wrong?

ponty commented 3 years ago

I tried noVNC with an embedded computer, it was OK. I tried it also on the virtualbox machine (check the README), there was no problem. This is the log:

root@ubuntu-focal:/home/vagrant/buildc# ./framebuffer-vncserver -vv
Initializing framebuffer device /dev/fb0...
  xres=640, yres=480, xresv=640, yresv=480, xoffs=0, yoffs=0, bpp=16
  offset:length red=0:5 green=5:6 blue=11:5 
No keyboard device
No touch device
Initializing VNC server:
        width:  640
        height: 480
        bpp:    16
        port:   5900
        rotate: 0
Initializing server...
13/08/2021 08:43:24 Listening for VNC connections on TCP port 5900
13/08/2021 08:43:24 Listening for VNC connections on TCP6 port 5900

13/08/2021 08:43:32 Got connection from client 10.0.2.2
13/08/2021 08:43:32   other clients:
13/08/2021 08:43:33 Normal socket connection
13/08/2021 08:43:33 Client Protocol Version 3.8
13/08/2021 08:43:33 Protocol version sent 3.8, using 3.8
  fps: 0.000000
Dirty page: 641x480+0+0...
13/08/2021 08:43:33 rfbProcessClientSecurityType: executing handler for type 1
13/08/2021 08:43:33 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
13/08/2021 08:43:33 Pixel format for client 10.0.2.2:
13/08/2021 08:43:33   32 bpp, depth 24, little endian
13/08/2021 08:43:33   true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
13/08/2021 08:43:33 rfbProcessClientNormalMessage: ignoring unsupported encoding type tightPng
13/08/2021 08:43:33 Using image quality level 6 for client 10.0.2.2
13/08/2021 08:43:33 Using JPEG subsampling 0, Q79 for client 10.0.2.2
13/08/2021 08:43:33 Using compression level 2 for client 10.0.2.2
13/08/2021 08:43:33 Enabling NewFBSize protocol extension for client 10.0.2.2
13/08/2021 08:43:33 Enabling LastRect protocol extension for client 10.0.2.2
13/08/2021 08:43:33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEFE)
13/08/2021 08:43:33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECC)
13/08/2021 08:43:33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC8)
13/08/2021 08:43:33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFEC7)
13/08/2021 08:43:33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFFFECD)
13/08/2021 08:43:33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xC0A1E5CE)
13/08/2021 08:43:33 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x574D5664)
13/08/2021 08:43:33 Enabling full-color cursor updates for client 10.0.2.2
13/08/2021 08:43:33 Using tight encoding for client 10.0.2.2
  fps: 11.000000

You can check: