Coder Social home page Coder Social logo

jfxvnc's People

Contributors

comtel2000 avatar dependabot-preview[bot] avatar fossabot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jfxvnc's Issues

Connection closed

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`

16bpp

It can't work in 16bpp,the view dosen't show,how to fix it?

advice

hhh,please put some comments,tks

PixelFormat negotiation fails with x11vnc server

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.