You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First tell me, which server are you using? is it UltraVNC?
In any case, since RFB is a binary protocol which has no message size, untreated messages can break the system: reading the wrong size (or not reading something), means that you are now off by some bits, so you don't know where the next message begins.
to fix this you should first see that you are really getting this message type and not just failing on a previous message and wrongly reading the next message and it's type. (check for any previous silent failures by opening up debug level / adding some logs)
if it is a correct message type, then you should implement this message type (just by reading & skipping it):
try just ignoring the message after reading the type
try reading several bytes (most simple messages are less than 8 bytes)
You should also try to understand when the server is sending the problematic message, it can furtehr your understanding about what the problem really is (it might be when you are in fullscreen, or when you open some spacial image remotely, when pressing ctrl+c / ctrl+v, or maybe when the mouse hover over something and changes the cursor, etc.)
I'm using https://github.com/saily/vnc-recorder, but randomly I've got :
INFO[0411] ========got server message, msgType=6
panic: unknown message-type: 6
In your code I can see :
// Server-to-Client message types
const (
FramebufferUpdateMsgType ServerMessageType = iota
SetColorMapEntriesMsgType
BellMsgType
ServerCutTextMsgType
)
So there's no type 6 and I don't know what is a type 6 message, RFB protocol tells "Possibly used by UltraVNC".
Have you any idea how to fix this ?
Thanks
The text was updated successfully, but these errors were encountered: