LibVNC / libvncserver

LibVNCServer/LibVNCClient are cross-platform C libraries that allow you to easily implement VNC server or client functionality in your program.
GNU General Public License v2.0
1.08k stars 483 forks source link

Regression: UltraVNC 1.3.2a client hangs #543

Closed bk138 closed 1 year ago

bk138 commented 1 year ago

If you'd like to put out an incentive for fixing this bug, you can do so at https://issuehunt.io/r/LibVNC/libvncserver

Describe the bug

Current master version of VNC server unresponsive when connecting with UltraVNC

To Reproduce

Connect w/ UltraVNC 1.3.2a

Expected Behavior

Works.

Logs/Backtraces

18/12/2022 16:18:36 Got connection from client 127.0.0.1
18/12/2022 16:18:36   0 other clients
18/12/2022 16:18:36 Normal socket connection
18/12/2022 16:18:36 Client Protocol Version 3.8
18/12/2022 16:18:36 Protocol version sent 3.8, using 3.8
18/12/2022 16:18:36 rfbProcessClientSecurityType: executing handler for type 1
18/12/2022 16:18:36 rfbProcessClientSecurityType: returning securityResult for client rfb version >= 3.8
18/12/2022 16:18:36 Pixel format for client 127.0.0.1:
18/12/2022 16:18:36   32 bpp, depth 32, little endian
18/12/2022 16:18:36   true colour: max r 255 g 255 b 255, shift r 0 g 8 b 16
18/12/2022 16:18:36 no translation needed
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000001D)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000001B)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000001A)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000019)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000013)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x00000012)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0x0000000A)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type zlibhex
18/12/2022 16:18:36 Using compression level 6 for client 127.0.0.1
18/12/2022 16:18:36 Enabling full-color cursor updates for client 127.0.0.1
18/12/2022 16:18:36 Enabling cursor position updates for client 127.0.0.1
18/12/2022 16:18:36 Using image quality level 8 for client 127.0.0.1
18/12/2022 16:18:36 Using JPEG subsampling 0, Q92 for client 127.0.0.1
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF000B)
18/12/2022 16:18:36 Enabling LastRect protocol extension for client 127.0.0.1
18/12/2022 16:18:36 Enabling NewFBSize protocol extension for client 127.0.0.1
18/12/2022 16:18:36 Enabling ExtDesktopSize protocol extension for client 127.0.0.1
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8000)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8001)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8004)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8002)
18/12/2022 16:18:36 rfbProcessClientNormalMessage: ignoring unsupported encoding type Enc(0xFFFF8003)
18/12/2022 16:18:36 Enabling ExtendedClipboard extension for client 127.0.0.1
18/12/2022 16:18:36 Using hextile encoding for client 127.0.0.1
18/12/2022 16:18:37 Sending rfbEncodingExtDesktopSize for size (800x600) 
18/12/2022 16:18:37 Sending rfbEncodingExtDesktopSize for size (800x600) 

last message keeps repeating...

Your environment (please complete the following information):

Additional context

8e41510f4a9d449dd228e5b3e29732882f7f5df6

bk138 commented 1 year ago

Trying with UltraVNC 1.3.8.1 but ran into https://bugs.winehq.org/show_bug.cgi?id=52296 - looks like a more tedious test setup to be done :-/

bk138 commented 1 year ago

Works with UltraVNC 1.3.8.1 when connecting to the example LibVNCServer server running on a Mac. Much ado about nothing...