x11vnc icon indicating copy to clipboard operation
x11vnc copied to clipboard

x11vnc on MacOS error on connection

Open AhmedX6 opened this issue 7 years ago • 13 comments

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) -> screen shot 2017-02-15 at 17 18 23 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 -> screen shot 2017-02-15 at 17 22 54

This only happens on a MacOS (I have Sierra) Can someone tell me what's wrong ? Thank you !

AhmedX6 avatar Feb 15 '17 16:02 AhmedX6

Pls try running x11vnc as root and see if anything changes. Also, pls provide logs as text instead if screenshots ;-)

bk138 avatar Feb 17 '17 11:02 bk138

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 !

AhmedX6 avatar Feb 20 '17 09:02 AhmedX6

Any solution anyone ?!

AhmedX6 avatar Mar 07 '17 17:03 AhmedX6

hi @AhmedX6 , I can check this once my day job leaves me some free time. atm, it's crunch time :-/

bk138 avatar Mar 08 '17 00:03 bk138

Hi @bk138 thank you, keep in touch as soon as possible :+1:

AhmedX6 avatar Mar 08 '17 10:03 AhmedX6

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.

Peter2121 avatar May 18 '18 17:05 Peter2121

Has there been any progress on this issue? I can't seem to get x11vnc to work at all on MacOS.

octylFractal avatar Sep 11 '19 18:09 octylFractal

No not all, sorry for that. Are you able to help?

bk138 avatar Sep 11 '19 19:09 bk138

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.

octylFractal avatar Sep 11 '19 19:09 octylFractal

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

TheSonOfDeimos avatar Jul 26 '20 22:07 TheSonOfDeimos

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 ...

TheSonOfDeimos@aa00934

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

bk138 avatar Jul 31 '20 19:07 bk138

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

hugmouse avatar Jul 11 '21 13:07 hugmouse

Use :0 will fix your issue. the log seem not show correct in macOS

image

bi7jta avatar Dec 21 '23 04:12 bi7jta