comtel2000 / jfxvnc Goto Github PK
View Code? Open in Web Editor NEWJavaFX based VNC client
License: Apache License 2.0
JavaFX based VNC client
License: Apache License 2.0
Hello, I'm trying connect to server from jfxvnc-app. But connection closed after handshake without error.
another clients work fine with my vnc server. For example, Vernacular VNC. That's wrong in this connectiion?
log app:
`org.jfxvnc.net.rfb.VncConnection - try to connect to x.x.x.x:5900
org.jfxvnc.net.rfb.codec.ProtocolHandshakeHandler - server version: RFB 003.008
org.jfxvnc.net.rfb.codec.handshaker.RfbClient38Decoder - supported security types: [VNC_Auth]
org.jfxvnc.net.rfb.codec.security.vncauth.VncAuthEncoder - VNC Auth encrypted: [57, -122, 111, -95, -27, 127, -35, 84, 11, 118, 109, 108, 63, -119, -93, -124]
org.jfxvnc.net.rfb.codec.handshaker.RfbClient38Decoder - server login succeed
org.jfxvnc.net.rfb.codec.ProtocolHandshakeHandler - security passed: SecurityResultEvent [passed=true]
org.jfxvnc.net.rfb.codec.handshaker.RfbClientHandshaker - server RFB 003.008 - client RFB 003.008
org.jfxvnc.net.rfb.codec.ProtocolHandler - handshake completed with ServerInitEvent [frameBufferWidth=1280, frameBufferHeight=1024, pixelFormat=PixelFormat [bitPerPixel=32, depth=24, bigEndian=false, trueColor=false, redMax=255, greenMax=255, blueMax=255, redShift=16, greenShift=8, blueShift=0], serverName=opt1:0]
org.jfxvnc.net.rfb.codec.decoder.FramebufferUpdateRectDecoder - is pixelformat supported: PixelFormat [bitPerPixel=32, depth=24, bigEndian=false, trueColor=false, redMax=255, greenMax=255, blueMax=255, redShift=16, greenShift=8, blueShift=0]
org.jfxvnc.net.rfb.codec.ProtocolHandler - encodings: [ZLIB, COPY_RECT, HEXTILE, RAW]
org.jfxvnc.ui.service.VncRenderService - event received: ConnectInfoEvent [remoteAddress=x.x.x.x:5900, serverName=opt1:0, rfbProtocol=RFB 003.008, frameHeight=1024, frameWidth=1280, supportedEncodings=[ZLIB, COPY_RECT, HEXTILE, RAW], serverPF=PixelFormat [bitPerPixel=32, depth=24, bigEndian=false, trueColor=false, redMax=255, greenMax=255, blueMax=255, redShift=16, greenShift=8, blueShift=0], clientPF=PixelFormat [bitPerPixel=32, depth=24, bigEndian=false, trueColor=true, redMax=255, greenMax=255, blueMax=255, redShift=16, greenShift=8, blueShift=0], security=VNC_Auth, connectionType=TCP (standard)]
org.jfxvnc.net.rfb.codec.ProtocolHandler - request full framebuffer update
org.jfxvnc.net.rfb.codec.ProtocolHandler - connection closed
io.netty.buffer.PoolThreadCache - Freed 6 thread-local buffer(s) from thread: vnc-connection-21`
It can't work in 16bpp,the view dosen't show,how to fix it?
hhh,please put some comments,tks
Hello,
I tried to run jfxvnc against a x11vnc server.
By using the actual github version the server quits the communication with the log entry:
15/11/2017 12:00:58 Pixel format for client 192.168.99.23
15/11/2017 12:00:58 32 bpp, depth 24, little endian
15/11/2017 12:00:58 uses a colour map (not true color).
15/11/2017 12:00:58 rfbSetTranslateFunction: client has colour map but 32-bit - can only cope with 8-bit colour maps
So I tried to force the jfxvnc viewer into RGB_555 pixel format e.g. by trying to set DEFAULT_PIXELFORMAT
in org.jfxvnc.ui.control.VncImageView.java:47
to PixelFormat.RGB_555
.
When I do this the server assumes
15/11/2017 12:15:33 Pixel format for client 192.168.99.23:
15/11/2017 12:15:33 16 bpp, depth 16, little endian
15/11/2017 12:15:33 true colour: max r 255 g 255 b 255, shift r 16 g 8 b 0
which looks fine - however jfxvnc throws an IndexOutOfBoundsException
:
00:39:02.693 [vnc-connection-17] DEBUG org.jfxvnc.net.rfb.codec.ProtocolHandler - request full framebuffer update
00:39:04.046 [JavaFX Application Thread] ERROR org.jfxvnc.ui.control.VncImageView - rect: RawImageRect [x=0, y=0, width=1024, height=768, pixels.capacity=1179648, scanlineStride=3072]
java.lang.IndexOutOfBoundsException: null
at java.nio.Buffer.checkIndex(Buffer.java:540)
at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:253)
at com.sun.javafx.image.impl.ByteRgb$ToByteBgrfConv.doConvert(ByteRgb.java:150)
at com.sun.javafx.image.impl.BaseByteToByteConverter.convert(BaseByteToByteConverter.java:103)
at com.sun.javafx.image.impl.BaseByteToByteConverter.convert(BaseByteToByteConverter.java:34)
at com.sun.prism.Image$BaseAccessor.setPixels(Image.java:1006)
at com.sun.prism.Image.setPixels(Image.java:685)
at javafx.scene.image.WritableImage$2.setPixels(WritableImage.java:193)
at org.jfxvnc.ui.control.VncImageView.render(VncImageView.java:124)
at org.jfxvnc.ui.control.VncImageView.lambda$accept$18(VncImageView.java:102)
at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)
at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
Interesting as well that the Apps Info Panel shows still a Depth from 24 (32bpp)...
I tried to force RGB_555 on some more places where it looks like it is set/get - but no success yet.
Is there a way to force the complete App to be on RGB_555 ? (that could be as well some feature...)
Many Thanks
Kind Regards
Thomas Schmidt
The README makes no mention of how to run the program. I see you worked on a fork of TigerVNC; is there any similarity?
There must be a messed up DNS entry somewhere. If I click on the "View on Github" link on http://www.jfxvnc.org/ then the github page does not appear. If I instead enter the GitHub link (https://github.com/comtel2000/jfxvnc) into the URL address widget the proper page appears.
Tested on Firefox and Chrome in Windows
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.