any1 / neatvnc

A liberally licensed VNC server library with a clean interface
ISC License
118 stars 29 forks source link

tightvnc viewer client fails with server error #10

Closed soreau closed 4 years ago

soreau commented 4 years ago
$ vncviewer localhost
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "WayVNC"
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 0 green 8 blue 16
Using default colormap which is TrueColor.  Pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Same machine: preferring raw encoding
Unknown message type 119 from VNC server

The client window opens and immediately closes. The last line has a numeric message type code that seemingly changes at random.

Tiger vncviewer works as expected.

soreau commented 4 years ago

With #12 applied, the error changes to:

$ vncviewer localhost
Connected to RFB server, using protocol version 3.8
No authentication needed
Authentication successful
Desktop name "WayVNC"
VNC server default format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 0 green 8 blue 16
Using default colormap which is TrueColor.  Pixel format:
  32 bits per pixel.
  Least significant byte first in each pixel.
  True colour: max red 255 green 255 blue 255, shift red 16 green 8 blue 0
Same machine: preferring raw encoding
CleanupXErrorHandler called
X Error of failed request:  BadAccess (attempt to access private resource denied)
  Major opcode of failed request:  89 (X_StoreColors)
  Serial number of failed request:  106
  Current serial number in output stream:  106
any1 commented 4 years ago

I believe this is fixed now. Can you test?

soreau commented 4 years ago

Yes, it works.