x11vnc
x11vnc copied to clipboard
x11vnc on MacOS error on connection
Hello everyone,
I used x11vnc on Linux everything works fine !
But when I use it on MacOS I got this error when I connect with a VNCClient (Android App or any) ->
I got an error on my Android App VNCViewer -> "Framebuffer update too large: 1x1 at (65535, 65535)"
So I tried to modify the geometry (because maybe the resolution is too large on my Mac) like this :
x11vnc -geometry 1920.0x1080.0
but I got this error ->
This only happens on a MacOS (I have Sierra) Can someone tell me what's wrong ? Thank you !
Pls try running x11vnc as root and see if anything changes. Also, pls provide logs as text instead if screenshots ;-)
Hello !
Unfortunately, still same errors... Here are the logs in .txt file :)
First one is after trying to connect normal to an x11vncserver launched : toto.txt Second one is when I try to launch an x11vncserver with a custom geometry : test.txt
Hope someone will help ! Thank you !
Any solution anyone ?!
hi @AhmedX6 , I can check this once my day job leaves me some free time. atm, it's crunch time :-/
Hi @bk138 thank you, keep in touch as soon as possible :+1:
I have the same problem on Mac OS X 10.9.5 and 10.13.4.
Digging a bit in the code, I see that in OpenGL mode (the only possible on last OS X versions as CGDisplayBaseAddress
is deprecated) the functions macosx_opengl_get_height
and macosx_opengl_get_width
(from macosx_opengl.c
) return always zero. I see the same problem in logs of AhmedX6.
So, for me x11vnc is unusable on Mac OS X without Xorg.
Has there been any progress on this issue? I can't seem to get x11vnc to work at all on MacOS.
No not all, sorry for that. Are you able to help?
I can do testing, but unfortunately I know nearly nothing about capturing on MacOS, so I won't be able to help write any code.
Hi, I've made some affords to make it work on Mac OSX 10.15.4 without OpenGL. The solution is pretty raw and too slow. If you have any ideas to make it better ...
https://github.com/TheSonOfDeimos/x11vnc/commit/aa00934b4db6830d65e457dfe37ec8b5c528d9e2
Hi, I've made some affords to make it work on Mac OSX 10.15.4 without OpenGL. The solution is pretty raw and too slow. If you have any ideas to make it better ...
I recently updated the mac example server in LibVNCServer for a client, it's pretty basic but has all the essential optimisations applied: https://github.com/LibVNC/libvncserver/blob/master/examples/mac.c
Just stumbled across this error on macOS Big Sur 11.4
(intel-based), damn xd
Some logs:
11/07/2021 20:58:45 x11vnc version: 0.9.16 lastmod: 2019-01-05 pid: 9953
11/07/2021 20:58:45 This x11vnc was built without X11 support (-rawfb only).
11/07/2021 20:58:45 Continuing without X display in -rawfb mode.
11/07/2021 20:58:45 macosxCG_init: initializing display.
11/07/2021 20:58:45 macosx_opengl_init: Using OpenGL for screen capture.
11/07/2021 20:58:45 console_guess: file is /dev/null
11/07/2021 20:58:45 console_guess returned: map:macosx:/dev/null@0x0x32:ff0000/ff00/ff
11/07/2021 20:58:45 raw fb is non-regular file: /dev/null
11/07/2021 20:58:45 CGDisplayBaseAddress disabled by OpenGL.
11/07/2021 20:58:45 rawfb: macosx fb: /dev/null
11/07/2021 20:58:45 w: 0 h: 0 b: 32 addr: 0x0 sz: 0
11/07/2021 20:58:45 initialize_screen: fb_depth/fb_bpp/fb_Bpl 24/32/0
11/07/2021 20:58:45 scaling screen: 0x0 -> 1x1
11/07/2021 20:58:45 scaling screen: scale_fac_x=1920.00000 scale_fac_y=1080.00000
zsh: floating point exception x11vnc -geometry 1920.0x1080.0
Use :0 will fix your issue. the log seem not show correct in macOS