I'm making my own vnc viewer, that takes screenshots of computers with the VNC server installed.
It works perfectly for other versions of VNC, but with Ultra (any version) installed as the server, a black screen is returned.
If I connect to the Server with any other viewer, and then try to take a screenshot with my viewer, it works fine, implying the problem is with the configuration stage.
Does anyone have any ideas what could cause this?
The order of comuniqe between the client and server is as follows (taken from debugging outputs):
opening port
**get version message
**send version message
**read response (auth scheme) = 2
**passsword reqd
---------READFULLY(CHALLENGE)------
------READINT(auth result)-----
Authenticate with password: true
***** sendSetEncodings
***** sendSetPixelFormat
***** SendFrameBufferUpdateRequest
***** recieveFrameBufferUpdate
message type: 0
recieving 1 rectangles
x: 0
y: 0
width: 1024
height: 768
encoding: 0
RAW ENCODING
*****recieveRawPixels
Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864
Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
My own viewer produces a black screen - why?
I've solved it. In case anyone with the same problem finds this thread in future, here's what happens:
Unlike other VNC servers, UltraVNC produces a black screen as it's initial frame, so if, at any time, you request a framebuffer update, with the incremental flag set to 0, you will recieve a black screen.
This is going against the RFB protocol, and may well be a bug.
The solution to the problem is to send a framebuffer request to with the incremental flag set to 0 or 1 (either produces a black screen), read the framebuffer update, then send another framebuffer update request with the flag set to 1, and the correct screen will be returned.
If any UltraVNC programmers read these forums, would you care to explain why this happens?
Unlike other VNC servers, UltraVNC produces a black screen as it's initial frame, so if, at any time, you request a framebuffer update, with the incremental flag set to 0, you will recieve a black screen.
This is going against the RFB protocol, and may well be a bug.
The solution to the problem is to send a framebuffer request to with the incremental flag set to 0 or 1 (either produces a black screen), read the framebuffer update, then send another framebuffer update request with the flag set to 1, and the correct screen will be returned.
If any UltraVNC programmers read these forums, would you care to explain why this happens?